Appium seems to follow context sometimes iOS 12.2 but didn't on iOS 12.1
See original GitHub issueThe problem
Since trying to switch to iOS 12.2 I have noticed inconsistent behaviour between that and version 12.1 (and earlier) with regards to the way the context changes.
With iOS 12.1 and earlier I was expected to manually switch context to the new webview when the application navigated to the MS ADAL login screen and manually switch context back to the webview for the application.
With iOS 12.2 it appears to switch context automatically to the new webview when the application navigated to the MS ADAL login screen but does not switch context back to the application webview after successful login.
Environment
- Appium version (or git revision) that exhibits the issue: 1.13.0
- Last Appium version that did not exhibit the issue (if applicable):
- Desktop OS/version used to run Appium: OSX 10.14.5
- Node.js version (unless using Appium.app|exe): v10.13.0
- Npm or Yarn package manager: 6.9.0
- Mobile platform/version under test: iPad Pro 10.5
- Real device or emulator/simulator: simulator
- Appium CLI or Appium.app|exe: CLI
Details
I have reproduced this using postman so it does not appear to be a fault in the test framework.
I have a manual work around in my test framework which switches back to the parent webview (the application) for this scenario.
I can monitor the available contexts and the current context using postman commands.
Link to Appium logs
Create a GIST which is a paste of your full Appium logs, and link them here. Do NOT paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Appium logs!
Code To Reproduce Issue [ Good To Have ]
Please remember that with sample code it’s easier to reproduce the bug and it’s much faster to fix it.
Please git clone https://github.com/appium/appium and from the sample-code
directory, use one of your favourite languages and sample apps to reproduce the issue.
In case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided.
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (7 by maintainers)
Top GitHub Comments
By “in-app” browser you mean like https://ionicframework.com/docs/native/in-app-browser?
Work around implemented and now moved onto iOS 13