# Having issues with clicking elements in webview

**URL:** <https://discuss.appium.io/t/having-issues-with-clicking-elements-in-webview/8465>\
**Category:** Support\
**Created:** [February 11, 2016, 7:35am UTC](https://discuss.appium.io/t/having-issues-with-clicking-elements-in-webview/8465 "2016-02-11T07:35:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ridhima.naik](https://discuss.appium.io/letter_avatar_proxy/v4/letter/r/e19b73/32.png) [@ridhima.naik](https://discuss.appium.io/u/ridhima.naik)\
**Post date:** [February 11, 2016, 7:35am UTC](https://discuss.appium.io/t/having-issues-with-clicking-elements-in-webview/8465/1 "2016-02-11T07:35:22Z")

</div>

i’m switching to the webview, finding the elements by their id’s and clicking on it. the click does not give me an error since the elements are visible. However, no action happens after the click which means that the element has actually not been selected. Please help me in figuring out where i’m going wrong.

---

<div class="post-metadata">

**Author:** ![amitjaincoer191](https://discuss.appium.io/user_avatar/discuss.appium.io/amitjaincoer191/32/5339_2.png) [@amitjaincoer191](https://discuss.appium.io/u/amitjaincoer191)\
**Post date:** [February 11, 2016, 1:55pm UTC](https://discuss.appium.io/t/having-issues-with-clicking-elements-in-webview/8465/2 "2016-02-11T13:55:50Z")

</div>

Try to use xpath taken from chrome remote debugger  
When u right click over HTML in chrome remote debugger it says copy XPATH use that xpath and see if it works

[http://toolsqa.com/mobile-automation/appium/how-to-inspect-and-automate-webview-in-hybrid-app/](http://toolsqa.com/mobile-automation/appium/how-to-inspect-and-automate-webview-in-hybrid-app/)

---

<div class="post-metadata">

**Author:** ![ridhima.naik](https://discuss.appium.io/letter_avatar_proxy/v4/letter/r/e19b73/32.png) [@ridhima.naik](https://discuss.appium.io/u/ridhima.naik)\
**Post date:** [February 12, 2016, 11:12am UTC](https://discuss.appium.io/t/having-issues-with-clicking-elements-in-webview/8465/3 "2016-02-12T11:12:13Z")

</div>

my problem is solved. But i specifically needed ids and not xpath.

---

<div class="post-metadata">

**Author:** ![Mani\_Maran\_Chandraba](https://discuss.appium.io/user_avatar/discuss.appium.io/mani_maran_chandraba/32/4702_2.png) [@Mani\_Maran\_Chandraba](https://discuss.appium.io/u/Mani_Maran_Chandraba)\
**Post date:** [February 12, 2016, 11:13am UTC](https://discuss.appium.io/t/having-issues-with-clicking-elements-in-webview/8465/4 "2016-02-12T11:13:23Z")

</div>

What is the actual issue you have faced with??

---

<div class="post-metadata">

**Author:** ![ridhima.naik](https://discuss.appium.io/letter_avatar_proxy/v4/letter/r/e19b73/32.png) [@ridhima.naik](https://discuss.appium.io/u/ridhima.naik)\
**Post date:** [February 12, 2016, 11:33am UTC](https://discuss.appium.io/t/having-issues-with-clicking-elements-in-webview/8465/5 "2016-02-12T11:33:02Z")

</div>

the issue was with my chromedriver. it wouldnt click on the elements despite locating them.

---

<div class="post-metadata">

**Author:** ![amitjaincoer191](https://discuss.appium.io/user_avatar/discuss.appium.io/amitjaincoer191/32/5339_2.png) [@amitjaincoer191](https://discuss.appium.io/u/amitjaincoer191)\
**Post date:** [February 12, 2016, 12:20pm UTC](https://discuss.appium.io/t/having-issues-with-clicking-elements-in-webview/8465/6 "2016-02-12T12:20:41Z")

</div>

@ridhima.naik  
How did u came to conclusion that issue is with chromeDriver itself ?  
How did u fixed it … like u updated chromeDriver.exe version which appium uses internally ?

---

<div class="post-metadata">

**Author:** ![ridhima.naik](https://discuss.appium.io/letter_avatar_proxy/v4/letter/r/e19b73/32.png) [@ridhima.naik](https://discuss.appium.io/u/ridhima.naik)\
**Post date:** [February 12, 2016, 4:39pm UTC](https://discuss.appium.io/t/having-issues-with-clicking-elements-in-webview/8465/7 "2016-02-12T16:39:48Z")

</div>

i used chromedriver executable capability to point to the chrome driver version i wanted. That helped since the switching to webview context would not happen a lot of times. Apart from that i used a different url in my code. That helped too. i dont know why though
