Many a times our XPATH's would fail on test execution. This is when we would want to run the browser with the firebug extension. Just add this section of code in your code:
File file = new File("firebug-1.5.4.xpi");FirefoxProfile firefoxProfile = new FirefoxProfile();firefoxProfile.addExtension(file);WebDriver driver = new FirefoxDriver(firefoxProfile);
Comments