I am new to python and I'm trying to understand how to click on a dropdown menu where I select it through the name and not the value even though the name is shown multiple times throughout the code because each shirt has a different value where a jacket can have `14123` and a shirt has `14133` as the value.

Here is My Code:

```
browser = webdriver.Chrome()

Size=browser.find_element_by_xpath("//select[@name='X-Large']/option[@value='12218866729085']").click()

```

HTML Code EX for one shirt:

```
select id="product-select" name="id" class="">

option value="12218866630781">Small</option>
option value="12218866663549">Medium</option>
option value="12218866696317">Large</option>
option value="12218866729085">X-Large</option>

```

Gives this error:

> 
> ("//select[@name='X-Large']/option[@value ='12218866729085']").click()
>  AttributeError: 'str' object has no attribute 'click'
> 
> 
>