I am running Selenium headless browser on a Jenkins windows node as a part of test suite. However, it throws org.openqa.selenium.ElementNotVisibleException - element is not visible.
On my local machine, I am able to run the same test suite successfully. The only difference is that I use chrome browser instead of a headless browser.
Can someone help me with this one?
Note:
- I have verified that the element is visible on the page.
- I have tried adding wait/sleep before the page is rendered. But, it still throws exception when running on Jenkins.