java - Chromium with SeleneseTestCase -


I want to run Selenium Test case with Chromium under Debian 6, which does not have any user interface. I am using 'xsimulator' for this: I am setting up my test:

Public zero set up () throws exception {setName ("test"); Super.setup ("http://www.wikipedia.org/", "* googlechrome chromium-browser);}

The Chromium instance begins without any problems, but, Because it is in the first part of Chromium, it asks me to make the default browser. Without the UI (I'm on Exximeter) I can not click and can not make any choice. Actually, Chromium has default browser check 'No-default-browser-check'), but only in the terminal When I set up the test like this:

super.setUp ("http://www.wikipedia.org/", "* googlechrome usr / bin / Chromium Browser - -no-default browser-checking ");

Thumb pointer throws exclamation:

org.openqa.selenium.server.browserlaunchers.GoogleChromeLauncher.createCommandArray (GoogleChromeLauncher.java:168) java.lang.NullPointerException

Another alternative solution can be to make Chrome default by making it the '-make-default-browser' argument on the terminal Using, but drought This 'xdg' leads to error:

XDG-settings: unknown desktop environment partition fault

My question is: how the browser-specific The above problem was mentioned above or to avoid checking the default browser as well as to install the Chromium browser in the Selenium test case. The main problem was to force Chromium to operate without any specific first-run operation, either Selenia Or manually. I can not get the browser to install the Chromium browser in the Selenium test case with specific logic, but I think I do not have to to force chromium "Chromium To get the default browser "got a solution.

For this:

  1. Go to chromium profile dir (typically - / "current user" / .configium / chromium / ) "default" dir
  2. file "Preferences" >
  3. Code> "check_default_browser" :. False,
  4. Go to / "current user" / config / chromium and create the empty file called "first run" < / Li>

    This will force Chromium to start normally.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -