dequelabs / axe-core-maven-html

Tools for using axe for web accessibility testing with JUnit, Selenium, and Playwright
Mozilla Public License 2.0
81 stars 102 forks source link

BUG: `scriptTimeout` does not exist on selenium 3.141.59 #479

Closed michael-siek closed 4 hours ago

michael-siek commented 1 week ago

Describe the bug A clear and concise description of what the bug is.

Environment Happening In

To Reproduce When using older versions of selenium (3.141.59) with the AxeBuilder we are getting an error

java.lang.NoSuchMethodError: 'org.openqa.selenium.WebDriver$Timeouts org.openqa.selenium.WebDriver$Timeouts.scriptTimeout(java.time.Duration)'

When trying to execute

webDriver.manage().timeouts().scriptTimeout(Duration.ofSeconds((long)this.timeout))

Desktop (please complete the following information):

Additional context https://github.com/SeleniumHQ/selenium/blob/selenium-3.141.59/java/client/src/org/openqa/selenium/WebDriver.java#L257