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

Popular Categories





Selenium web driver with Internet Explorer

+11 votes
124 views
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();  
ieCapabilities.setCapability
(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
 
this.driver = new InternetExplorerDriver(ieCapabilities);
 
Use this.
commented by raman (530 points)
Thanks for help!

Related Questions

+1 vote
1 answer 2,250 views
+5 votes
7 answers 14,605 views
+2 votes
1 answer 1,270 views
+1 vote
1 answer 547 views
+2 votes
1 answer 135 views
+2 votes
2 answers 822 views
+1 vote
0 answers 298 views

Not a Member yet?

Ask to Folks Login

My Account
748 Folks are online
60 members and 688 guest online
Your feedback is highly appreciated