Here my code is like below:
Set contextName = driver.getContextHandles();
System.out.println(contextName);
for (Object o : contextName) {
String data=o.toString();
System.out.println(data);}
From above code i am unable to find context view of the page. What action should i have to take for same?
I tried with multiple ways. But unable to do it. No context view appeared and if i am trying to click on element as we always do then its not working. PFB SS for same page. I need suggestion what i have to do for same. Tried as below:
driver.findElementByAccessibilityId("create EDIT ").click();
2.driver.findElement(By.xpath("/html/body/ion-app/ng-component/ion-nav/page-payment-source/ion-content/div[2]/div/div[1]/div[1]/div/div[1]/div[3]/div[1]/button")).click();
3.driver.findElementByAccessibilityId("create EDIT").click();
Also PFA of appium server log.