0

How can i make two instance of selenium driver ?? i used these codes and i am having a problem.

        SafariDriver sf = new SafariDriver();

        sf.Navigate().GoToUrl("http://marathonbet.com/");

        SafariDriver sf2 = new SafariDriver();

        sf2.Navigate().GoToUrl("http://bet365.com/");

here is the screenshot: http://sdrv.ms/1fDzQYT

sel
  • 31
  • 2
  • 5
  • 2
    Hmm, interesting. Anything special about your SafariDriver setup? Also I think Safari for Windows is dead, what's the point of testing it on Windows? – Yi Zeng Sep 06 '13 at 04:39
  • actually i was asking for help – sel Sep 06 '13 at 05:27
  • 1
    Have you tried executing other actions on the other browser that did not navigate? Does it respond to anything? – Seanny123 Sep 06 '13 at 06:39

1 Answers1

0

you can instantiate 2 instance of selenium webdriver, use the code below.


    WebDriver sf1 = new SafariDriver(); 
    sf1.Navigate().GoToUrl("http://marathonbet.com/");
    WebDriver sf2 = new SafariDriver();
    sf2.Navigate().GoToUrl("http://bet365.com/");

You need to instantiate WebDriver object with SafariDriver, that you were not doing correctly.

Paras
  • 3,197
  • 2
  • 20
  • 30