This file contains hidden or 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 static void createXml() throws Exception { | |
| try { | |
| // Initialization of drivers | |
| DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory | |
| .newInstance(); | |
| DocumentBuilder documentBuilder = documentBuilderFactory | |
| .newDocumentBuilder(); | |
| Document document = documentBuilder.newDocument(); |
This file contains hidden or 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; | |
| namespace SeleniumParallelTest | |
| { | |
| [TestFixture] | |
| [Parallelizable] | |
| public class FirefoxTesting : Hooks | |
| { | |
| public FirefoxTesting() : base(BrowerType.Firefox) |
This file contains hidden or 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 BoDi; | |
| using OpenQA.Selenium; | |
| using OpenQA.Selenium.Firefox; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using TechTalk.SpecFlow; |
This file contains hidden or 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 OpenQA.Selenium; | |
| using OpenQA.Selenium.Firefox; | |
| using System; | |
| using System.Linq; | |
| using System.Net; | |
| namespace SeleniumParallelTest | |
| { | |
| class BrokenLinks : Base | |
| { |
This file contains hidden or 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 AmazonHomePage | |
| { | |
| [FindBy(How = How.Id, Using="HomeDiv")] | |
| public IWebElement element1; | |
| [FindBy(How = How.Id, Using="HomeDiv")] | |
| public IWebElement element2; |
This file contains hidden or 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 OpenQA.Selenium; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using TechTalk.SpecFlow; | |
| using TechTalk.SpecFlow.Assist; |
This file contains hidden or 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; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using TechTalk.SpecFlow; | |
| using TechTalk.SpecFlow.Assist; |
This file contains hidden or 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 Hooks : Base | |
| { | |
| private BrowerType _browserType; | |
| [SetUp] | |
| public void InitializeTest() | |
| { | |
| //Get the value from NUnit-console --params | |
| //e.g. nunit3-console.exe --params:Browser=Firefox \SeleniumNUnitParam.dll | |
| //If nothing specified, test will run in Chrome browser |
This file contains hidden or 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
| ChromeOptions option = new ChromeOptions(); | |
| option.AddArgument("--headless"); | |
| _driver = new ChromeDriver(option); |
This file contains hidden or 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 static IApp StartApp(Platform platform) | |
| { | |
| if (platform == Settings.Android) | |
| { | |
| return ConfigureApp | |
| .Android | |
| .InstalledApp(Settings.AUTPackageName) | |
| .StartApp(); | |
| } | |
| else if(platform == Settings.iOS){ |
OlderNewer