Beispiel #1
0
def test_tmall_47(browser):
    tmall_main_page = SearchHelper(browser)
    tmall_main_page.go_to_site()
    tmall_main_page.enter_word("Кулер для процессора")
    tmall_main_page.find_search_button().click()
    time.sleep(5)
    add = tmall_main_page.find_advertisement()
    if add != None:
        add.click()
    elements = tmall_main_page.find_item_brand_choice()[3].text
    assert "92x92x25 мм" and "120x120x25 мм" in elements
Beispiel #2
0
def test_tmall_45(browser):
    tmall_main_page = SearchHelper(browser)
    tmall_main_page.go_to_site()
    tmall_main_page.enter_word("Кулер для процессора")
    tmall_main_page.find_search_button().click()
    time.sleep(5)
    add = tmall_main_page.find_advertisement()
    if add != None:
        add.click()
    elements = tmall_main_page.find_item_brand_choice()[1].text
    assert "Теплопроводящая штукатурка" and "Водяное охлаждение" in elements
Beispiel #3
0
def test_tmall_46(browser):
    tmall_main_page = SearchHelper(browser)
    tmall_main_page.go_to_site()
    tmall_main_page.enter_word("Кулер для процессора")
    tmall_main_page.find_search_button().click()
    time.sleep(5)
    add = tmall_main_page.find_advertisement()
    if add != None:
        add.click()
    elements = tmall_main_page.find_item_brand_choice()[2].text
    assert "Другое" and "Пластик" and "Медь" in elements
Beispiel #4
0
def test_tmall_44(browser):
    tmall_main_page = SearchHelper(browser)
    tmall_main_page.go_to_site()
    tmall_main_page.enter_word("Видеокарта gtx 1650")
    tmall_main_page.find_search_button().click()
    time.sleep(5)
    add = tmall_main_page.find_advertisement()
    if add != None:
        add.click()
    brand_choice = tmall_main_page.find_item_brand_choice()[0]
    if brand_choice != None:
        assert True
    else:
        assert False