Saturday, July 2, 2022
HomeiOS Developmentios - Automated button click on on iPhone (working with Swift) with...

ios – Automated button click on on iPhone (working with Swift) with out utilizing usb wire


Properly i’m engaged on app to check wifi on iPhone and what i’m doing is I’m switching between completely different SSID’s. As we all know that after we disconnect and check out to hook up with completely different SSID iPhone present us a pop and we have now to click on “Be a part of” button.

Dilemma with me right here is that my iPhone is linked to Macbook with usb wire that runs script in Xcode and that button click on is automated as follows

 if systemAlerts.buttons["Join"].exists {
            systemAlerts.buttons["Join"].faucet()
            app.faucet()
        }
        if systemAlerts.buttons["OK"].exists {
            systemAlerts.buttons["OK"].faucet()
            app.faucet()
        }

however once I take off the usb wire then that clicking button isn’t any extra automated . How can I automate that button click on with out attaching My iPhone to Macbook. I even have android telephone operating identical code however in Kotlin and is operating with out attaching any usb to different gadget and it runs nice.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments