Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
don't use that old crap. Around 2017 Apple replaced apple script with JavaScript.
And for website automation have a look at https://www.cypress.io/ it's new and isn't based on selenium. -
@heyheni wish I knew that 8hrs ago lol
I’ll try cypress out.
I was using puppeteer earlier but the website kept denying my log in.
I wanted to use AppleScript so I could use the actual safari chrome application if that makes sense
Thanks for the recommendation! -
@heyheni ran into the same problem with cypress that I ran into with puppeteer unfortunately
I found some image matching automation software I might try just for shits and giggles
Cypress is super cool though
I love the console and the documentation is pretty great -
eval6804y@DeepHotel if you get denied entry with puppeteer it's probably cause they don't like automated browsers.
First solution you can try is fake the user agent and remove the window.webdriver property (or maybe it was called sth else not sure anymore)
If that doesnt help, check if they have hidden recaptcha, distil or sth. If yes, there's (paid, dirt cheap) Services to get tokens and circumvent that. Hmu if you have more questions -
@eval I haven’t tried any of that yet. I’ve been using the puppeteer extra stealth plugin so I was hoping that would help with the detection
I’m going to try ur suggestions later today and I’ll lyk thank u!
Been using something called AppleScript for a side project lately (I use OSX )
It’s a scripting/automation language exclusively for apple products
I’ve been using it to automate some tasks on a website
I need to press a html button as my last task
AppleScript allows u to use some JavaScript to do stuff like this which is cool
I try to select the html button and use “.click()”
Nothing
I select the html button and simulate mouse down and up
Nothing
I use every combination of classmate, id, css selector
Nothing
I look it for the documentation online
It looks like it’s from 2005
Stackoverflow save me please
rant
applescript
stackoverflow
old af