Showing posts with label IE. Show all posts
Showing posts with label IE. Show all posts

Sunday, January 29, 2012

Running Selenium Webdriver 2.0 in IE

Following are the steps I used to run selenium webdriver in IE
(Windows, Mozilla Firefox, IE, Eclipse, Java)

Selenium IDE with Mozilla Firefox
- Open your Mozilla Firefox browser and Selenium IDE add on
- Record a simple and short test case for your testing application through Firefox and IDE
- Replay it ensure that cases runs alright as you recorded
- Export Test Case as JUnit4(Webdriver) Script from IDE

Selenium Webdriver/ Selenium 2.0
- Run Eclipse
- Create an new project
- Create a Class for the project without Main()
- Add the downloaded webdriver .jar files to your project in Java Build path-> Library
- Paste the JUnit4 code exported from IDE
- Hit the play button and enjoy ;)

IE Configaration
- IE 6 or Higher versions
- Go to IE Settings -> Internet options -> Security tab -> Enable protected mode for all type of connections
- Replace the code in exported JUnit code
-" driver = new FirefoxDriver(); " replace it with " driver = new InternetExplorerDriver(); "
- import org.openqa.selenium.ie.InternetExplorerDriver;

Friday, November 4, 2011

Something new but not for all

Testing an web application for different versions of IE is a must must. For this reason I tried many software like IEtester and IEcollection but result they show is wrong. Recently I found a very awesome way to test in different version of IE, its in IE it self, in Tools -> Web development tool -> IEversions.

This is very useful information, may most of you know about it already but it worth to share if there some one like me waiting to discover it :]