extensions like firebug added through webdriver is deactivated.how to activate it?

extensions like firebug  added through webdriver is deactivated.how to activate it?

rajan Train Asked on December 10, 2014 in Selenium WebDriver.
Add Comment
2 Answer(s)

Hi Rajan,

You must have messed up with your default firefox profile. Browser opened by Selenium will not have any extra plugins. Look at this article and set it back to default profile:

http://www.toolsqa.com/selenium-webdriver/custom-firefox-profile/

Regards,
Lakshay Sharma

xLov3rDns Professor Answered on December 10, 2014.

ya selenium hasn’t any extra plugin but i have added plugin through program.Here plugin got added bhut not working.Please suggest?Below is the code:
public class AddfirebugTest {
@Test

public class AddFirebug {

public  void Fire() throws IOException {
File file=new File(“firebug-2.0.7-fx.xpi”);
FirefoxProfile profile=new FirefoxProfile();
profile.addExtension(file);
WebDriver driver=new FirefoxDriver(profile);
driver.get(“https://www.google.co.in/”);
}

}

on December 10, 2014.
Add Comment

Hi,

I Have not tried it yet but would you be able to give me one good reason for it, why do you want to load the firebug on the browser openend by the Selenium.

I rather suggest you to open up an default browser with Selenium which already have a Firebug installed. Most of the time default profile named as “default”, please check in your case

ProfilesIni profile = new ProfilesIni();
FirefoxProfile myprofile = profile.getProfile(“default”);
FirefoxDriver driver = new FirefoxDriver(myprofile);

Please close this question.

Regards,
Lakshay Sharma

xLov3rDns Professor Answered on December 12, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.