javascript - How to get to a select element when its hidden? -


usually when want use select element pretty simple, go:

val selectcompany = new select(driver.findelement(by.cssselector("#company_id"))) selectcompany.selectbyvalue("975") 

but in case dosen't work...

this html (the relevant part):

enter image description here

but error using css selector, error:

exception in thread "main" org.openqa.selenium.elementnotvisibleexception: element not visible , may not interacted command duration or timeout: 60 milliseconds

i tried add wait element still not working...

i guess issue select element hidden, can please helpppp

thanks

execute script before try find element; this. hope help

((javascriptexecutor) driver).executescript(" document.getelementbyid('company_id').style.visibility = 'visible'; "); 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -