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

#317 switch to ChromeHeadless #318

Conversation

lefthandedgoat
Copy link

I did the best I could testing this. I could only run via command line, I couldn't get the right combo of stuff installed so that VS would open the project.

Using regular chrome it works and is VERY slow (I stopped it not knowing how many tests there were). I then switched to ChromeHeadless and it also worked (slowly) but the last test failed.

Concerned about the speed I went to localhost:8085 and there was a noticeable lag as I typed into the box, so I don't think the slowness is related to the changes I made.

@lefthandedgoat
Copy link
Author

lefthandedgoat commented Mar 22, 2018

Looks like the build failed because chrome was not version 64 or above. I can't tell what version is installed.

If you can determine what version is installed, you can find the right chromedriver version here:

https://sites.google.com/a/chromium.org/chromedriver/downloads

Then you can adjust the version of the nuget package to correspond:
https://www.nuget.org/packages/Selenium.WebDriver.ChromeDriver/

@forki
Copy link
Member

forki commented Mar 22, 2018

/cc @cgravill any ideas how to configure it on appveyor and travis?

@cgravill
Copy link
Contributor

I have AppVeyor working on #319 by downgrading the the driver slightly (Selenium.WebDriver.ChromeDriver = 2.36).

Using the TravisCI Chrome add-in it's attempting to run on TravisCI, however, it looks like it might be an old version of Chrome on there. We might be able to update Chrome that machine to something recent.

@cgravill
Copy link
Contributor

@forki I got the tests working on Travis on #319 as well by doing a full install of Chrome. What I did may be a bit outdated compared to https://docs.travis-ci.com/user/gui-and-headless-browsers/ but equally TravisCI's bundled versions of Chrome are now so old as to be problematic. Thoughts?

@forki
Copy link
Member

forki commented Mar 26, 2018

can we somehow ask the travis guys to update?

@cgravill
Copy link
Contributor

cgravill commented Apr 1, 2018

They seem pretty slow at upgrading - latest image is 14.04!

I tieded up the approach here so it no longer fakes a display with xvfb and definitely runs fully headless. It’s also using the same approach used to install Yarn. Rather than rely on TravisCI updating this seems like a decent approach.

@forki
Copy link
Member

forki commented May 8, 2018

that's done now

@forki forki closed this May 8, 2018
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.

3 participants