+11 votes
591 views
in Software Testing by (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?
closed

1 Answer

+3 votes
by Expert (4.6k points)
selected by
 
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.
0
by (530 points)
Thanks for help!

Not a Member yet?

Ask to Folks Login

My Account

Your feedback is highly appreciated