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

How to make element displayed to true in Selenium using C#

$
0
0

I want to click an excel button on a page but i am getting "element not interactable" error.
When i debugged it, i see the element display is set to false. However, i can go to the page and click element and it downloads the file so it works but not when i am running my code. I have put longer wait time but that did not help either.Here is my code

  var excelButton = driver.FindElement(By.XPath("//div[contains(@class,'exportLabel') and contains(text(),'XLS (1000 max)')]"));        System.Threading.Thread.Sleep(5000);        excelButton.Click();

enter image description here


Viewing all articles
Browse latest Browse all 99028

Trending Articles



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