Update value to print out in for loop
Change value to print String contextName not contextNames within for loop
MODIFY
docs/en/writing-running-appium/web/hybrid.md
docs/en/writing-running-appium/web/hybrid.md
@@ -67,7 +67,7 @@ driver = new AppiumDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities)
Set<String> contextNames = driver.getContextHandles();
for (String contextName : contextNames) {
- System.out.println(contextNames); //prints out something like NATIVE_APP \n WEBVIEW_1
+ System.out.println(contextName); //prints out something like NATIVE_APP \n WEBVIEW_1
}
driver.context(contextNames.toArray()[1]); // set context to WEBVIEW_1

Update value to print out in for loop (#12100)

Change value to print String contextName not contextNames within for loop