I need to run my test using chrome and firefox that the browsers open at a time. How can I do that?

  • Thread starter Thread starter Amna Khalid 001
  • Start date Start date
A

Amna Khalid 001

Guest
I want to run my test cases in parallel in cross browsers that are Chrome and Firefox. I am using C# Mstest framework. How can I do that chrome and firefox browsers open at a time? Here I initialized the chrome browsers .
[TestInitialize]
public void initilize()
{

WDriver = GlobalMethods.GetWebDriver(GS.browserType.Chrome);
}
If i do this the chrome opens first test case is completely run and then Firefox is opened. I want to open both at the same time.
[TestInitialize]
public void initilize()
{

WDriver = GlobalMethods.GetWebDriver(GS.browserType.Chrome);
WDriver = GlobalMethods.GetWebDriver(GS.browserType.FireFox);
}

Continue reading...
 
Back
Top