Drop down selection using xpath

Hello All,

How can we set the exact value from excel, if on drop downs type keystrokes doesn’t work properly

If I have a specific value for example, 0.50 in excel & then selection highlights first 0 value from the drop down not the one I need , how can we compare n select the exact matches?


HI @DesertEagle can you type in the field, or can you only select from the dropdown menu?

After you click on the field, try using mouse click on a relative xpath with contain: //td[contains(text(),’${excel}’)], where ${excel} is the value you copy from your Excel file. I cannot see the code of the page, but I assume the xpath will be similar to it.

1 Like