Hi there,
Steps:
- Run the FirefoxDriverDemo class i.e:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class FirefoxDriverDemo {
public static void main(String[] args) {
WebDriver driver;
System.setProperty("webdriver.gecko.driver", "C:/Program Files/Selenium/geckodriver.exe");
driver = new FirefoxDriver();
driver.get(baseURL);
}
}
Expected result:
Actual result:
A new browser opens successfully HOWEVER 2 tabs open instead of 1:
One tab with blank address and
I understand that I need to create a Firefox profile such as the one below, how do I create and use this profile please?
ProfilesIni profile = new ProfilesIni();
FirefoxProfile myprofile = profile.getProfile("CreatedProfile");
WebDriver driver = new FirefoxDriver(myprofile);
Thanks