APPIUM IOS JAVA unable to find webcontext while appium inspector can
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 752
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 8
Description
Description
Launched native app, activated safari and switch-to-web-context is not working using java-client while same scenario is working in appium inspector
Environment
- Java client build version: 8.3.0
- Appium version: 2.0.0-beta.55
- Mobile platform: ios
- Real device
Details
Please provide more details, if necessary.
Code To Reproduce Issue [ Good To Have ]
((IOSDriver)driver).activateApp("com.apple.mobilesafari");
sleep(5);
Set<String> contextNames = ((SupportsContextSwitching) driver).getContextHandles();//tried IOSDriver also
System.out.println("contextNames : "+ contextNames);
sleep(10);
contextNames = ((SupportsContextSwitching) driver).getContextHandles();
System.out.println("contextNames : "+ contextNames);
sleep(10);
contextNames = ((SupportsContextSwitching) driver).getContextHandles();
System.out.println("contextNames : "+ contextNames);
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the provided IOSDriver code on a real iOS device using Java client 8.3.0 and Appium 2.0.0-beta.55. Start by tracing SupportsContextSwitching.getContextHandles() and compare its returned contexts with Appium Inspector; done means the web context is discoverable after activating Safari.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100