RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 786 forks source link

solo.getWebElement(By, index) hangs WebElement #839

Open sinaweibo opened 8 years ago

sinaweibo commented 8 years ago

robotium:5.6.0 android:5.1.1 my test code is below: print("start"); solo.sleep(10000); WebElement webElement = solo.getWebElement(By.id("btnRegistNow"), 0); int x = webElement.getLocationX(); int y = webElement.getLocationY(); print("(" + x + "," + y + ")"); solo.sleep(10000);

between start and first 10s sleep, i click the web element with my finger,it does reaction,but after solo.getWebElement is invoked, all click does not work,solo.clickOnWebElement does not work,solo.clickOnScreen does not work,even i click with my finger ,it also does not work. so i,m sure there is bug in Webelement module.

sinaweibo commented 8 years ago

call solo.clickOnScreen(736, 2434) without solo.getWebElement,it also works.

sinaweibo commented 8 years ago

solo.getCurrentWebElements and solo.getWebElements() also have the problem