def test_usupported_zipcode(self):
     placeorder = PlaceOrder(Browser._driver)
     negativecases = NegativeCases(Browser._driver)
     time.sleep(10)
     # Find the selected product and click on it
     placeorder.findproductandclick(self.Negativeresult[0][0])
     # Wait till the Product Details page is loaded
     BasicActions.implicit_wait(30)
     if placeorder.wait_for_product_page():
         self.assertTrue(negativecases.unsupported_zip_code(self.Negativeresult[1][0], self.Negativeresult[4][0], self.Negativeresult[9][0], self.Negativeresult[10][0]), "Unsupported Zip Code is accepted")
 def test_missing_name_zipcode(self):
     placeorder = PlaceOrder(Browser._driver)
     negativecases = NegativeCases(Browser._driver)
     time.sleep(10)
     # Find the selected product and click on it
     placeorder.findproductandclick(self.Negativeresult[0][0])
     # Wait till the Product Details page is loaded
     BasicActions.implicit_wait(30)
     if placeorder.wait_for_product_page():
         self.assertTrue(negativecases.no_name_zipcode(self.Negativeresult[6][0]), "Missing Name or Zip Code are accepted")
 def test_invalid_name(self):
     placeorder = PlaceOrder(Browser._driver)
     negativecases = NegativeCases(Browser._driver)
     time.sleep(10)
     # Find the selected product and click on it
     placeorder.findproductandclick(self.Negativeresult[0][0])
     # Wait till the Product Details page is loaded
     BasicActions.implicit_wait(30)
     if placeorder.wait_for_product_page():
         self.assertTrue(negativecases.invalid_name(self.Negativeresult[2][0], self.Negativeresult[5][0], self.Negativeresult[8][0]), "Invalid Name is accepted")
 def test_productimage_with_pick_me_button(self):
     placeorder = PlaceOrder(Browser._driver)
     # Find the selected product and click on it
     negativecases = NegativeCases(Browser._driver)
     time.sleep(10)
     placeorder.findproductandclick(self.Negativeresult[0][0])
     # Wait till the Product Details page is loaded
     BasicActions.implicit_wait(30)
     if placeorder.wait_for_product_page():
         self.assertTrue(negativecases.product_image_click(),"Clicking on Product image and pick me button are not correct")