Earn Money in 10 days

Selenium Videos

Protractor In Selenium

Livechat

Saturday, 8 November 2014

How to open Firefox Browser using selenium

How To launch Firefox Browser in Selenium.

Step1:First configure jar file in your project(How to configure click here)       Then write a small script which i have added below. 

Code for launching firefox browser.

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class LaunchFirefox {
public static void main(String[] args) {
//Launching firefox Browser
WebDriver driver = new FirefoxDriver();
driver.get("https://gmail.com");
}
}

1 comment:

  1. Just a suggestion.. title of your page should be "How to open Firefox browser using Seleniun" .. instead of "How to open Browser in Firefox".

    ReplyDelete

Popular Posts

 
subscribe
Subscribe Us
emailSubscribe to our mailing list to get the updates to your email inbox... We can't wait more to have your email in our subscribers email list. Just put your nice email in below box: