java - org.openqa.selenium.WebDriverException: Not yet implemented. while running getWindowHandles() -
i using appium version 1.4.16.1, selenium 2.53.0 , java-client 2.1.0
i getting following error :-
"org.openqa.selenium.webdriverexception: not yet implemented. please us: http://appium.io/get-involved.html (warning: server did not provide stacktrace information) command duration or timeout: 7 milliseconds build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 16:57:40'"
when code tried execute
int windowcount = driver.getwindowhandles().size();
where driver
defined :-
androiddriver driver = new androiddriver(new url("http://127.0.0.1:4723/wd/hub"), capabilities);
is problem due implementation of code or api? trying detect number of popup windows in execution , extract text out of popup window. popup window may consist of error message created application or android os. device used samsung galaxy note 3 v 4.4.4 api 19 running on genymotion.
this 1 solution managed come with.
instead of using
int windowcount = driver.getwindowhandles().size();
i used:
list<webelement> elements = driver.findelements(by.classname("android.widget.textview"));
the above gives me list of elements on popup.
i thank @nullpointer pointing me in right direction of using uiautomatorviewer see elements on page , retrieve values needed.
uiautomator viewer can found in android sdk in tools folder.
c:\users\user\appdata\local\android\sdk\tools
@xenguard sharing experience too! :)