mobile-spec
mobile-spec copied to clipboard
Update context list information
It is often the case that there are multiple webview contexts in an application under test. If all that is returned in the list of contexts is the id of each webview, it necessitates switching into each one to distinguish them. Since context switching is, in practical terms, an expensive and error-prone operation, giving as much information at the offset is preferrable.
i like the idea, since it is a frequent use case to need the current location of the webview. But this muddies the end client's API a bit. Can you show examples of how you'd anticipate API touch points to look?
Currently the return type for getWindowHandles in Java (and other client bindings) is a Set<String>.
http://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/WebDriver.html#getWindowHandles--
same goes with getContextHandles from appium java-client - https://github.com/appium/java-client/blob/master/src/main/java/io/appium/java_client/AppiumDriver.java#L220
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.