Skip to content

BUG: AccessibilityScanRuntimeException on IOS safari #475

Open
@zcube123

Description

@zcube123

Describe the bug
Error running Accessibility Scanning on IOS Safari.

Environment Happening In

  • Production
  • QA
  • Dev

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):

  • Product: [axe-core]
  • Product Version: 'com.deque.html.axe-core:selenium:4.9.+' (Latest)
  • 'org.seleniumhq.selenium:selenium-java:4.16.1'
  • Latest Product Version it is NOT happening in: Not sure.
  • OS: macOS Ventura 13
  • Browser Safari
  • Browser Version 17

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions