You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
I don't know what switches you need to set on Chrome, but Chrome in headless mode ignores some of them. Command line flags work, but prefs / profile don't.
This is only an issue when used with the --headless flag, so we can still use Chrome instead of Firefox but without the advantages of being headless.
if the last installed version doesnt work, try the next earlier one
repeat two until you got it working or no more version is available
Thing is, because the drivers are external programs following their manufacturers release policies, we cant lock a version in the Gemfile. For chrome headless users usually get the latest, which is not always the greatest, same for geckodriver.
Very important here to add for users: Do not reference circular objects!
Meaning: Do not test for "MyModel", but instead call a method that returns a value, any will do then, for example: "MyModel.respond_to?('find')"
currently no more issues with tests with the gems, though using any has_xpath or has_css is completely unreliable. workaround expect(page.body).to match(/<div>/) or .to include('<div>')
Leaving this open for documentation.
Activity
sfcgeorge commentedon Oct 17, 2017
I don't know what switches you need to set on Chrome, but Chrome in headless mode ignores some of them. Command line flags work, but prefs / profile don't.
This is only an issue when used with the
--headlessflag, so we can still use Chrome instead of Firefox but without the advantages of being headless.https://bugs.chromium.org/p/chromedriver/issues/detail?id=1925
SeleniumHQ/selenium#4437
catmando commentedon Nov 15, 2017
We should make sure it works head and headless
janbiedermann commentedon Nov 23, 2017
done in sachsenring, yet these headless drivers all suck, sometimes tests run, sometimes not, can depend on subtle version differences.
catmando commentedon Nov 23, 2017
then it ain't working :-)
janbiedermann commentedon Nov 23, 2017
The fix would then be documentation:
Thing is, because the drivers are external programs following their manufacturers release policies, we cant lock a version in the Gemfile. For chrome headless users usually get the latest, which is not always the greatest, same for geckodriver.
Very important here to add for users:
Do not reference circular objects!
Meaning: Do not test for "MyModel", but instead call a method that returns a value, any will do then, for example: "MyModel.respond_to?('find')"
sfcgeorge commentedon Dec 14, 2017
Chrome Headless works for me, issue can be closed?
janbiedermann commentedon Dec 14, 2017
almost, still issues with the hyper-gems tests
janbiedermann commentedon Jan 22, 2018
currently no more issues with tests with the gems, though using any has_xpath or has_css is completely unreliable. workaround
expect(page.body).to match(/<div>/)or.to include('<div>')Leaving this open for documentation.