Server logs for the successful click on Button
MJSONWP] Calling AppiumDriver.click() with args: [“4”,“5399f480-a561-4e79-acfe-ff96bce0c32c”]
[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“4”}}
//this para contains the unsuccessful click on Ok button and there is no such command as AppiumDriver.click() in the 2nd Operation
MJSONWP] Calling AppiumDriver.findElement() with args:
[“id”,“com.edmobilelabs.sling.dev:id/btnPositive”,“b5e8417e-3de8-4069-9570-efbe96241665”]
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [BaseDriver] Waiting up to 5000 ms for condition [AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“com.edmobilelabs.sling.dev:id/btnPositive”,“context”:"",“multiple”:false}} [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:
{“strategy”:“id”,“selector”:“com.edmobilelabs.sling.dev:id/btnPositive”,“context”:"",“multiple”:false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding
‘com.edmobilelabs.sling.dev:id/btnPositive’ using ‘ID’ with the contextId: ‘’ multiple: false
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.edmobilelabs.sling.dev:id/btnPositive]
[AndroidBootstrap] Received command result from bootstrap [MJSONWP] Responding to client with driver.findElement() result: {“ELEMENT”:“5”}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding ‘com.edmobilelabs.sling.dev:id/btnPositive’ using ‘ID’ with the contextId: ‘’ multiple: false
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.edmobilelabs.sling.dev:id/btnPositive]
[AndroidBootstrap] Received command result from bootstrap [MJSONWP] Responding to client with driver.findElement() result: {“ELEMENT”:“5”}
[MJSONWP] Calling AppiumDriver.elementDisplayed() with args: [“5”,“b5e8417e-3de8-4069-9570-efbe96241665”]
Here is the link to my complete code and server logs
https://stackoverflow.com/questions/45635657/unable-to-click-on-native-app-generated-pop-up-questions-is-i-am-able-to-click
This is for Sure an Appium Bug
Can any 1 help me out with this situation and I have tried absolute X-path and switching context
So any other idea