Run Profile code | Selenium Forum
B
Bipin patil Posted on 11/02/2021

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

 


A
Ashish Thakur Replied on 12/02/2021

What is the error


B
Bipin patil Replied on 13/02/2021

firfox Browser not open after to create profile

 

 


A
Ashish Thakur Replied on 13/02/2021

Plz check if that profile is present on the page


M
Replied on 15/02/2021

Profile is present on that page..

so to find screen shot.. sir

 

 


Related Posts