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
| import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint | |
| import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase | |
| import static com.kms.katalon.core.testdata.TestDataFactory.findTestData | |
| import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject | |
| import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint | |
| import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory | |
| import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as MobileBuiltInKeywords | |
| import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile | |
| import com.kms.katalon.core.model.FailureHandling as FailureHandling | |
| import com.kms.katalon.core.testcase.TestCase as TestCase |
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
| import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint | |
| import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase | |
| import static com.kms.katalon.core.testdata.TestDataFactory.findTestData | |
| import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject | |
| import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint | |
| import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory | |
| import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as MobileBuiltInKeywords | |
| import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile | |
| import com.kms.katalon.core.model.FailureHandling as FailureHandling | |
| import com.kms.katalon.core.testcase.TestCase as TestCase |
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){ |
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 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
| 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
| 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 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 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
| 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; |