Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98819

Selenium Java- Drop down selection where Style- display is none

$
0
0

when i try to select a drop down with Style display: none;

option 1: WebElement sysDropDown = driver.findElement(By.id("ctl00_ContentPlaceHolder1_ddlFeedStatus")); Select sDropdown = new Select(sysDropDown); sDropdown.selectByVisibleText("01 - Quarantined");

   the above code renders error - element not interactable: Element is not currently visible and may not be manipulated

Option 2: WebElement hiddenWebElement =driver.findElement(By.xpath("//select[@name='ctl00$ContentPlaceHolder1$ddlFeedStatus']")); ((JavascriptExecutor)driver).executeScript("arguments[0].click()",hiddenWebElement);

Option2 recognizes the drop down but unable to select an item from the drop down.

Any help would be appreciated.

Tried few options i see in the site but didtn't help much


Viewing all articles
Browse latest Browse all 98819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>