Hi @harshitj,
Still it is not recognizing the element. I am getting some below error in the logs mentioned below.
I am trying to click Text box and enter some values and need to click send button. But it is not recognizing the textbox only.
Console Logs:
An element could not be located on the page using the given search parameters.
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: ‘3.13.0’, revision: ‘2f0d292’, time: '2018-06-25T15:32:14.902Z’
System info: host: ‘WLE17C0D’, ip: ‘10.1.18.36’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: '1.8.0_172’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities {appActivity: com.myapp.activities.Splas…, appPackage: com.myapp, autoGrantPermissions: true, automationName: uiAutomator2, databaseEnabled: false, desired: {appActivity: com.myapp.activities.Splas…, appPackage: com.myapp, autoGrantPermissions: true, automationName: uiAutomator2, deviceName: Galaxy On5 Pro, noReset: true, platformName: android, platformVersion: 7.1.1, udid: 420016e19aae9479}, deviceApiLevel: 25, deviceManufacturer: samsung, deviceModel: SM-G550FY, deviceName: 420016e19aae9479, deviceScreenDensity: 320, deviceScreenSize: 720x1280, deviceUDID: 420016e19aae9479, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: true, noReset: true, pixelRatio: 2, platform: LINUX, platformName: LINUX, platformVersion: 7.1.1, statBarHeight: 48, takesScreenshot: true, udid: 420016e19aae9479, viewportRect: {height: 1232, left: 0, top: 48, width: 720}, warnings: {}, webStorageEnabled: false}
Session ID: 6336b08c-a9d9-47c0-a3c0-779ccfb795f8
*** Element info: {Using=xpath, value=//android.widget.EditText[contains(@resource-id,‘com.myapp:id/messageEdit’)]}
Appium Logs:
[W3C] Calling AppiumDriver.findElement() with args: [“xpath”,"//android.widget.EditText[contains(@resource-id,‘com.myapp:id/messageEdit’)]",“6336b08c-a9d9-47c0-a3c0-779ccfb795f8”]
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[BaseDriver] Waiting up to 30000 ms for condition
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8201/wd/hub/session/1387fc1d-eee8-43dc-9c37-c3f0b4eddfa7/element] with body: {“strategy”:“xpath”,“selector”:"//android.widget.EditText[contains(@resource-id,‘com.myapp:id/messageEdit’)]",“context”:"",“multiple”:false}
[W3C] Encountered internal error running command: {“w3cStatus”:400,“jsonwp”:{“sessionId”:“1387fc1d-eee8-43dc-9c37-c3f0b4eddfa7”,“status”:7,“value”:“An element could not be located on the page using the given search parameters.”}} ProxyRequestError: Could not proxy command to remote server. Original error: 500 - {“sessionId”:“1387fc1d-eee8-43dc-9c37-c3f0b4eddfa7”,“status”:7,“value”:“An element could not be located on the page using the given search parameters.”}
[W3C] at JWProxy.proxy$ (C:\Users\104167\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:152:13)
[W3C] at tryCatch (C:\Users\104167\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
[W3C] at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\104167\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
[W3C] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (C:\Users\104167\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
[W3C] at GeneratorFunctionPrototype.invoke (C:\Users\104167\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[W3C] at
[MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[HTTP] <-- POST /wd/hub/session/6336b08c-a9d9-47c0-a3c0-779ccfb795f8/element 404 238 ms - 1640