# Shadow Dom Element is not clickable and throws invalid argument error

**URL:** <https://forum.robotframework.org/t/shadow-dom-element-is-not-clickable-and-throws-invalid-argument-error/6448>\
**Category:** Appium\
**Created:** [9 November 2023 11:09 UTC](https://forum.robotframework.org/t/shadow-dom-element-is-not-clickable-and-throws-invalid-argument-error/6448 "2023-11-09T11:09:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NaveenKum07](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/naveenkum07/32/3141_2.png) [@NaveenKum07](https://forum.robotframework.org/u/NaveenKum07)\
**Post date:** [9 November 2023 11:09 UTC](https://forum.robotframework.org/t/shadow-dom-element-is-not-clickable-and-throws-invalid-argument-error/6448/1 "2023-11-09T11:09:13Z")

</div>

I am need to click an element using the click element keyword and using the dom based jspath  
when i am inspecting the locator matches with the element using the console but when i am executing the program an error is displayed  
I am Using the Appium and interacting with the hybrid mode and inspecting using the real device

Error Message  
ValueError: Element locator ‘//\*[contains(@text,“Skip”)]’ did not match any elements.  
Code  
Click Element dom:document.querySelector(‘body \> app-root \> ion-app \> ion-router-outlet \> app-on-boarding-type \> ion-header \> ion-toolbar \> ion-buttons:nth-child(2) \> ion-button’).shadowRoot.querySelector(“Button”)
