Comments (6)
Most likely this alert belongs to another application (e.g. springboard). Switch to it using mobile: activateApp
API and then it will be possible to interact with the dialog. AFAIK apis that work with alerts check both the active app and the system one.
from appium.
ok so i have to create a workaround for this change in XCUITest driver ? because it worked the last version...
from appium.
There was an issue where each command would create an unnecessary delay while selecting a proper application to interact with. The issue was fixed, although it also relies on the assumption that an app is then selected by the client unless it is the application under test that is initially passed to the session capabilities.
from appium.
@mykola-mokhnach ok added now the workaround to switch to springboard and that works.
from appium.
Or:
driver.settings.update({acceptAlertButtonSelector: '**/XCUIElementTypeButton[`label=="Allow Once"`]'})
driver.switch_to.alert.accept
or
driver.execute_script 'mobile: alert', {action: 'accept', buttonLabel: 'Allow Once'}
https://appium.github.io/appium-xcuitest-driver/5.15/reference/execute-methods/#mobile-alert
like these commands also should help to interact with them.
from appium.
XCUITest driver 5.15.1
reverted the change in 5.14.1
addressed the fix in #19716 (comment)
The change will come in a future release, but it should not be a patch release. <- v6.0.0 includes this change
from appium.
Related Issues (20)
- iOS Simulator crashes the app when interacting with a consent pop up HOT 4
- I'm geting errors when running appium2.4.1 with latest version and using gestures plugin HOT 1
- bug: XCUITestDriver throwing the error: _**"Failed to create WDA session (A new session could not be created. Details: Cannot launch life.nuggets.app application. Make sure the correct bundle identifier has been provided in capabilities and check the device log for possible crash report occurrences). Retrying..."** specifically in circle ci. HOT 8
- [Feat]: add checkVersion for mobile:installApp to add version comparison in Appium as same as new session request HOT 3
- Infinite search for correct app iOS 16.4 HOT 4
- [Feat]: add Setting disableInvisibleElements in XCUITest Driver HOT 1
- bug: getGeoLocation error on ios simulators: Location service must be set to 'Always' HOT 7
- Unable to Launch App Through Appium, App Crashes Instantly HOT 3
- Drag and drop a widget to home screen HOT 5
- Appium Inspector Desktop vs Accessbility Inspector Mac HOT 5
- bug: <iOS Allow Location Pop is not handled by the Appium> HOT 4
- appium:autoAcceptAlerts: true does not work HOT 5
- bug: iOS Class Chain selector unable to find visible elements in landscape mode HOT 15
- bug: adbExecTimeout capability does not work HOT 6
- bug: <iOS Allow Location System Pop is not handled by the Appium> HOT 1
- Unhandled endpoint: /session/A1804522-69EA-4741-A1F2-D73744F02462/touch/perform HOT 1
- bug: DoubleClick is not working on Desktop Application, using Appium Windows Driver HOT 6
- The elements in the XCUIElementTypeTable cannot be loaded in the system above ios16, and the elements in the XCUIElementTypeTable in the system below iOS16 can be loaded normally HOT 1
- Failed to create session. An unknown server-side error occurred while processing the command. HOT 9
- [Feat]: testing with Android 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appium.