Beispiel #1
0
 def test_074_TUMIUAT_457(self):
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     product_list1.click_hide_the_screening()
     assert new_find_element(self.driver,
                             product_list.display_screen).text == '显示筛选'
Beispiel #2
0
 def test_072_TUMIUAT_454(self):
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     assert new_find_element(self.driver,
                             product_list.hide_the_screening).text == '隐藏筛选'
     assert new_find_element(self.driver,
                             product_list.screening_series).text == '系列'
     assert new_find_element(self.driver,
                             product_list.screening_color).text == '颜色组'
     assert new_find_element(self.driver,
                             product_list.screening_prices).text == '价格'
     assert new_find_element(self.driver,
                             product_list.screening_material).text == '材料'
     assert new_find_element(self.driver,
                             product_list.screening_sex).text == '性别'
     # assert new_find_element(self.driver, product_list.screening_function).text == '专属功能'
     assert new_find_element(self.driver,
                             product_list.screening_size).text == '电脑尺寸'
     assert new_find_element(self.driver,
                             product_list.screening_type).text == '产品类型'
     assert new_find_element(
         self.driver, product_list.screening_luggage_size).text == '行李箱尺寸'
     assert new_find_element(self.driver,
                             product_list.screening_roller).text == '滚轮数量'
 def test_092_TUMIUAT_496(self):
     product_details_page1 = product_details_page(self.driver)
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     product_list1.click_product_img()
     product_details_page1.click_diy_add()
     time.sleep(1)
     product_details_page1.input_diy_firstNum()
     product_details_page1.click_diy_f_next()
     product_details_page1.click_diy_s_next()
     product_details_page1.click_diy_t_ok()
     time.sleep(2)
     product_details_page1.click_diy_edit()
     time.sleep(1)
     product_details_page1.clear_diy_firstNum()
     product_details_page1.input_diy_firstNum2()
     product_details_page1.click_diy_f_next()
     product_details_page1.click_diy_s_next()
     product_details_page1.click_diy_t_ok()
     time.sleep(2)
     assert new_find_element(self.driver,
                             product_details_page.diy_edit).text == '编辑'
     assert new_find_element(self.driver,
                             product_details_page.diy_del).text == '移除'
 def test_087_TUMIUAT_479_1(self):
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     product_list1.click_product_img()
     product_list1.click_f_homepage()
     assert self.driver.current_url == cn_url
Beispiel #5
0
 def test_077_TUMIUAT_461(self):
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     assert len(
         self.driver.find_elements_by_xpath(
             '//body/div[1]/main[1]/div[4]/div[2]/div[3]/div[3]/div[1]/div[1]/div[1]/div[1]/div[1]'
         )) == 1
Beispiel #6
0
 def test_069_TUMIUAT_453_1(self):
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     product_list1.click_f_compare()
     assert new_find_element(self.driver,
                             product_list.compare_text).text == '添加1或2个商品'
     product_list1.click_f_compare()
 def test_090_TUMIUAT_490(self):
     product_details_page1 = product_details_page(self.driver)
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     product_list1.click_product_img()
     product_details_page1.click_share_blog()
     assert self.driver.title == '分享到微博-微博-随时随地分享身边的新鲜事儿'
Beispiel #8
0
 def test_078_TUMIUAT_462_1(self):
     product_list1 = product_list(self.driver)
     product_list1.action_f_luggage()
     time.sleep(1)
     product_list1.click_f_luggage_all()
     time.sleep(5)
     assert new_find_element(self.driver,
                             product_list.page_num).text == '30 件'
 def test_088_TUMIUAT_479_2(self):
     product_details_page1 = product_details_page(self.driver)
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     product_list1.click_product_img()
     product_details_page1.click_f_crumbs()
     assert new_find_element(
         self.driver, homepage.luggage_title).text == '各类旅行箱 - 托运旅行箱、登机箱'
Beispiel #10
0
 def test_081_TUMIUAT_463(self):
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     a = new_find_element(self.driver, product_list.product_name).text
     product_list1.click_buy_now()
     time.sleep(3)
     assert a == new_find_element(self.driver,
                                  product_list.b_product_name).text
Beispiel #11
0
 def test_076_TUMIUAT_460(self):
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     product_list1.click_sortOptions1SelectBoxItText()
     product_list1.click_price_desc()
     time.sleep(1)
     assert new_find_element(
         self.driver, product_list.highest_price).text == '¥14,990.00'
Beispiel #12
0
 def test_075_TUMIUAT_459(self):
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     product_list1.click_sortOptions1SelectBoxItText()
     product_list1.click_price_asc()
     time.sleep(5)
     assert new_find_element(self.driver,
                             product_list.lowest_price).text == '¥0.01'
Beispiel #13
0
 def test_073_TUMIUAT_456(self):
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     product_list1.click_screening_series_btn()
     product_list1.click_merge_serise()
     a = new_find_element(self.driver, product_list.merga_num).text
     b = a.replace('(', '').replace(')', '').strip()
     time.sleep(3)
     assert b == new_find_element(self.driver, product_list.mergaNum).text
 def test_091_TUMIUAT_491(self):
     product_details_page1 = product_details_page(self.driver)
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     product_list1.click_product_img()
     product_details_page1.action_share_wechat()
     time.sleep(2)
     assert new_find_element(
         self.driver, product_details_page.wechat_text).text == '微信扫一扫'
 def test_089_TUMIUAT_479_3(self):
     product_details_page1 = product_details_page(self.driver)
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     product_list1.click_product_img()
     product_details_page1.click_s_crumbs()
     assert new_find_element(
         self.driver,
         product_details_page.s_type_title).text == '登机箱 - 旅行拉杆箱'
Beispiel #16
0
 def test_083_TUMIUAT_472(self):
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     # product_list1.click_f_compare()
     # time.sleep(3)
     # product_list1.click_s_compare()
     product_list1.click_immediately_to_compare()
     product_list1.click_continue_shopping()
     assert self.driver.current_url == cn_url
Beispiel #17
0
 def test_070_TUMIUAT_453_2(self):
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     product_list1.click_f_compare()
     product_list1.click_s_compare()
     assert new_find_element(
         self.driver, product_list.immediately_to_compare).text == '立即比较'
     product_list1.click_immediately_to_compare()
     product_list1.click_del_product()
     product_list1.click_s_compare()
Beispiel #18
0
 def test_079_TUMIUAT_462_2(self):
     product_list1 = product_list(self.driver)
     product_list1.action_f_luggage()
     time.sleep(1)
     product_list1.click_f_luggage_all()
     time.sleep(5)
     product_list1.click_page_num()
     product_list1.click_page_60()
     time.sleep(2)
     a = self.driver.find_elements_by_link_text('快速购买')
     assert len(a) == 60
Beispiel #19
0
 def test_082_TUMIUAT_471(self):
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     product_list1.click_f_compare()
     product_list1.click_s_compare()
     product_list1.click_immediately_to_compare()
     assert new_find_element(self.driver,
                             product_list.continue_shopping).text == '继续购物'
     assert new_find_element(self.driver,
                             product_list.mailToLink).text == '邮件结果'
     assert new_find_element(self.driver, product_list.res).text == '打印结果'
Beispiel #20
0
 def test_080_TUMIUAT_462_3(self):
     product_list1 = product_list(self.driver)
     product_list1.action_f_luggage()
     time.sleep(1)
     product_list1.click_f_luggage_all()
     time.sleep(5)
     product_list1.click_page_num()
     product_list1.click_page_all()
     b = new_find_element(self.driver, product_list.mergaNum).text
     time.sleep(2)
     a = self.driver.find_elements_by_link_text('快速购买')
     assert len(a) == int(b)
Beispiel #21
0
 def test_071_TUMIUAT_453_3(self):
     product_list1 = product_list(self.driver)
     product_list1.click_f_luggage()
     product_list1.click_s_luggage_buy()
     product_list1.click_f_compare()
     product_list1.click_s_compare()
     product_list1.click_t_compare()
     product_list1.click_fo_compare()
     assert new_find_element(
         self.driver, product_list.compare_error).text == '您一次最多可以比较3个产品'
     product_list1.click_immediately_to_compare()
     product_list1.click_del_product()
     product_list1.click_del_product()
     product_list1.click_t_compare()