# Locating element

**URL:** <https://forum.robotframework.org/t/locating-element/8621>\
**Category:** Robot Framework\
**Created:** [9 March 2025 09:00 UTC](https://forum.robotframework.org/t/locating-element/8621 "2025-03-09T09:00:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamad.velayati](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@mohamad.velayati](https://forum.robotframework.org/u/mohamad.velayati)\
**Post date:** [9 March 2025 09:00 UTC](https://forum.robotframework.org/t/locating-element/8621/1 "2025-03-09T09:00:57Z")

</div>

hi

we have a local web application that has box like this and i want to click on it and choose between different options:

i use two option of css locating and xpath locating  
this is the element inspect pic

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/b/b989ac18ccc0423da894e0a23092e4090bbcbb18.png)

i use css:#form\_powerplant  
and xpath://\*[@id=“form\_powerplant”]

but i have error that element not found

---

<div class="post-metadata">

**Author:** ![CharlieScene](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/charliescene/32/3484_2.png) [@CharlieScene](https://forum.robotframework.org/u/CharlieScene)\
**Post date:** [9 March 2025 12:28 UTC](https://forum.robotframework.org/t/locating-element/8621/2 "2025-03-09T12:28:28Z")

</div>

Hi,

Did you verified that the locator is unique? And check _Element Should Be Visible_?

This doesn’t seems to be a standard choice list, so you could try:

```
Click Element //*[@id=“form_powerplant”]/parent::span

```

Or

```
Click Element //input[@id=“form_powerplant”]/parent::span

```

Then wait for the list container to be visible and click the choice.

Regards  
Charlie
