1.5. Downloading Selenium serverĀ¶
Note
Selenium RC (Remote Control)Before I talk about the details of Selenium RC, I would like to go a step back and talk about the first tool in the Selenium project. Selenium Core was the first tool. But, Selenium Core hit a roadblock in terms of cross- domain testing because of the same origin policy. Go to OpKey Tool Menu Plugin Settings - host - IP of Mac machine port - 5555 (this port number is only for safari) Go to OpKey (Window Machine) Tool Menu - Plugin settings - Selenium tab and set the host and port which is of your MAC machine and save it. Change the browser name (safari.
Safari Webdriver Download
The Selenium server is only required if you want to use the remoteWebDriver. See the Using Selenium with remote WebDriver section for moredetails. If you are a beginner learning Selenium, you can skip this sectionand proceed with next chapter.
Selenium server is a Java program. Java Runtime Environment (JRE) 1.6 or newerversion is recommended to run Selenium server.
You can download Selenium server 2.x from the download page of selenium website. The file name should be something likethis:
selenium-server-standalone-2.x.x.jar
. You can always download thelatest 2.x version of Selenium server.Download Safari Driver For Selenium In Mac
If Java Runtime Environment (JRE) is not installed in your system, you candownload the JRE from the Oracle website. If youare using a GNU/Linux system and have root access in your system, you can alsouse your operating system instructions to install JRE.
If java command is available in the PATH (environment variable), you can startthe Selenium server using this command:
Replace 2.x.x with the actual version of Selenium server you downloaded fromthe site.
If JRE is installed as a non-root user and/or if it is not available in the PATH(environment variable), you can type the relative or absolute path to the javacommand. Similarly, you can provide a relative or absolute path to Seleniumserver jar file. Then, the command will look something like this: