Forked from SarahElson/testScenarios parallelSignupRun.py
Created
September 28, 2022 15:56
-
-
Save rahulmr/b3d66568aef9acc504984dee64e09088 to your computer and use it in GitHub Desktop.
Playwright Python Tutorial
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.parallelSignup import Register | |
from playwright.sync_api import sync_playwright | |
with sync_playwright() as playwright: | |
try: | |
playwright = Register(playwright) | |
playwright.launchWeb() | |
playwright.fillFirstName("Idowu") | |
playwright.fillLastName("Omisola") | |
playwright.fillEmail("some7gmail@gmail.com") | |
playwright.fillPhone("08122334433") | |
playwright.fillPassword("mypassword") | |
playwright.confirmPassword("mypassword") | |
playwright.subscribe() | |
playwright.acceptPolicy() | |
playwright.submit() | |
playwright.continueToDashboard() | |
playwright.getSuccessStatus() | |
except Exception as err: | |
playwright.getFailedStatus() | |
playwright.closeBrowser() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment