Skip to content

Instantly share code, notes, and snippets.

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 simpleprogrammer-shared/e5825b1c3344ce8d4959d6d32018d014 to your computer and use it in GitHub Desktop.
Save simpleprogrammer-shared/e5825b1c3344ce8d4959d6d32018d014 to your computer and use it in GitHub Desktop.
Parallel Testing With Selenium Webdriver - Automation on Steroids
using NUnit.Framework;
using OpenQA.Selenium.Firefox;
namespace ParallelLocal
{
[TestFixture]
public class ParallelLocal
{
[Test]
public void Test1()
{
var driver = new FirefoxDriver();
driver.Navigate().GoToUrl("http://www.qtptutorial.net/automation-practice");
driver.Manage().Window.Maximize();
driver.FindElementById("idExample").Click();
var elementCheck = driver.FindElementByXPath("//p[contains(text(),'Button success')]").Displayed;
Assert.IsTrue(elementCheck, "Element was not present");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment