CodePudding user response:
with c#, I would do something like this:
Click the button to open the drop down
then you could use
driver.FindElement(By.XPath("//select[@id='Supplies']/option[contains(text(), 'test1')]")).click();
CodePudding user response:
with c#, I would do something like this:
Click the button to open the drop down
then you could use
driver.FindElement(By.XPath("//select[@id='Supplies']/option[contains(text(), 'test1')]")).click();