RobotiumTech/robotium

solo.getWebElement(By, index) hangs WebElement

Opened this issue · 2 comments

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.

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

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