Hey there! any question in your mind? Ask It Now!.

Popular Categories

Selenium web driver with Internet Explorer

+11 votes
asked in Software Testing by raman (530 points)
I am using firefox driver now i want to test some scnario in IE so how can i use Selenium web driver with Internet Explorer?

1 Answer

+3 votes
answered by seleniumGuru Expert (4,570 points)
selected by raman
Best answer
String ieBinary = System.getProperty("webdriver.ie.driver");  
if (ieBinary == null || ieBinary.equals("")) {  
 ieBinary = "PATH OF Driver/IEDriverServer.exe";  
 System.setProperty("webdriver.ie.driver", ieBinary);  
DesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer();  
this.driver = new InternetExplorerDriver(ieCapabilities);
Use this.
commented by raman (530 points)
Thanks for help!

Related Questions

+1 vote
1 answer 698 views

Not a Member yet?

Ask to Folks Login

My Account
254 Folks are online
0 members and 254 guest online
Your feedback is highly appreciated