Home > Mobile >  how to import Select class in webdriver javascript
how to import Select class in webdriver javascript

Time:10-28

I am trying to use Select in my code to interact with a dropdown, i tried importing Select from "selenium-webdriver" package but it does not work. all the results i get when searching about it lead to python codes importing Select from selenium-webdriver.support.ui package which i'm not able to find in javascript package. Any help in how to import Select class into js code would be very much appriciated ;)

CodePudding user response:

There is no select class in Selenium JS. Your best bet is to click on the element, and once it is visible, select by clicking on it.

Select from dropdown in selenium-webdriver javascript

  • Related