Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <strong><a href="http://release.seleniumhq.org/selenium-remote-control/0.9.2/doc/java/com/thoughtworks/selenium/Selenium.html#start%28%29" rel="noreferrer">start</a></strong> command is not really starting your selenium server per se, it's connecting your selenium object to an <em>already</em> running server with the browser of your choice.</p> <p>To actually start the selenium [Jetty Web] server that sends / receives commands to your application under test via your specified browser, use a batch file and the switch <strong>rs79</strong> is referring to. The contents of your batch file should include his line:</p> <pre><code>java -jar selenium-server-standalone-2.0a5.jar -firefoxProfileTemplate C:\custom-firefox-profile </code></pre> <p>Now you have a true selenium server running on your dev machine (localhost) with the default "4444" port. This will specify that any Firefox browser testing will use this profile.</p> <p>Now your DefaultSelenium constructor, assignment, and other calls can look like this:</p> <pre><code>DefaultSelenium selenium = new DefaultSelenium("localhost", 4444, "*firefox","http://www.server.com"); selenium.start() selenium.open("myApp/") </code></pre> <p>Firefox will start using the custom profile specified in the batch file that starts the Selenium server, with your desired base URL, and then navigate into your desired application [URL]. If you are beginning your test from "<a href="http://www.server.com/" rel="noreferrer">http://www.server.com/</a>" and not "<a href="http://www.server.com/myApp" rel="noreferrer">http://www.server.com/myApp</a>", you can omit the last <em>open</em> line.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload