New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use method TouchAction to process clicking the menu icon in Google page for real Android device #5171
Comments
What does "failed" mean? Can you post the Appium server logs? |
I'm guessing it has to do with the javascript events that the app is listening for not matching those that the atoms are sending |
I am facing the similar problem. Can't click on any webview object on chrome browser on any android device. No error in appium logs. #5015 |
For some reason clicking the menu button does not work but clicking "Images" or "Web" does. Strange. However, you can exit to the My test: it('should tap the hamburger menu on google.com', function (done) {
var el;
driver
.get('http://google.com')
.contexts().then(function (ctxs) {
return driver.context(_.first(ctxs);
})
.elementByClassName('android.webkit.WebView')
.then(function (_el) {
el = _el;
var action = new TouchAction(driver);
return action.tap({x: 50, y: 300}).perform();
})
.then(function () {
return el.elementByAccessibilityId('Maps');
})
.click()
.sleep(3000) // google maps be slow
.contexts().then(function (ctxs) {
return driver.context(_.last(ctxs));
})
.url().should.eventually.include('https://www.google.com/maps')
.waitForElementById('ml-searchboxinput').should.eventually.exist
.nodeify(done);
}); |
I have tried with your case. It works. Thanks a lot!:) |
Yeah X and y works but it doesn't work with Element targets, i did some search and you have a bug already open #4075. |
I had such an error once, I solved it by... from selenium import webdriver I had imported both while using selenium explicit waits to find my elements. Never, do so, Its a trap. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
I use click, and tap method to click the left top corner menu icon in Google Home page for Android 5.0 device, but it's failed.
Here is the method I used. Please help me check the issue and advise the right method to process the action.
driver.navigate().to(https://www.google.com);
driver.context("WEBVIEW_1");
WebElement menu = driver.findElement(By.id("gbg"));
menu.click();
OR:
TouchAction touchAction = new TouchAction(driver);
touchAction.tap(menu).release().perform();
here is the screenshot for menu icon in google page and the screen after clicking the menu icon:
The text was updated successfully, but these errors were encountered: