This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(integerEntered >= 1 && integerEntered <= 5) | |
DisplayMessage(“Success”); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using NUnit.Framework; | |
using OpenQA.Selenium.Firefox; | |
namespace ParallelLocal | |
{ | |
[TestFixture] | |
public class ParallelLocal | |
{ | |
[Test] | |
public void Test1() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using NUnit.Framework; | |
using OpenQA.Selenium.Firefox; | |
namespace ParallelLocal | |
{ | |
[TestFixture] | |
[Parallelizable] | |
public class ParallelLocal | |
{ | |
[Test] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixture] | |
[Parallelizable] | |
public class BrowserstackTest2 | |
{ | |
private IWebDriver driver; | |
[SetUp] | |
public void Init() | |
{ | |
DesiredCapabilities capability = DesiredCapabilities.Firefox(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using NUnit.Framework; | |
using OpenQA.Selenium; | |
using OpenQA.Selenium.Remote; | |
namespace SauceLabsParallelTests | |
{ | |
[TestFixture("chrome", "39", "Windows 7", "", "")] | |
[Parallelizable] | |
public class SauceNUnitTest2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class UnitTest1 | |
{ | |
private IWebDriver _driver; | |
[TestInitialize] | |
public void Setup() | |
{ | |
//LocalInitialize(); | |
BasicInitialize(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//find the element that has the text Hello World | |
var text = _driver.FindElement(By.XPath(".//*[contains(text(),'Hello World!')]")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _driver = new FirefoxDriver(); | |
var wait = new DefaultWait<IWebDriver>(_driver) | |
{ | |
Timeout = TimeSpan.FromSeconds(10), | |
Message = "Dude, where's my element?", | |
PollingInterval = TimeSpan.FromSeconds(1) | |
}; | |
wait.IgnoreExceptionTypes(typeof(NoSuchElementException)); | |
var myElement = wait.Until(ElementIsVisible(elementId)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace OpenQA.Selenium.Support.UI | |
{ | |
// | |
// Summary: | |
// Provides the ability to wait for an arbitrary condition during test execution. | |
public class WebDriverWait : DefaultWait<IWebDriver> | |
{ | |
public WebDriverWait(IWebDriver driver, TimeSpan timeout); | |
public WebDriverWait(IClock clock, IWebDriver driver, TimeSpan timeout, TimeSpan sleepInterval); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using OpenQA.Selenium; | |
using OpenQA.Selenium.Firefox; | |
using OpenQA.Selenium.Support.UI; | |
namespace ConsoleApplication2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
OlderNewer