# Access CANVAS element

**URL:** <https://forum.robotframework.org/t/access-canvas-element/3601>\
**Category:** Robot Framework\
**Created:** [12 April 2022 14:29 UTC](https://forum.robotframework.org/t/access-canvas-element/3601 "2022-04-12T14:29:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piotr](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@Piotr](https://forum.robotframework.org/u/Piotr)\
**Post date:** [12 April 2022 14:29 UTC](https://forum.robotframework.org/t/access-canvas-element/3601/1 "2022-04-12T14:29:56Z")

</div>

Hi,  
I’m trying to access CANVAS element in our WEB application (React, Java) however it is not easy.  
Robot only is able to select whole canvas element. In our case it is a map were are added some point and route.  
Anyone is familiar about, how to access those element inside canvas element ?

---

<div class="post-metadata">

**Author:** ![gonzalo](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@gonzalo](https://forum.robotframework.org/u/gonzalo)\
**Post date:** [22 February 2023 19:55 UTC](https://forum.robotframework.org/t/access-canvas-element/3601/2 "2023-02-22T19:55:53Z")

</div>

I have exactly the same problem. Were you able to solve it?

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [22 February 2023 23:42 UTC](https://forum.robotframework.org/t/access-canvas-element/3601/3 "2023-02-22T23:42:52Z")

</div>

Hi Piotr & Gonzalo,

You didn’t mention which library you are trying to use, but from my quick search it looks like it will be difficult with both the common ones.

- SeleniumLibrary is a wrapper around Selenium, which apparently has issues with \<Canvas\> due to using the DOM model, see this for more detail:  
[html - Interacting with a Canvas with Selenium - Stack Overflow](https://stackoverflow.com/questions/18254564/interacting-with-a-canvas-with-selenium)

- Browser Library is a wrapper around Playwright which also appears to use DOM but according to this might be able to get to the element your after but it doesn go into detail, so more searching will be required  
[Playwright assertions on canvas - Stack Overflow](https://stackoverflow.com/questions/75438513/playwright-assertions-on-canvas)

Hopefully this gives you a pointer in the right direction,

Dave.
