Skip to content

Commit

Permalink
[no ci] improve axe example
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrthomas committed May 6, 2023
1 parent be59b7a commit 821215f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions karate-e2e-tests/src/test/java/axe/axe.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ Feature: axe accessibility native

Scenario:
# get axe script
* def axeJs = karate.http('https://cdnjs.cloudflare.com/ajax/libs/axe-core/4.0.2/axe.min.js').get().body
* driver 'https://www.seleniumeasy.com/test/dynamic-data-loading-demo.html'
* def axeJs = karate.http('https://cdnjs.cloudflare.com/ajax/libs/axe-core/4.7.0/axe.min.js').get().body
* driver 'https://dequeuniversity.com/demo/dream'
* waitFor('.submit-search')
# inject axe script
* driver.script(axeJs);
* driver.script(axeJs)
# execute axe
* def axeResponse = driver.scriptAwait('axe.run()')
* karate.write(axeResponse, 'axe-response.json')
* doc { read: 'axe-report.html' }

0 comments on commit 821215f

Please sign in to comment.