You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this screen is active, calling driver.switchTo().alert().accept() taps the "Precise: On" button changing it to"Precise: Off"
Expected Behavior
I would expect it to tap on either "Allow Once" or "Allow While Using the App"
Minimal Reproducible Example
driver.switchTo().alert().accept(); //you'll need an alert showing that is location based and allows for toggling precise location on/off
Environment
Operating system: Mac OSX 12.6
If running via appium CLI...
Appium CLI version (output of appium --version): 2.0.0-beta.46
Node.js version (output of node --version): v16.17.0
npm version (output of npm --version): 8.15.0
Last appium version which did not exhibit the problem: Unsure
Appium driver(s) and their version(s): xcuitest@4.12.1
Appium plugin(s) and their version(s): N/A
Platform and version under test: iOS 16.0
Real device or emulator/simulator: Both
Side note, is there a suggested better way to have control on Alerts with more than 2 buttons? accept/dismiss work fine for binary alerts, but not for this location alert (bug notwithstanding) as accept() is ambiguous and could be "allow once" or "allow while using app" while dismiss() should map to "don't allow" obviously.
I wrote a class to handle this that uses xpath index to tapAlertAtIndex(int), but that feels hacky/wrong. Thanks!
The text was updated successfully, but these errors were encountered:
This is expected as xctest does not provide a reliable way of alert buttons detection. You could either click the necessary button in your client script or define a custom value to acceptAlertButtonSelector/dismissAlertButtonSelector settings
Is there an existing issue for this?
Current Behavior
While this screen is active, calling
driver.switchTo().alert().accept()
taps the "Precise: On" button changing it to"Precise: Off"Expected Behavior
I would expect it to tap on either "Allow Once" or "Allow While Using the App"
Minimal Reproducible Example
driver.switchTo().alert().accept(); //you'll need an alert showing that is location based and allows for toggling precise location on/off
Environment
Operating system: Mac OSX 12.6
If running via appium CLI...
Appium CLI version (output of appium --version): 2.0.0-beta.46
Node.js version (output of node --version): v16.17.0
npm version (output of npm --version): 8.15.0
Last appium version which did not exhibit the problem: Unsure
Appium driver(s) and their version(s): xcuitest@4.12.1
Appium plugin(s) and their version(s): N/A
Platform and version under test: iOS 16.0
Real device or emulator/simulator: Both
Link to Appium Logs
No response
Futher Information
appiumLogs.txt
Side note, is there a suggested better way to have control on Alerts with more than 2 buttons? accept/dismiss work fine for binary alerts, but not for this location alert (bug notwithstanding) as accept() is ambiguous and could be "allow once" or "allow while using app" while dismiss() should map to "don't allow" obviously.
I wrote a class to handle this that uses xpath index to tapAlertAtIndex(int), but that feels hacky/wrong. Thanks!
The text was updated successfully, but these errors were encountered: