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
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 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 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 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 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 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 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 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
# coding:utf-8 | |
# Copyright 2011 litl, LLC. All Rights Reserved. | |
import httplib | |
import re | |
import urllib | |
import urlparse | |
from flask import Blueprint, request, Response, url_for | |
from werkzeug.datastructures import Headers |
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
// HttpClient and how to use Headers, Content-Type and PostAsync | |
// http://d-fens.ch/2014/04/12/httpclient-and-how-to-use-headers-content-type-and-postasync/ | |
// Copyright 2014-2015 Ronald Rink, d-fens GmbH | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// http://www.apache.org/licenses/LICENSE-2.0 |
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
// [dependencies] | |
// tokio = { version = "0.2", features = ["macros"] } | |
// warp = "0.2.2" | |
use warp::Filter; | |
use warp::http::HeaderMap; | |
use std::convert::Infallible; | |
#[tokio::main] | |
async fn main() { |