Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): add timeout to webdriver.js #47

Merged
merged 4 commits into from
Jul 13, 2020
Merged

fix(cli): add timeout to webdriver.js #47

merged 4 commits into from
Jul 13, 2020

Conversation

michael-siek
Copy link
Member

@michael-siek michael-siek commented Jul 8, 2020

See: https://github.com/dequelabs/axe-devtools-npm/issues/697

Reviewer checks

Required fields, to be filled out by PR reviewer(s)

  • Code is reviewed for security

@michael-siek michael-siek marked this pull request as ready for review July 8, 2020 23:27
@michael-siek michael-siek requested a review from a team July 8, 2020 23:28
@@ -2,8 +2,10 @@ const chromedriver = require('chromedriver');
const { Builder, Capabilities } = require('selenium-webdriver');
const chrome = require('selenium-webdriver/chrome');

function startDriver(config) {
async function startDriver(config) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me this could be solved without a breaking change, by having ADT itself call setTimeouts. I don't think we should introduce a breaking change like this if we can avoid it. Seems unnecessary.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a necessary change since axe core cli have a default value for settimeout and if we move it into this file it wouldn't get called since we pass in our driver instance from adt/cli -> axe-core cli

@michael-siek michael-siek merged commit b9a3a3d into develop Jul 13, 2020
@jeeyyy jeeyyy deleted the fix-timeout branch December 16, 2020 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants