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
| from playwright.sync_api import sync_playwright | |
| import sys | |
| sys.path.append(sys.path[0] + "/..") | |
| from elementSelectors.loginAndBuySelectors import elementSelector | |
| from testCapabilities.testCaps import testCapabilities | |
| select = elementSelector() |
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 sys | |
| sys.path.append(sys.path[0] + "/..") | |
| from testScripts.singleLoginBuyScript import LoginAndBuy | |
| from playwright.sync_api import sync_playwright | |
| with sync_playwright() as playwright: | |
| try: | |
| playwright = LoginAndBuy(playwright) |
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 io.appium.java_client.remote.AndroidMobileCapabilityType.AVD; | |
| import static io.appium.java_client.remote.AutomationName.ANDROID_UIAUTOMATOR2; | |
| import static io.appium.java_client.remote.AutomationName.ESPRESSO; | |
| import static io.appium.java_client.remote.AutomationName.IOS_XCUI_TEST; | |
| import static io.appium.java_client.remote.MobileCapabilityType.APP; | |
| import static io.appium.java_client.remote.MobileCapabilityType.AUTOMATION_NAME; | |
| import static io.appium.java_client.remote.MobileCapabilityType.DEVICE_NAME; | |
| import static io.appium.java_client.remote.MobileCapabilityType.FULL_RESET; | |
| import static io.appium.java_client.remote.MobileCapabilityType.PLATFORM_VERSION; | |
| import static java.lang.System.getenv; |
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
| { | |
| contentDescription=Access'ibility, title=Access'ibility, intent=Intent { cmp=io.appium.android.apis/.ApiDemos (has extras) | |
| } | |
| }, | |
| { | |
| contentDescription=Accessibility, title=Accessibility, intent=Intent { cmp=io.appium.android.apis/.ApiDemos (has extras) | |
| } | |
| }, | |
| { | |
| contentDescription=Animation, title=Animation, intent=Intent { cmp=io.appium.android.apis/.ApiDemos (has extras) |
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 java.lang.System.currentTimeMillis; | |
| import static java.text.MessageFormat.format; | |
| import com.github.wasiqb.appium.core.DriverManager; | |
| import io.appium.java_client.AppiumDriver; | |
| import io.appium.java_client.MobileElement; | |
| import org.openqa.selenium.By; | |
| import org.testng.annotations.AfterClass; | |
| public class BaseTest { |
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 org.testng.Assert.assertTrue; | |
| import com.github.wasiqb.appium.pages.AndroidLocators; | |
| import org.testng.annotations.BeforeClass; | |
| import org.testng.annotations.Test; | |
| public class LocatorsAndroidEspressoTest extends BaseTest { | |
| private AndroidLocators page; | |
| @BeforeClass (alwaysRun = true) |
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 org.testng.Assert.assertTrue; | |
| import java.net.MalformedURLException; | |
| import com.github.wasiqb.appium.pages.AndroidLocators; | |
| import org.testng.annotations.BeforeClass; | |
| import org.testng.annotations.Test; | |
| public class LocatorsAndroidUiAutomatorTest extends BaseTest { | |
| private AndroidLocators page; |
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 org.testng.Assert.assertTrue; | |
| import java.net.MalformedURLException; | |
| import com.github.wasiqb.appium.pages.IOSLocators; | |
| import org.testng.annotations.BeforeClass; | |
| import org.testng.annotations.Test; | |
| public class LocatorsIOSTest extends BaseTest { | |
| private IOSLocators page; |
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
| def setUp(self): | |
| username = "your_lambdatest_username" | |
| # Register on lambdatest, if you’ve not already. It hardly takes 30 seconds to 2 minutes to get started. | |
| accessToken = "your_lambdatest_accessToken" | |
| # You can find access token post registration on your LambdaTest profile page. | |
| gridUrl = "hub.lambdatest.com/wd/hub" | |
| desired_cap = { | |
| 'platform' : "win10", | |
| 'browserName' : "chrome", | |
| 'version' : "67.0", |
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
| pipeline { | |
| agent any | |
| tools {nodejs "Node12"} | |
| environment { | |
| CHROME_BIN = '/bin/google-chrome' | |
| } |