本文整理汇总了Python中PublicFunctions.my_wait_text_present方法的典型用法代码示例。如果您正苦于以下问题:Python PublicFunctions.my_wait_text_present方法的具体用法?Python PublicFunctions.my_wait_text_present怎么用?Python PublicFunctions.my_wait_text_present使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PublicFunctions
的用法示例。
在下文中一共展示了PublicFunctions.my_wait_text_present方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test030_Category_Name
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def test030_Category_Name(self):
FunctionCommon.smartsearch(self,"Ignition")
Mutil_Selection.Products_ViewDetail(self)
Verification.Verify_Category(self,"Ignition")
AddCart.AddCart(self)
PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
AddCart.CheckOut(self)
示例2: test022_Brand_Name
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def test022_Brand_Name(self):
FunctionCommon.smartsearch(self,"Extang")
Mutil_Selection.Products_ViewDetail(self)
Verification.Verify_Brand(self,"Extang")
AddCart.AddCart(self)
PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
AddCart.CheckOut(self)
示例3: test012_Prod_SKU
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def test012_Prod_SKU(self):
FunctionCommon.smartsearch(self,"82016")
Mutil_Selection.Products_ViewDetail(self)
Verification.Verify_SKU(self,"82016")
AddCart.AddCart(self)
PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
AddCart.CheckOut(self)
示例4: setUp
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def setUp(self):
self.verificationErrors = []
self.selenium = selenium("localhost", 4444, "*firefox3 E:/Program Files/Mozilla Firefox/firefox.exe", "http://www.lofinc.net/login/account")
sel=self.selenium
sel.start()
sel.set_timeout("0")
sel.open("/")
# Login
for i in range(0, 30):
if sel.is_element_present("login_email") == True:
sel.type("login_email","[email protected]")
sel.type("login_pass","123456")
sel.click("LoginButton")
break
else :
time.sleep(1)
PublicFunctions.my_wait_text_present(self, "Quick Search")
# If YMM have values, clean them.
IsClean = True
if sel.is_element_present("//span[@id='side_selected_year']/label") == True:
IsClean = False
elif sel.is_element_present("//span[@id='side_selected_make']/label") == True:
IsClean = False
elif sel.is_element_present("//span[@id='side_selected_model']/label") == True:
IsClean = False
if IsClean == False:
FunctionCommon.Clear(self,"all")
示例5: test030_MoreProd
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def test030_MoreProd(self):
Mutil_Selection.Make(self,"FORD")
Mutil_Selection.Categories_QP(self,"Bed Mats")
FunctionCommon.Browser(self)
Mutil_Selection.SubCategories_Link(self,"category/68/subcategory/636/make/ford")
Mutil_Selection.ProdList_AddToCart(self, "1")
PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
AddCart.CheckOut(self)
示例6: test032_MoreProd
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def test032_MoreProd(self):
Mutil_Selection.Year(self,"2005")
Mutil_Selection.Brand(self,"Extang")
FunctionCommon.Browser(self)
Mutil_Selection.Series_options(self,"Extang EXPRESS Universal Tailgate Seal")
Mutil_Selection.ProdList_AddToCart(self, "4")
PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
AddCart.CheckOut(self)
示例7: test031_MoreProd
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def test031_MoreProd(self):
Mutil_Selection.Year(self,"2006")
Mutil_Selection.Make(self,"DODGE")
Mutil_Selection.Categories_QP(self,"Nerf Bars")
FunctionCommon.Browser(self)
Mutil_Selection.SubCategories_Link(self,"category/57/subcategory/728/year/2006/make/dodge")
Mutil_Selection.ProdList_AddToCart(self, "5")
PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
AddCart.CheckOut(self)
示例8: test021_MoreProd
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def test021_MoreProd(self):
Mutil_Selection.Year(self,"2009")
Mutil_Selection.Brand(self,"K&N")
FunctionCommon.Browser(self)
Mutil_Selection.Series_options(self,"Air Filter Accessories")
Mutil_Selection.Products_ViewDetail(self)
AddCart.AddCart(self)
PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
AddCart.UpdateQty(self,"3")
AddCart.CheckOut(self)
示例9: test020_MoreProd
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def test020_MoreProd(self):
Mutil_Selection.Make(self,"HONDA")
Mutil_Selection.Categories_QP(self,"Mufflers")
FunctionCommon.Browser(self)
Mutil_Selection.SubCategories_Link(self,"category/224/subcategory/421/make/honda")
Mutil_Selection.Products_ViewDetail(self)
AddCart.AddCart(self)
PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
AddCart.UpdateQty(self,"3")
AddCart.CheckOut(self)
示例10: test010_TwoSubCategories
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def test010_TwoSubCategories(self):
Mutil_Selection.Year(self,"2010")
Mutil_Selection.Categories_QP(self,"Tonneau Covers")
time.sleep(3)
Mutil_Selection.Categories_QP(self,"Nerf Bars")
FunctionCommon.Browser(self)
Mutil_Selection.TwoSubCategories_select(self,"Truck Champ Drop Step","Snap Tonneau Covers")
Mutil_Selection.Products_ViewDetail(self)
AddCart.AddCart(self)
PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
AddCart.CheckOut(self)
示例11: test022_TwoSeries
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def test022_TwoSeries(self):
Mutil_Selection.Year(self,"2007")
Mutil_Selection.Brand(self,"K&N")
time.sleep(3)
Mutil_Selection.Brand(self,"Lund")
FunctionCommon.Browser(self)
Mutil_Selection.TwoSeries_select(self,"//div[@id='subcatleftcolumn']/img","//div[5]/li[1]/div[1]/img")
Mutil_Selection.Products_ViewDetail(self)
AddCart.AddCart(self)
PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
AddCart.CheckOut(self)
示例12: test011_TwoSubCategories
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def test011_TwoSubCategories(self):
Mutil_Selection.Make(self,"TOYOTA")
Mutil_Selection.Categories_QP(self,"Bed Mats")
time.sleep(3)
Mutil_Selection.Categories_QP(self,"Oil Filters")
FunctionCommon.Browser(self)
Mutil_Selection.TwoSubCategories_select(self,"Universal Oil Filters","Harley Davidson Bed Mat")
Mutil_Selection.Products_ViewDetail(self)
AddCart.AddCart(self)
PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
AddCart.CheckOut(self)
示例13: test020_TwoSeries
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def test020_TwoSeries(self):
Mutil_Selection.Year(self,"2010")
Mutil_Selection.Brand(self,"Advantage")
time.sleep(3)
Mutil_Selection.Brand(self,"AEM")
FunctionCommon.Browser(self)
Mutil_Selection.TwoSeries_select(self,"//li[2]/div[1]/img","//div[2]/li[1]/div[1]/img")
Mutil_Selection.Products_ViewDetail(self)
AddCart.AddCart(self)
PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
AddCart.CheckOut(self)
示例14: test012_TwoSubCategories
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def test012_TwoSubCategories(self):
Mutil_Selection.Year(self,"2009")
Mutil_Selection.Categories_QP(self,"Fender Flares")
time.sleep(3)
Mutil_Selection.Categories_QP(self,"Gauges")
FunctionCommon.Browser(self)
Mutil_Selection.TwoSubCategories_select(self,"Edge Gauge","Extended Fender Flares")
time.sleep(5)
Mutil_Selection.Products_ViewDetail(self)
AddCart.AddCart(self)
PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
AddCart.CheckOut(self)
示例15: test110_Brand_BestInAUTO_3rdBrakeLights
# 需要导入模块: import PublicFunctions [as 别名]
# 或者: from PublicFunctions import my_wait_text_present [as 别名]
def test110_Brand_BestInAUTO_3rdBrakeLights(self):
Mutil_Selection.Year(self, "2009")
Mutil_Selection.Make(self, "GMC")
Mutil_Selection.Brand(self, "BestInAUTO")
FunctionCommon.Browser(self)
Mutil_Selection.SubCategories_Link(self, "brand/83/series/555/year/2009/make/gmc")
Mutil_Selection.Products_ViewDetail(self)
AddCart.AddCart(self)
PublicFunctions.my_wait_text_present(self, "Your Shopping Cart")
AddCart.CheckOut(self)
PublicFunctions.my_wait_text_present(self, "Express Checkout")
Payment.Step1_ProceedCheckOut(self, False)
Payment.Step3_ShippingMethod(self)
Payment.Step4_OrderConfirm(self)