# Help with Click Element DOM

**URL:** <https://forum.robotframework.org/t/help-with-click-element-dom/1488>\
**Category:** SeleniumLibrary\
**Created:** [17 March 2021 17:17 UTC](https://forum.robotframework.org/t/help-with-click-element-dom/1488 "2021-03-17T17:17:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hekame1008](https://avatars.discourse-cdn.com/v4/letter/h/858c86/32.png) [@hekame1008](https://forum.robotframework.org/u/hekame1008)\
**Post date:** [17 March 2021 17:17 UTC](https://forum.robotframework.org/t/help-with-click-element-dom/1488/1 "2021-03-17T17:17:04Z")

</div>

Hi,  
I’m new to robotframework (just started last week),

 ![is_it_clickable](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/1X/f7fd559138e2497cd94c5aceb631e3a55864ce3f.png)  
I understood that the above is not clickable via xpath / css or others since it’s completely DOM, but It’s not clear how can I access that element.

---

<div class="post-metadata">

**Author:** ![hobet](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@hobet](https://forum.robotframework.org/u/hobet)\
**Post date:** [17 March 2021 18:21 UTC](https://forum.robotframework.org/t/help-with-click-element-dom/1488/2 "2021-03-17T18:21:35Z")

</div>

What do you mean not clickable? The clickable aspect of any element is independent of whether you are using CSS or XPath. First you need to locate and find the element, after that it should be clickable as long as it is visible, even if it is disabled.

Or am I misunderstanding your problem?

---

<div class="post-metadata">

**Author:** ![hekame1008](https://avatars.discourse-cdn.com/v4/letter/h/858c86/32.png) [@hekame1008](https://forum.robotframework.org/u/hekame1008)\
**Post date:** [17 March 2021 18:29 UTC](https://forum.robotframework.org/t/help-with-click-element-dom/1488/3 "2021-03-17T18:29:35Z")

</div>

Yes , sorry. Up to now all elements were reachable (because they were all either html/css) so I was able to reach them either via xpath or css.  
Now above it’s the first time dealing with DOM so I don’t know how to reach that element.  
It should be

> Click Element dom:document.data:" user group:admins "

or something like that but I don’t know how to access it, and the keyword documentation doesn’t provide many examples…

---

<div class="post-metadata">

**Author:** ![hekame1008](https://avatars.discourse-cdn.com/v4/letter/h/858c86/32.png) [@hekame1008](https://forum.robotframework.org/u/hekame1008)\
**Post date:** [17 March 2021 21:30 UTC](https://forum.robotframework.org/t/help-with-click-element-dom/1488/4 "2021-03-17T21:30:43Z")

</div>

The solution was :

> Click Element dom=document.getElementsByClassName(“grouped”)[0]

---

<div class="post-metadata">

**Author:** ![hobet](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@hobet](https://forum.robotframework.org/u/hobet)\
**Post date:** [18 March 2021 00:48 UTC](https://forum.robotframework.org/t/help-with-click-element-dom/1488/5 "2021-03-18T00:48:12Z")

</div>

That element should still be locatable, i.e. reachable, via CSS and XPath dare I say. You shouldn’t have had to resort to using dom as a locator strategy. However, glad you got it working. Good for you! Progress!
