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

Can't get selenium to use the wrapper script #25

Open
apenney opened this issue May 2, 2017 · 0 comments
Open

Can't get selenium to use the wrapper script #25

apenney opened this issue May 2, 2017 · 0 comments

Comments

@apenney
Copy link

apenney commented May 2, 2017

Hi,

First let me apologize if this doesn't make sense, I have literally never used any of the technologies involved here (except for docker), I just agreed to help one of the dev teams rebase their custom container to something more maintained.

They use Capybara with Cucumber, and this then starts up a Selenium driver (against Chrome) to actually run the tests. When the tests kick in I get:

@test-suite
Feature: Smoke Test

  @smoke-test @login-IC @showDynamicProductStrategies
  Scenario: Configure one medical product and two groups # features/regression/build-smoke-test.feature:5
 unknown error: an X display is required for keycode conversions, consider using Xvfb
   (Session info: chrome=57.0.2987.98)
   (Driver info: chromedriver=2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5),platform=Linux 4.4.0-51-generic x86_64) (Selenium::WebDriver::Error::UnknownError)

I changed the configuration for capybara to:

Capybara.register_driver :selenium do |app| # sets the context of a web app
  Capybara::Selenium::Driver.new(app,
    browser:                 :chrome,
    :desired_capabilities => Selenium::WebDriver::Remote::Capabilities.chrome(
      'chromeOptions' => {
        'binary' => '/usr/bin/google-chrome'
      }
    )
  ) # sets chrome as the browser

Trying to force it through the wrapper script but it still seems to fail. I know this isn't exactly a problem with your container, I am just literally begging for help here as I don't know what else to even do to troubleshoot this. Anything you could suggest would definitely be appreciated!

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

No branches or pull requests

1 participant