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.