Submitted by harrydev on Mon, 01/20/2014 - 13:15
Some times, you may need to update the preferences within Firefox. We can do this by instantiating a Firefox Profile object and then update the settings.
We will then need to pass this object into FirefoxDriver which will load the profile with your defined settings.
You can check them using command "about:config" in the borwser. It will display a warning message and then asks you to proceed if required. Becarefull when doing any changes.
Submitted by harrydev on Sun, 01/19/2014 - 06:44
// Get a handle to the open alert, prompt or confirmation
Alert alert = driver.switchTo().alert();
Alert is an interface. There below are the methods that are used
//Will Click on OK button.