Code-
public void firefox() {
System.setProperty("webdriver.gecko.driver", "G:\\Drivers\\geckodriver.exe");
FirefoxOptions options = new FirefoxOptions();
ProfilesIni AllProf = new ProfilesIni(); // all the profiles
FirefoxProfile prof = AllProf.getProfile("Selenium");
options.setProfile(prof);
FirefoxDriver fd = new FirefoxDriver(options); // new profile
fd.get("http://pushengage.com/demo");
}
}
Output error - Default suite
Total tests run: 1, Passes: 0, Failures: 1, Skips: 0
So Pls fix the problem
Instructor
Ashish Thakur Replied on 12/02/2021
What is the error
firfox Browser not open after to create profile
Instructor
Ashish Thakur Replied on 13/02/2021
Plz check if that profile is present on the page