Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
563 views
by Contributing Tester (20 points)

I have a dropdown that is hidden so when I make the Select and run the test i get the following error:

org.openqa.selenium.ElementNotVisibleException: element not visible: Element is not currently visible and may not be manipulated

 

1 Answer

1 like 0 dislike
by
selected by
 
Best answer

Try below code definatly it will work 

 
// Select method
Select text= new Select(DropdownLocator);
text.selectByVisibleText("text");
 
 
by Contributing Tester (20 points)
Thank you : )


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...