Question: there's an html code on a web page that I'm trying to automate, and one of the line goes something like this:

```
<"option value = "1">ABC<"/option>"

```

I am wondering if there are anyways to locate this without using the value, but locating it through text ABC. I have ABC stored under a variable, and I'm planning to pass that variable in.

Answer: 
```
from selenium.webdriver.support.ui import Select

select = Select(driver.find_element_by_id("dropdown_menu"))
select.select_by_visible_text(abc_variable)

```
Try by xpath..`driver.find_element_by_xpath("//option[text()='ABC']")`