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: AccessibilityScanRuntimeException on IOS safari #475

Open zcube123 opened 3 weeks ago

zcube123 commented 3 weeks ago

Describe the bug Error running Accessibility Scanning on IOS Safari.

Environment Happening In

To Reproduce Steps to reproduce the behavior:

  1. Run AxeBuilder.analyze with a Remote web driver connected to a Safari browser.
  2. Receive a null pointer exception: java.lang.NullPointerException: Cannot invoke "java.lang.Number.longValue()" because the return value of "java.util.Map.get(Object)" is null at org.openqa.selenium.remote.RemoteWebDriver$RemoteWebDriverOptions$RemoteTimeouts.getPageLoadTimeout(RemoteWebDriver.java:992) at com.deque.html.axecore.selenium.AxeBuilder.analyzeRawContext(AxeBuilder.java:655) at com.deque.html.axecore.selenium.AxeBuilder.analyze(AxeBuilder.java:613)

Expected behavior An iOS accessibility scan runs without error.

Actual behavior A clear and concise description of what actually happened. Null pointer exception.

Screenshots If applicable, add screenshots to help explain your problem.

Related Tickets List out any user story or bug ticket(s) related to this bug.

Desktop (please complete the following information):

Additional context Additional note, the error also happens on a more recent selenium api version. Version: 4.23.1

Zidious commented 3 weeks ago

Hey @zcube123,

Thanks for reporting this. Can you share more details about how your test is setup and if the page under test is public?