- Selenium Core needs to make it available from the same web server as the application under test.
- The same origin policy states that JavaScript is only allowed to read/modify HTML from the same origin as its source.
- If a js file is designed to test google.com, the same origin policy denies to run that js file with google.com; instead, selenium RC can be used to test the site.
- Selenium RC makes a proxy server, which allows running the test against the site.
- For e.g.: http://www.google.com/selenium-server/MyTestSuite.html.
Setting up of selenium RC. Selenium server requires JRE 1.5 (+).
- Set system variable
- JAVA_HOME= “/*---path location of Java home for e.g.: c:\jdk1.5.0_12---*/”
- Set class path of client driver for Java
- Class path= “/*-- C:\Selenium\ selenium-remote-control-1.0-SNAPSHOT\selenium-java-client-driver-1.0-SNAPSHOT\selenium-java-client-driver.jar --*/”
- Try in command line. Java –version (it will display the version of the java installed on the computer.)
- Then Try using Selenium Server in Interactive mode. java -jar selenium-server.jar –interactive (This will start the selenium server and allows to create a session, opens the browser and test the site in command prompt)
If you are going to use firefox 3, then make sure that your download support. Before going to test your automation close all the firefox process in your system,which may also restrict to start browser.
1 comment:
I was very pleased to find this site. I want to thank you for this great content!! I enjoyed every little bit of it and I have you bookmarked to check out new stuff you post
Selenium Training in Chennai
Selenium Training
Post a Comment