Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The following steps will help you run selenium scripts from the command prompt without the help of eclipse.</p> <p>Set the <code>CLASSPATH</code> for all the supporting files.</p> <p>Right-Click on MyComputer-->Proprties-->Advanced System Settings--> Click on "Advanced" tab in the new window-->Environment Variables--> SystemVariables--> Double click CLASSPATH variable</p> <p>In the window that gets opened, there is a variable field, where you need to set the path as described below. For this you need to have Admin rights on your system.</p> <pre><code> .;C:\Program Files\Java\jdk1.7.0_05\bin; .;path to junit jar file in your system; .;path to selenium java binding jar file in your system; .;path to brwoser-driver if you are using any; .;path to selenium standalone server; </code></pre> <p>My environment variables look like this.</p> <pre><code>.;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip;C:\Program Files\Java\jdk1.7.0_05\bin.;E:\Books&amp;Tutorials\Selenium\junit-4.11.jar;.;E:\Books&amp;Tutorials\Selenium\selenium-2.31.0\selenium-2.31.0\selenium-java-2.31.0.jar;.;E:\Books&amp;Tutorials\Selenium\chromedriver.exe;.;E:\Books&amp;Tutorials\Selenium\selenium-server-standalone-2.31.0.jar; </code></pre> <p>Save and exit.</p> <p>Open command prompt and navigate to the folder where your selenium script is located.</p> <p>Make sure you remove the package statements in your script.</p> <p>Then compile the script using <code>javac programName.java</code> command. </p> <p>If it does not throw any errors, proceed with execution type <code>java programName</code> and hit Enter. </p> <p>If everything is set up fine till now, the selenium script should start executing the actions by invoking the browser mentioned in the script.</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. 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