Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created September 24, 2017 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/d66c32f0a16721915dc81d8ad3bba5e3 to your computer and use it in GitHub Desktop.
Save angelovstanton/d66c32f0a16721915dc81d8ad3bba5e3 to your computer and use it in GitHub Desktop.
[Test]
public void TestChromeExecutionTime()
{
Profile
(
"TestChromeExecutionTime",
10,
() =>
{
using (IWebDriver driver = new ChromeDriver())
{
PerformTestOperations(driver);
}
}
);
}
[Test]
public void TestFirefoxExecutionTime()
{
Profile
(
"TestFirefoxExecutionTime",
10,
() =>
{
using (IWebDriver driver = new FirefoxDriver())
{
PerformTestOperations(driver);
}
}
);
}
[Test]
public void TestEdgeExecutionTime()
{
Profile
(
"TestEdgeExecutionTime",
10,
() =>
{
using (IWebDriver driver = new EdgeDriver())
{
PerformTestOperations(driver);
}
}
);
}
[Test]
public void TestPhantomJsExecutionTime()
{
Profile
(
"TestPhantomJsExecutionTime",
10,
() =>
{
using (IWebDriver driver = new PhantomJSDriver())
{
PerformTestOperations(driver);
}
}
);
}
[Test]
public void TestChromeHeadlessExecutionTime()
{
Profile
(
"TestChromeHeadlessExecutionTime",
10,
() =>
{
var options = new ChromeOptions();
options.AddArguments("headless");
using (IWebDriver driver = new ChromeDriver(options))
{
PerformTestOperations(driver);
}
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment