Giter VIP home page Giter VIP logo

Comments (9)

jlipps avatar jlipps commented on August 12, 2024

Those don't look like Appium logs

from appium-chromedriver.

jlipps avatar jlipps commented on August 12, 2024

Your client code also appears to be using some kind of framework so it's not really possible to understand what commands are being run without seeing the Appium logs

from appium-chromedriver.

Rahul1970 avatar Rahul1970 commented on August 12, 2024

Hi Jlipps,
I have attached the appium logs for your reference in the issue description. Sharing again

Link to Appium logs
1..Appium logs for working code on emulator on successful switch context to webview and able to locate element.

<script src="https://gist.github.com/Rahul1970/c503aa9943cf60649a7fed269f5b5797.js"></script>
  1. Appium logs on real device on successful switch context to webview but not able to locate element.
<script src="https://gist.github.com/Rahul1970/585e3c08718ec291bf2b0c4452af89b3.js"></script>

Links to chromedriver Logs
Chromedriver getpagesource() response logs on emulator.

<script src="https://gist.github.com/Rahul1970/97f8e8fd0a5f1145873a237855ba33c1.js"></script>

Chromedriver getpagesource() response logs on real device.

<script src="https://gist.github.com/Rahul1970/bf078ac294e534b7749f5e33493bd110.js"></script>

Please Suggest.

from appium-chromedriver.

KazuCocoa avatar KazuCocoa commented on August 12, 2024

It seems like the chromedriver/chrome browser version itself could not find it.

�[35m[WD Proxy]�[39m Got response with status 404: {"value":{"error":"no such element","message":"no such element: Unable to locate element: {"method":"xpath","selector":"//input[@data-autoid='LASTNAME_ctrl']"}\n (Session info: chrome=98.0.4758.101)","stacktrace":"Backtrace:\n\tOrdinal0 [0x0076A0A3+2597027]\n\tOrdinal0 [0x006FBA61+2144865]\n\tOrdinal0 [0x005F3C58+1064024]\n\tOrdinal0 [0x0062020E+1245710]\n\tOrdinal0 [0x0062040B+1246219]\n\tOrdinal0 [0x0064A722+1419042]\n\tOrdinal0 [0x006387F4+1345524]\n\tOrdinal0 [0x00648B1A+1411866]\n\tOrdinal0 [0x006385C6+1344966]\n\tOrdinal0 [0x006154C6+1201350]\n\tOrdinal0 [0x006163B6+1205174]\n\tGetHandleVerifier [0x009110A2+1681842]\n\tGetHandleVerifier [0x009C3B0C+2413596]\n\tGetHandleVerifier [0x00801221+568113]\n\tGetHandleVerifier [0x007FFFA3+563379]\n\tOrdinal0 [0x0070174E+2168654]\n\tOrdinal0 [0x00706538+2188600]\n\tOrdinal0 [0x00706680+2188928]\n\tOrdinal0 [0x0071030C+2229004]\n\tBaseThreadInitThunk [0x74FDFA29+25]\n\tRtlGetAppContainerNamedObjectPath [0x77007A9E+286]\n\tRtlGetAppContainerNamedObjectP...

Chromedriver on Real Device used: 98.0.4758.48
Chromedriver on Emulator used: 83.0.4103.106

One possible reason from this comment is newer chrome/chromedriver cannot find them. If you have a device that has older chrome, you can try it out...

from appium-chromedriver.

Rahul1970 avatar Rahul1970 commented on August 12, 2024

Hi KazuCocoa,
I have used chromedriver 83.0.4103.106 on emulator it is working fine. When i am using chromedriver 98.0.4758.48 or chromedriver 99.0.4844.73 on real device i am getting unable to locate element error.

from appium-chromedriver.

KazuCocoa avatar KazuCocoa commented on August 12, 2024

Yes, so I assume older chrome version and chromedriver for Android might work.
Kindly report it to Google.

from appium-chromedriver.

KazuCocoa avatar KazuCocoa commented on August 12, 2024

You also can create a Play Store available emulator instance and update the chrome to v98 to confirm if it is chrome/chromedriver dependent or manufacture dependent.

from appium-chromedriver.

Rahul1970 avatar Rahul1970 commented on August 12, 2024

Hi KazuCocoa,
I am able to run my script on chromedriver 83.0.4103.106 on emulator and on chromedriver 81.0.4044.138 on real device. However when i am running it on chromedriver 99.0.4844.73 with browser version 99.0.4844.73 on real device i am getting message "Unable to locate element.". Moreover i have also tried to downgrade my chromebrowser version to 98.0.4758.101 and used chromedriver 98.0.4758.102 also tried the similar activity for
chromebrowser version to 97.0.4692.70 and used chromedriver 97.0.4692.71. But for downgraded version apk i am getting the message No chromederiver found for chrome browser version 99.0.4844.73.

(Steps used for downgrading chromebrowser version 1. Disable autoupdate 2. Uninstall updates for chromedriver 3. Install the downgrade version browser apk. 4 Install the chromedriver version matching the browser apk .)

from appium-chromedriver.

KazuCocoa avatar KazuCocoa commented on August 12, 2024

Perhaps the android WebView's chrome browser version was v99.

No chromederiver found for chrome browser version 99.0.4844.73.

Generally it means the app's webview process runs as chrome browser v99, and the chromedriver cannot work with it because of lower chromedriver version than the chrome version.

I am able to run my script on chromedriver 83.0.4103.106 on emulator and on chromedriver 81.0.4044.138 on real device.

Hm, it sounds like chrome/chromedriver has kind of regressions. Then, only Google can improve it...

from appium-chromedriver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.