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

asked Sep 22, 2020 at 3:49

1 Answer 1

2

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();
answered Sep 22, 2020 at 11:04

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.