3

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

Comments
  • 6
    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.
  • 1
    @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!
  • 1
    @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
  • 3
    @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
  • 1
    @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!
  • 1
    @eval 👌🏻
Add Comment