How to Run the Script in the Firefox Browser
[Name of the project is "FFTesting"
2. Create a new Java class file under the Package
[Give a name of the class is "Runtesting.java"
3. Next add the selenium server Jar files to the Project. Download Selenium Server
[Right click on the Project Name, Mouse over on Build Path and select 'Configure Build Path', Select Libraries tab, Click on Add External Jars and select the selenium server jar from your local machine]
[Right click on the Project Name, Mouse over on Build Path and select 'Configure Build Path', Select Libraries tab, Click on Add External Jars and select the selenium server jar from your local machine]
4. .Write the script in the Java and execute it.
Please find the below example program to open Google in Firefox browser
import java.util.concurrent.TimeUnit; import org.openqa.selenium.*; import org.openqa.selenium.firefox.FirefoxDriver; public class Runtesting{ public static void main(String[] args) { WebDriver driver = new FirefoxDriver(); //Launch website driver.navigate().to("http://google.com/"); //Maximize the browser driver.manage().window().maximize(); //Close the Browser. driver.close(); } }