Closed calebkeene closed 4 years ago
Could you please try the master branch and see if you have the same issue, although truthfully this error seems like it's possible not actually starting Chrome - is it possible there is a stub that's being started instead?
@twalpole putting gem 'apparition', git: 'git@github.com:twalpole/apparition.git', branch: 'master'
gives 0.5.0
, the same version I was getting off rubygems.org, still the same on CI. I don't believe there's any stubbing of chrome, not sure how that would work 🤔Any suggestions for possible debugging steps? I don't have a ton of time to dig around in the gem so I've been mostly treating it as a black box - I already spent time refactoring a bunch of tests so they wouldn't need selenium, hoping to not need to go back to that
Yes the version will still show 0.5.0 but it will be the latest code - FYI you can just do gem 'apparition', github: 'twalpole/apparition'
to get the master branch of a github repo . I don't know what to tell you about codeship, I don't use it, but I do know that other CI/CD providers do sometimes have stubs (scripts) in place of chrome in order to apply their own flags which can sometimes interfere.
@twalpole Yeah I just had gem 'apparition', git: 'git@github.com:twalpole/apparition.git', branch: 'master'
to grab the latest. I'm fairly sure Codeship doesn't do any stubbing of chrome, the build VM seems to use both google-chrome
and chromedriver
binaries sitting in /usr/bin
- both of which appear to be the same as the (almost) edge versions you'd get when downloading fresh. No worries if you don't have any other insights into the behaviour I'm seeing though, I'll have another poke around. Cheers
Closing this for now as I didn't make any progress on it and there don't appear to be any ideas forthcoming (I ended up switching back to selenium-webdriver
in the end)
I'm using apparition as my javascript driver for capybara in a suite of cucumber tests. I've got the tests running OK locally in both headless and non-headless mode, but I'm not having a problem on CI (codeship) which I'm not entirely sure how to fix.
here are the versions of the relevant gems being used (in no particular order other than perceived relevancy)
here is my capybara driver configuration file
chrome version on codeship:
Google Chrome 80.0.3987.149
(not sure if this is relevant, this is the same as my local which is working fine)here is the error I am presented with when starting any cucumber tests
thanks!