# Cannot read properties of undefined

**URL:** <https://discuss.appium.io/t/cannot-read-properties-of-undefined/45087>\
**Category:** Issues/Bugs\
**Created:** [November 27, 2024, 6:32pm UTC](https://discuss.appium.io/t/cannot-read-properties-of-undefined/45087 "2024-11-27T18:32:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MBTester](https://discuss.appium.io/user_avatar/discuss.appium.io/mbtester/32/9039_2.png) [@MBTester](https://discuss.appium.io/u/MBTester)\
**Post date:** [November 27, 2024, 6:32pm UTC](https://discuss.appium.io/t/cannot-read-properties-of-undefined/45087/1 "2024-11-27T18:32:19Z")

</div>

I have an issue with steering WebViews, always getting this error:

javascript error: Cannot read properties of undefined (reading ‘readOnly’)  
(Session info: chrome=131.0.6778.39)  
(Driver info: chromedriver=131.0.6778.85 (3d81e41b6f3ac8bcae63b32e8145c9eb0cd60a2d-refs/branch-heads/6778@{#2285}),platform=Mac OS X 14.0.0 arm64)

Could the new chromedriver be the reason for this issue? Test cases were running fine like 4 weeks earlier and on app side nothing changed. I am able to steer the native part. Happy for any hints or solution 🙂

#Android #realdevice #SamsungS23

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [November 27, 2024, 7:58pm UTC](https://discuss.appium.io/t/cannot-read-properties-of-undefined/45087/2 "2024-11-27T19:58:14Z")

</div>

This is such a common error in JavaScript/TypeScript that it’s hard to give good advice. Maybe read through some commonly available solutions?

> **[javascript error: Cannot read properties of undefined (reading 'readOnly') at...](https://duckduckgo.com/?q=javascript%2Berror%3A%2BCannot%2Bread%2Bproperties%2Bof%2Bundefined%2B%28reading%2B%E2%80%98readOnly%E2%80%99%29&ia=web)**
>
> DuckDuckGo. Privacy, Simplified.

---

<div class="post-metadata">

**Author:** ![MBTester](https://discuss.appium.io/user_avatar/discuss.appium.io/mbtester/32/9039_2.png) [@MBTester](https://discuss.appium.io/u/MBTester)\
**Post date:** [November 27, 2024, 8:02pm UTC](https://discuss.appium.io/t/cannot-read-properties-of-undefined/45087/3 "2024-11-27T20:02:09Z")

</div>

Thanks for the reply. Meanwhile I have downgraded the systems WebView Version to 118, which works without any issues. So the new WebView version was causing the issue…
