I'm using the Selenium Kit in Python and am trying to select an option from a drop-down menu.
For this I'm using python driver.select_by_visible_text()
.
My problem is now that the visible text always contains the value I'm looking but with something added afterwards. The select_by_visible_text()
just finds the exact option, but I can´t name it exactly.
For example: I'm looking for the option "W33", the website then says "W33 (only 4 left)". I would like to select "W33 (only 4 left)", but don´t know how to achieve this?