示例#1
0
 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']"
示例#2
0
    def __init__(self):
        self.driver = webapp.get_driver()

        self.url = "tester-account/profile/dashboard"
示例#3
0
 def __init__(self):
     self.driver = webapp.get_driver()
     self.headlineClassName = "WorkReview-textInput"
     self.reviewClassName = "WorkReview-textArea"
     self.displayNameClassName = "WorkReview-displayTextInput"
示例#4
0
 def __init__(self):
     self.driver = webapp.get_driver()
示例#5
0
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):
示例#6
0
 def __init__(self):
     self.driver = webapp.get_driver()
     self.client = MongoClient('127.0.0.1', 27017)
示例#7
0
 def __init__(self):
     self.driver = webapp.get_driver()
     self.textbox_find = '//*[@title="Buscar"]'
     self.label_results = 'resultStats'
示例#8
0
 def __init__(self):
     self.driver = webapp.get_driver()
     self.addToCartClassName = "AddToCartButton-Desktop"
     self.quantityClassName = "DropdownInput"
示例#9
0
 def __init__(self):
     self.driver = webapp.get_driver()
     self.searchBoxClassName = "Search-input"