appium / appium/java-client

APPIUM IOS JAVA unable to find webcontext while appium inspector can

Open
#1,879 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.