def __init__(self): self.driver = webapp.get_driver() self.url = "tester-account/sign-in" self.email_input = "//input[@type='email']" self.password_input = "//input[@type='password']" self.submit = "//button[@type='submit']" self.login_err = "//div[@class='text-danger']"
def __init__(self): self.driver = webapp.get_driver() self.url = "tester-account/profile/dashboard"
def __init__(self): self.driver = webapp.get_driver() self.headlineClassName = "WorkReview-textInput" self.reviewClassName = "WorkReview-textArea" self.displayNameClassName = "WorkReview-displayTextInput"
def __init__(self): self.driver = webapp.get_driver()
from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.action_chains import ActionChains from behave import * import environment import time from framework.webapp import webapp from pages import guest_registration from printerror import PrintException driver = webapp.get_driver() wt = WebDriverWait(driver, 17) @given('I go to the admin page') def i_log_in_as(context): try: webapp.load_website() except Exception as error: print(error) @when(u'I navigate to the "{url}"') def i_navigate_to_page(context, url): print("I am navigating!") @when('I click on the "{cta}t" cta') def i_click_on_the_cta(context, cta):
def __init__(self): self.driver = webapp.get_driver() self.client = MongoClient('127.0.0.1', 27017)
def __init__(self): self.driver = webapp.get_driver() self.textbox_find = '//*[@title="Buscar"]' self.label_results = 'resultStats'
def __init__(self): self.driver = webapp.get_driver() self.addToCartClassName = "AddToCartButton-Desktop" self.quantityClassName = "DropdownInput"
def __init__(self): self.driver = webapp.get_driver() self.searchBoxClassName = "Search-input"