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_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_034_TUMIUAT_1529_1(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() time.sleep(6) b = new_find_element(self.driver, my_account.nearby_stores).text my_account1.click_nearby_stores() a = new_find_element(self.driver, my_account.store_name).text assert b == a
def test_072_TUMIUAT_713(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 == 'Hide Filter' assert new_find_element(self.driver, product_list.screening_series).text == 'Collection' assert new_find_element(self.driver, product_list.screening_color).text == 'Color Family' assert new_find_element(self.driver, product_list.screening_prices).text == 'Price'
def test_033_TUMIUAT_565(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() assert new_find_element(self.driver, my_account.update_my_info).text == '更新个人信息' assert new_find_element(self.driver, my_account.update_my_password).text == '更新密码' assert new_find_element(self.driver, my_account.my_address).text == '我的地址簿'
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
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_033_TUMIUAT_822(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() assert new_find_element( self.driver, my_account.update_my_info).text == 'UPDATE PERSONAL INFORMATION' assert new_find_element( self.driver, my_account.update_my_password).text == 'UPDATE PASSWORD' assert new_find_element( self.driver, my_account.my_address).text == 'MY ADDRESS BOOK'
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 == '打印结果'
def test_085_TUMIUAT_1355_1(self): product_list1 = product_list(self.driver) product_list1.click_f_luggage() product_list1.click_s_luggage_buy() product_list1.click_immediately_to_compare() a = new_find_element(self.driver, product_list.f_product_name).text product_list1.click_cart_content() product_list1.click_gotocart() print( new_find_element(self.driver, product_list.c_f_product_name).text) assert a == new_find_element(self.driver, product_list.c_f_product_name).text
def login(): # driver.get(f'{host}') # driver.maximize_window() new_find_element(driver,zhuce_denglu).click() new_find_element(driver,username).send_keys('17316565325') new_find_element(driver,password).send_keys('gxjy541') time.sleep(2) new_find_element(driver,denglu).click()
def test_022_TUMIUAT_1532(self): homepage1 = homepage(self.driver) homepage1.login_no_phone() time.sleep(2) assert new_find_element( self.driver, homepage.j_username_error).text == 'Phone is required.'
def test_021_TUMIUAT_672_6(self): homepage1 = homepage(self.driver) homepage1.roll_to_bottom_AD_space() homepage1.click_bottom_AD_space_explore2() homepage1.new_page() assert new_find_element( self.driver, homepage.tumi_different).text == 'TUMI DIFFERENCE'
def test_027_TUMIUAT_409_4(self): homepage1 = homepage(self.driver) homepage1.login() homepage1.click_offline_store() assert self.driver.current_url == f'{cn_url}store-locator/' assert new_find_element(self.driver,homepage.store_type).text == '门店类型' homepage1.sign_out()
def test_026_TUMIUAT_409_2(self): homepage1 = homepage(self.driver) homepage1.login() homepage1.click_vip_club() assert self.driver.current_url == f'{cn_url}tumi-club/' assert new_find_element(self.driver,homepage.vip_Privilege).text == '会员专属礼遇' homepage1.sign_out()
def test_069_TUMIUAT_712_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 == 'Add 1 or 2 items' product_list1.click_f_compare()
def test_002_TUMIUAT_662_2(self): homepage1 = homepage(self.driver) homepage1.click_vip_club() assert self.driver.current_url == f'{hk_url}tumi-exclusives-club/' assert new_find_element( self.driver, homepage.vip_Privilege).text == 'TUMI Exclusives Club Benefits'
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 == '显示筛选'
def test_045_TUMIUAT_573(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() my_account1.click_address_book_btn() my_account1.click_address_del() assert new_find_element(self.driver, my_account.address_name).text != '测试测试测试测试'
def test_007_TUMIUAT_662_7(self): homepage1 = homepage(self.driver) homepage1.click_login() time.sleep(0.5) assert new_find_element( self.driver, homepage.login_text).text == 'Log in to your TUMI.HK account'
def test_023_TUMIUAT_677(self): homepage1 = homepage(self.driver) homepage1.login_no_password() time.sleep(2) assert new_find_element( self.driver, homepage.j_password_error).text == 'Password is required.'
def test_024_TUMIUAT_678(self): homepage1 = homepage(self.driver) homepage1.login_password_error() time.sleep(2) assert new_find_element( self.driver, homepage.username_error ).text == 'Your username or password is incorrect.'
def test_035_TUMIUAT_1529_2(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() time.sleep(6) my_account1.click_nearby_stores() my_account1.click_store_search() assert new_find_element(self.driver, my_account.store_type).text == '门店类型'
def tearDown(self): homepage1 = homepage(self.driver) my_account1 = my_account(self.driver) time.sleep(2) my_account1.move_to_logo() my_account1.click_account_logo() if new_find_element(self.driver, homepage.my_username).text != '登录/注册': homepage1.sign_out()
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_075_TUMIUAT_717(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 == 'HK$4,090.00'
def test_076_TUMIUAT_718(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 == 'HK$15,000.00'
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_010_TUMIUAT_666(self): homepage1 = homepage(self.driver) homepage1.search_for_Effective_Products() homepage1.click_suggested_keyword() assert new_find_element(self.driver, homepage.have_search).text == 'SEARCH RESULTS' assert self.driver.find_element_by_xpath( '/html[1]/body[1]/div[1]/main[1]/div[3]/div[1]/div[1]/div[2]' ).text == '"ALPHA"'
def test_055_TUMIUAT_577(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() my_account1.click_update_my_password() my_account1.input_now_password() my_account1.input_confirm_new_password() my_account1.click_save_new_password() assert new_find_element( self.driver, my_account.newPassword_errors).text == '请输入您的新密码'