Beispiel #1
0
def search_by_css(path):
    return CommonClass().get_driver().find_element_by_css_selector(path)
Beispiel #2
0
def search_by_partial(path):
    return CommonClass().get_driver().find_element_by_partial_link_text(path)
Beispiel #3
0
def search_by_xpath(path):
    return CommonClass().get_driver().find_element_by_xpath(path)
Beispiel #4
0
def search_by_tag(path):
    return CommonClass().get_driver().find_element_by_tag_name(path)
def assert_title(assert_text):
    return CommonClass.get_driver().title == assert_text
Beispiel #6
0
def driver_by_edge(path):
    driver = webdriver.Edge()
    driver.get(path)
    CommonClass().set_driver(driver)
Beispiel #7
0
def driver_by_firefox(path):
    driver = webdriver.Firefox()
    driver.get(path)
    CommonClass().set_driver(driver)
Beispiel #8
0
def driver_by_chrome(path):
    driver = webdriver.Chrome()
    driver.get(path)
    CommonClass().set_driver(driver)