0

How to select a value from drop down using selenium-webdriver JavaScript bindings. I do see that Select is available in Java. I have seen similar option in C# also. Couldn't find anything in JavaCcript to handle select option enter link description here

M_K
  • 119
  • 1
  • 3
  • 13

1 Answers1

1

In selenium-webdriver JavaScript you don't have "Select" class. You just need to simply click on drop-down option by passing correct css/xpath.

let element = driver.wait(until.elementLocated(By.css(cssLocator)));
element.click();
Pritam Patil
  • 90
  • 1
  • 12