question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Appium seems to follow context sometimes iOS 12.2 but didn't on iOS 12.1

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
imurchiecommented, May 24, 2019

By “in-app” browser you mean like https://ionicframework.com/docs/native/in-app-browser?

0reactions
andrew-lai-bjsscommented, Apr 1, 2020

Work around implemented and now moved onto iOS 13

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Appium
General · Make sure you've followed the getting started steps in the README · Make sure your system is set up appropriately (i.e.,...
Read more >
appium/appium - Gitter
It seems only the appium application is started, but the service is not ... But that supports simulator in ios environment and not...
Read more >
appium | Yarn - Package Manager
Appium is an open-source, cross-platform test automation tool for native, hybrid, and mobile web and desktop apps. We support simulators (iOS), ...
Read more >
failed to prepare device for deplo… | Apple Developer Forums
It seems restarting both devices a couple times resolved the issue. ... Restarting once works for me! I was trying to install an...
Read more >
appium_ispair.txt - GitHub
I also lets's say don't have a source code but only .app file. ... The iOS devices are updated to 10.2 and it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found