"No elements found for include in page context " error appearing when `include` having multiple web elements
padmavemulapati opened this issue · comments
padmavemulapati commented
Adam Cutler commented
In oder to include multiple elements you call include
multiple times with each individual selector. include
takes a list of selectors solely to select elements inside iframe
s.
padmavemulapati commented
Discussed with Adam,
with the change in the test code snippet:
Results result = new AxeBuilder().include(Arrays.asList("div")).include(Arrays.asList("h1")).analyze(webDriver);
instead
AxeBuilder().include(Arrays.asList("div", "h1")).analyze(webDriver);
its giving the expected results.