Closed pacozaa closed 6 years ago
I have been used .click() with normal element for a while but when it comes to button on Android Dialog seems like it doesn't click but it gives me no error.
it("should press signin", function () { return driver .elementById("app.udrinkidive.feed2us.com.customer:id/Done") .click() .sleep(10000) .elementById("app.udrinkidive.feed2us.com.customer:id/dBtnOK") .click() .sleep(10000) });
As above code I tried to delay click() by using sleep(1000). Still not working.
sleep(1000)
Please help :)
I have found the solution myself
.elementsByAndroidUIAutomator( 'new UiSelector().resourceId("app.udrinkidive.feed2us.com.customer:id/dBtnOK")' , function(err, els){ els[0].click() })
I have been used .click() with normal element for a while but when it comes to button on Android Dialog seems like it doesn't click but it gives me no error.
As above code I tried to delay click() by using
sleep(1000)
. Still not working.Please help :)