Posts

Showing posts from December, 2013

Challenges with different browsers in Selenium

Image
The first thing you would do when you are picking to automate using Selenium WebDriver is launch a browser. Even this simple step can give you some glitches: Firefox: The most common issue is that the browser is invoked with unnecessary add-ins etc.. Simple solution: Use the profile manager by typing the following command in run edit "firefox.exe -p " to see all the profiles Now use the profiling concept to avoid issues: ProfilesIni all = new ProfilesIni (); FirefoxProfile profile = all.getProfile("Profile Name") WebDriver wd = new FirefoxDriver(profile); ff.get(" http://www.google.com "); //IE Driver The most common issue here is that you get an error message regarding the trusted domains: In Internet Options>>Security >>Trusted sites the Enable Protected Mode checkbox is unchecked currently. If we can check it manually the problem will be resolved. The Reason of the issue is, the settings of IE