1

Can someone please tell me the difference between the two below?

IWebDriver IWeb = new InternetExplorerDriver();
IWeb.Navigate().GoToUrl("www.facebook.com");

InternetExplorerDriver IE = new InternetExplorerDriver();
IE.Navigate().GoToUrl("www.facebook.com");
StackHack
  • 45
  • 6
  • The end result is the same in both cases but the capabilities of `IWeb` vs `IE` instances are different. – JeffC Jan 10 '19 at 19:51

1 Answers1

1

There should not be a difference.

The class InternetExplorerDriver that is instantiated both times, implements the IWebDriver interface so the GoToUrl() call ends up being the same call in both cases.

Emond
  • 50,210
  • 11
  • 84
  • 115