appium: Always Getting 'createSession' Error When Popup Alert Appears Before Installing WDA
Do I have the most recent component updates?
- I use the most recent available driver/plugin and server versions
Is the component officially supported by the Appium team?
- I have verified the component repository is present under the Appium organization in GitHub
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
I always get the following error:
java.lang.RuntimeException: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 408. Message: Appium did not get any response from the 'createSession' command in 30000 ms
when the WebDriverAgent is trying to install and when the permission dialog is showing.
Expected Behavior
When installing WDA, it will install normally, and the scenarios can run well.
Minimal Reproducible Example
- Keep the Popup Alert still showing
- Run Appium and Run the scenario’s
- When WDA Trying to install, it will blank screen or in several cases it will also open the apps but cannot interact with the PopUp Alerts (I also using autoAcceptAlerts) and then get
createSessionerrors
Environment
- Operating system: MacOS Sonoma
- Appium server version (output of
appium --version): 2.9.0 - Appium driver(s) and their version(s) (
appium driver list): XCUITest 7.17.4 - Appium plugin(s) and their version(s) (
appium plugin list): - Node.js version (output of
node --version): 16.5.1 npmversion (output ofnpm --version): 8.11.0- Last component(s) version which did not exhibit the problem:
- Platform and version under test: iPhone iOS 16 and iOS 17
- Real device or emulator/simulator: Real Devices
Link to Appium Logs
No response
Further Information
The popup alerts look like:
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (4 by maintainers)
It looks like UI testing process itself failed to initialize by the system. It could be not Appimm WDA specific but more general UI testing related behavior, I guess.
Not clear since the log itself is huge, but I wondered if some system popup or something blocked the UI testing initialization process. Then unfortunately nothing could do as Appium.