I have a testsuite, which uses WebDriver 3.5.2
ad ChromeDriver 2.31
.
I checked xpath for element in Google Chrome
and I defined it in testcase. I set ChromeDriver
in headless mode.
When I execute test I get follwoing error:
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for presence of element located by: By.xpath: //*[@id="formA"]/p[1]/label (tried for 30 second(s) with 500 MILLISECONDS interval)
This xpath exists on webpage if I check it manually from browser. Webpage loads in a few seconds, so 30 should be enough.