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.parallelSignup import Register | |
from playwright.sync_api import sync_playwright | |
with sync_playwright() as playwright: | |
try: |
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
Project Directory | |
|-----------elementSelectors | |
| |----------------loginAndBuySelectors.py | |
| |----------------registrationPageSelectors.py | |
| | |
|------------testCapabilities | |
| |-----------------testCaps.py | |
| | |
|-------------testScenarios | |
| |-----------------.env |
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
Project Directory | |
|-----------elementSelectors | |
| |----------------loginAndBuySelectors.py | |
| |----------------registrationPageSelectors.py | |
| | |
|------------testCapabilities | |
| |-----------------testCaps.py | |
| | |
|-------------testScenarios | |
| |-----------------.env |
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 json | |
import os | |
import urllib.parse | |
import subprocess | |
from dotenv import load_dotenv | |
load_dotenv('.env') | |
username = os.getenv("my_username") | |
gridAcessKey = os.getenv("access_key") |
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
webElements = { | |
'webpage': "https://ecommerce-playground.lambdatest.io/index.php?route=account/register", | |
'First_Name': 'input[placeholder="First Name"]', | |
'Last_Name': 'input[placeholder="Last Name"]', | |
'E-Mail': 'input[placeholder="E-Mail"]', | |
'Telephone': 'input[placeholder="Telephone"]', | |
'Password': 'input[placeholder="Password"]', | |
'Confirm_Password': 'input[placeholder="Password Confirm"]', | |
'Subscribe': 'label:has-text("No")', | |
'Privacy_Policy': 'label:has-text("I have read and agree to the Privacy Policy")', |
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.registrationPageSelectors 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.singleSignupScript import Register | |
from playwright.sync_api import sync_playwright | |
with sync_playwright() as playwright: | |
try: |
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.parallelLoginBuyScript 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
webElements = { | |
'webpage': "https://ecommerce-playground.lambdatest.io/index.php?route=account/login", | |
'E-Mail': 'input[placeholder="E-Mail Address"]', | |
'Password': 'input[placeholder="Password"]', | |
'Login': 'input:has-text("Login")', | |
'Search': 'input[name="search"] >> nth = 0', | |
'searchbutton': 'div[class="search-button"]:has-text("Search")', | |
'product': 'h4[class="title"]:has-text("Nikon D300") >> nth = 0', | |
'addcart': 'div[id="entry_216842"]:has-text("Add to Cart")', | |
'checkoutmodal': 'div[role="alert"]:has-text("Checkout")', |