Ejemplo n.º 1
0
 def test001_ymmCat_TonneauCovers(self):
     Selection.Year(self,"2010")
     Selection.Make(self,"GMC")
     Selection.Categories_QP(self,"Tonneau Covers")
     FunctionCommon.my_wait_element(self,"//img[@alt='View More Details About Snap Truck Bed Covers']")
     self.selenium.click("//img[@alt='View More Details About Snap Truck Bed Covers']")
     Selection.Products(self)
     AddCart.AddCart(self,"1")
Ejemplo n.º 2
0
 def test004_CompanyGiftCertificatesCatesOrder(self):
     Selection.Categories_QP(self,"Air Intakes")
     FunctionCommon.my_wait_element(self,"//img[@alt=\'View Products\']")
     self.selenium.click("//img[@alt=\'View Products\']")
     ##Selection.SubCategories(self)
     
     Selection.Products(self)
     AddCart.AddCart(self,"1")
Ejemplo n.º 3
0
 def test002_CouponCodesProductsOrder(self):
     Selection.Categories_QP(self,"Air Filter")         
     Selection.SubCategories_options(self,"Air-Filters")
     FunctionCommon.my_wait_element(self,"//img[@alt=\'View Products\']")
     self.selenium.click("//img[@alt=\'View Products\']")
     Selection.Products(self)
     AddCart.AddCart(self,"1")
     Selection.couponcode(self,"EN7XQ9WF9HV")
Ejemplo n.º 4
0
    def test001_ymmbrand_BestinAuto_AvengerProLiteNonGlareSideMirrorReplacementGlass(self):
        Selection.Year(self, "2010")
        Selection.Brand(self, "BestInAUTO")
        Selection.Series_options(self, "Avenger Pro Lite Non-Glare Side Mirror Replacement Glass")
        FunctionCommon.my_wait_element(self, "//img[@alt='View Products']")
        self.selenium.click("//img[@alt='View Products']")

        Selection.Products(self)
        AddCart.AddCart(self, "2")
        AddCart.CheckOut(self)
Ejemplo n.º 5
0
 def test005_CompanyGiftCertificatesProductsOrder(self):
     Selection.Year(self,"2010")
     Selection.Brand(self,"BestInAUTO")   
     Selection.Series_options(self,"Avenger Pro Lite Non-Glare Side Mirror Replacement Glass")
     FunctionCommon.my_wait_element(self,"//img[@alt=\'View Products\']")
     self.selenium.click("//img[@alt=\'View Products\']")
     
     Selection.Products(self)
     AddCart.AddCart(self,"2") 
     AddCart.CheckOut(self)
Ejemplo n.º 6
0
    def test006_ymmbrand_Magnaflow_MagnaflowGasExhaustSystems(self):
        Selection.Brand(self, "Magnaflow")
        Selection.Year(self, "2010")
        Selection.Make(self, "FORD")
        Selection.Series_options(self, "Magnaflow Gas Exhaust Systems")
        FunctionCommon.my_wait_element(self, "//img[@alt='View Products']")
        self.selenium.click("//img[@alt='View Products']")

        Selection.Products(self)
        AddCart.AddCart(self, "2")
        AddCart.CheckOut(self)
Ejemplo n.º 7
0
    def test005_ymmbrand_Magnaflow_MagnaflowDirectFitCatalyticConverters(self):
        Selection.Brand(self, "Magnaflow")
        Selection.Year(self, "2010")
        Selection.Make(self, "FORD")
        Selection.Series_options(self, "Magnaflow Direct Fit Catalytic Converters")
        FunctionCommon.my_wait_element(self, "//img[@alt='View Products']")
        self.selenium.click("//img[@alt='View Products']")

        Selection.Products(self)
        AddCart.AddCart(self, "2")
        AddCart.CheckOut(self)
Ejemplo n.º 8
0
    def test004_ymmbrand_Husky_FloorCargoandTruckLiners(self):
        Selection.Brand(self, "Husky")
        Selection.Year(self, "2010")
        Selection.Make(self, "FORD")
        Selection.Series_options(self, "Husky Shield Paint Protection")
        FunctionCommon.my_wait_element(self, "//img[@alt='View Products']")
        self.selenium.click("//img[@alt='View Products']")

        Selection.Products(self)
        AddCart.AddCart(self, "2")
        AddCart.CheckOut(self)
Ejemplo n.º 9
0
    def test003_ymmbrand_Stampede_StampedeTapeOnzSidewindDeflectorWindowVisors(self):
        Selection.Brand(self, "Stampede")
        Selection.Year(self, "2010")
        Selection.Make(self, "FORD")
        Selection.Series_options(self, "Stampede Tape-Onz Sidewind Deflector Window Visors")
        FunctionCommon.my_wait_element(self, "//img[@alt='View Products']")
        self.selenium.click("//img[@alt='View Products']")

        Selection.Products(self)
        AddCart.AddCart(self, "2")
        AddCart.CheckOut(self)
Ejemplo n.º 10
0
    def test002_ymmbrand_Stampede_VigilanteLowProfileBugShield(self):
        Selection.Brand(self, "Stampede")
        Selection.Year(self, "2010")
        Selection.Make(self, "FORD")
        Selection.Series_options(self, "Vigilante Low Profile Bug Shield")
        FunctionCommon.my_wait_element(self, "//img[@alt='View Products']")
        self.selenium.click("//img[@alt='View Products']")

        Selection.Products(self)
        AddCart.AddCart(self, "2")
        AddCart.CheckOut(self)
Ejemplo n.º 11
0
def CheckOut(self):
    FunctionCommon.my_wait_element(self, "//div[@id='CartContent']/div/div[1]/div[2]/div[1]/a/img")
    self.selenium.click("//div[@id='CartContent']/div/div[1]/div[2]/div[1]/a/img")
    # step1 Account Detail: Checkout as a guest
    FunctionCommon.my_wait_element(self, "checkout_type_guest")
    self.selenium.click("checkout_type_guest")
    FunctionCommon.my_wait_element(self, "CreateAccountButton")
    self.selenium.click("CreateAccountButton")
Ejemplo n.º 12
0
    def test022_ymmbrand_Stampede_VigilanteLowProfileBugShield(self):
        FunctionCommon.my_wait_element(self, "brand_more")
        self.selenium.click("brand_more")

        FunctionCommon.my_wait_element(self, "link=Stampede")
        self.selenium.click("link=Stampede")
        FunctionCommon.my_wait_text_prsesent(self, "Series Found for")

        Selection.Year(self, "2010")
        Selection.Make(self, "FORD")
        Selection.Series_options(self, "Vigilante Low Profile Bug Shield")
        FunctionCommon.my_wait_element(self, "//img[@alt='View Products']")
        self.selenium.click("//img[@alt='View Products']")

        Selection.Products(self)
        AddCart.AddCart(self, "2")
        AddCart.CheckOut(self)
Ejemplo n.º 13
0
def AddCart(self, qty):
    FunctionCommon.my_wait_element(self, "qty_")
    self.selenium.select("qty_", "label=" + qty)
    FunctionCommon.my_wait_element(self, "//div[@id='ProductDetails']/div/form/div/dl[2]/dd/div/input")
    self.selenium.click("//div[@id='ProductDetails']/div/form/div/dl[2]/dd/div/input")