Hi,
using appium I have to found an android native component and I have to click on it.
I found the Android native element using xPath in the following way :
> WebElement element = (new WebDriverWait(driver, 90))
.until(ExpectedConditions.presenceOfElementLocated(By.xpath(getXPath(label,idName)))); element.click();
But the server after call click() method stop to respond.
(The component is not clickable, is inside a clickable framelayout)
The following is the log :
[debug] [MJSONWP] Calling AppiumDriver.click() with args: [“9”,“d740b625-33eb-4782-9c5c-61b78f158072”]
[debug] [AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:"9
"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“element:click”,“params”:{“ele
mentId”:“9”}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:true}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.click() result: true
[HTTP] ← POST /wd/hub/session/d740b625-33eb-4782-9c5c-61b78f158072/element/9/click 200 244873 ms - 76
[HTTP] → DELETE /wd/hub/session/d740b625-33eb-4782-9c5c-61b78f158072 {}
[debug] [MJSONWP] Calling AppiumDriver.deleteSession() with args: [“d740b625-33eb-4782-9c5c-61b78f158072”]
[debug] [AndroidDriver] Shutting down Android driver
i’m using Appium v1.6.3, java-client 5.0.0-BETA5 and selenium 3.2