question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webElement click function not working on appium1.6.3 on real device ios 10.0.1

See original GitHub issue

The problem

calling WebElement click function on an element is not doing anything, but show 200 status for the click request

[HTTP] <-- POST /wd/hub/session/c02bd830-b5e4-4f24-93cb-e6f0dc6ab4fa/element/5004/click 200 510 ms - 76

Environment

  • Appium version (or git revision) that exhibits the issue: 1.6.3
  • Last Appium version that did not exhibit the issue (if applicable): no one
  • Desktop OS/version used to run Appium: MacOS v10.11.6
  • Node.js version (unless using Appium.app|exe): v6.9.2
  • Mobile platform/version under test: iPad Air 10.0.1
  • Real device or emulator/simulator: Real device
  • Appium CLI or Appium.app|exe: Appium CLI

Details

What I want to do is login in with a valid account, but it don’t happen when it click the sign in button, I also try the driver.tap(1, element, 1000) method, it also return 200 status code, but still not working as page keep not doing anything.

I used to use below command in real ios device for any click/tap method, but currently, I update the appium to 1.6.3 to support the ios 10, below command become not supported, so I change to use the element click function, but it seems not working.

JavascriptExecute.executeScript("mobile: tap", tabObject)

Link to Appium logs

https://gist.github.com/xiaoningz/bb0fa890cde6b5b1cd604c7e86b62d6e

Steps To Reproduce Issue

  • build the WebdriverAgent to the iPad Air, build the target test app to the iPad Air
  • start the ios-webkit-debug-proxy with real iPad Air uuid
  • start the appium by comand: appium
  • run below code just a sample code here,
WebElement account= driver.findElement(By.xpath(xpath));
account.sendKeys(user_name);
WebElement pwd= driver.findElement(By.xpath(xpath));
pwd.sendKeys(password);
WebElement login= driver.findElement(By.xpath(xpath));
login.click();

the first two sendKeys step work well, but the login.click() not working

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jlippscommented, Jan 27, 2017

The landscape mode fix will be in Appium 1.6.4!

0reactions
lock[bot]commented, Apr 23, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Iphone6 and 6s(9.3 version) real devices are not working in ...
For real devices, try using the UDID in the desired capabilities object, instead of specifying by device and iOS version. – Kekoa. Jun...
Read more >
[Python, Real Device, iOS] WebElement.click() on webelement ...
What I am experiencing is the webelement.click() method working on some web pages, but not others. It is returning the same logs on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found