Пример #1
0
def test_tmall_33(browser):
    tmall_main_page = SearchHelper(browser)
    tmall_main_page.go_to_site()
    tmall_main_page.find_nav_categories()[2].click()
    slider_photo = tmall_main_page.find_house_garden_category_slider_photo()
    if slider_photo != None:
        assert True
    else:
        assert False
Пример #2
0
def test_tmall_37(browser):
    tmall_main_page = SearchHelper(browser)
    tmall_main_page.go_to_site()
    tmall_main_page.find_nav_categories()[6].click()
    slider_photo = tmall_main_page.find_car_goods_category_slider_photo()
    if slider_photo != None:
        assert True
    else:
        assert False
Пример #3
0
def test_tmall_29(browser):
    tmall_main_page = SearchHelper(browser)
    tmall_main_page.go_to_site()
    supermarket_category = tmall_main_page.find_nav_categories()[5]
    checking = False
    try:
        supermarket_category.click()
        checking = True
    except:
        pass
    assert checking
Пример #4
0
def test_tmall_30(browser):
    tmall_main_page = SearchHelper(browser)
    tmall_main_page.go_to_site()
    car_goods_category = tmall_main_page.find_nav_categories()[6]
    checking = False
    try:
        car_goods_category.click()
        checking = True
    except:
        pass
    assert checking
Пример #5
0
def test_tmall_28(browser):
    tmall_main_page = SearchHelper(browser)
    tmall_main_page.go_to_site()
    fashion_category = tmall_main_page.find_nav_categories()[4]
    checking = False
    try:
        fashion_category.click()
        checking = True
    except:
        pass
    assert checking
Пример #6
0
def test_tmall_27(browser):
    tmall_main_page = SearchHelper(browser)
    tmall_main_page.go_to_site()
    children_and_mothers_category = tmall_main_page.find_nav_categories()[3]
    checking = False
    try:
        children_and_mothers_category.click()
        checking = True
    except:
        pass
    assert checking
Пример #7
0
def test_tmall_26(browser):
    tmall_main_page = SearchHelper(browser)
    tmall_main_page.go_to_site()
    huose_and_garden_category = tmall_main_page.find_nav_categories()[2]
    checking = False
    try:
        huose_and_garden_category.click()
        checking = True
    except:
        pass
    assert checking
Пример #8
0
def test_tmall_25(browser):
    tmall_main_page = SearchHelper(browser)
    tmall_main_page.go_to_site()
    appliances_category = tmall_main_page.find_nav_categories()[1]
    checking = False
    try:
        appliances_category.click()
        checking = True
    except:
        pass
    assert checking
Пример #9
0
def test_tmall_24(browser):
    tmall_main_page = SearchHelper(browser)
    tmall_main_page.go_to_site()
    electronic_category = tmall_main_page.find_nav_categories()[0]
    checking = False
    try:
        electronic_category.click()
        checking = True
    except:
        pass
    assert checking