Esempio n. 1
0
class AddToCartModalTests(unittest.TestCase):

    def setUp(self):
        self.driver = webdriver.Chrome()
        self.driver.get(url)
        self.women = WomenPage(self.driver)
        self.women.click_women_nav_menu_button()
        self.women.click_blouse_thumbnail()
        self.product_details = ProductDetailsPage(self.driver)
        self.product_details.click_product_details_page_add_to_cart_button()
        self.cart_modal = AddToCartModal(self.driver)

    def tearDown(self):
        time.sleep(2)
        self.driver.close()

    @unittest.skip("pass")
    def test_click_add_to_cart_modal_continue_shopping_button(self):
        time.sleep(2)
        self.cart_modal.click_add_to_cart_modal_continue_shopping_button()

    @unittest.skip("pass")
    def test_input_name_of_your_friend_textbox(self):
        time.sleep(2)
        self.cart_modal.click_add_to_cart_modal_proceed_to_checkout_button()

    @unittest.skip("pass")
    def test_click_add_to_cart_modal_x_button(self):
        time.sleep(2)
        self.cart_modal.click_add_to_cart_modal_x_button()
 def setUp(self):
     self.driver = webdriver.Chrome()
     self.driver.get(url)
     self.sign_in = SignInPage(self.driver)
     self.sign_in.click_sign_in_menu_button()
     self.sign_in.input_email_address_textbox("*****@*****.**")
     self.sign_in.input_password_textbox("abcd1234")
     self.sign_in.click_sign_in_button()
     self.women = WomenPage(self.driver)
     self.women.click_women_nav_menu_button()
     self.women.click_blouse_thumbnail()
     self.product_details = ProductDetailsPage(self.driver)
     self.product_details.click_product_details_page_add_to_cart_button()
     time.sleep(2)
     self.cart_modal = AddToCartModal(self.driver)
     self.cart_modal.click_add_to_cart_modal_proceed_to_checkout_button()
     self.summary = CheckoutSummaryPage(self.driver)
     self.summary.click_checkout_summary_proceed_to_checkout_button()
     self.address = CheckoutAddressPage(self.driver)
     self.address.click_checkout_address_proceed_to_checkout_button()
     self.shipping = CheckoutShippingPage(self.driver)
     self.shipping.check_checkout_shipping_terms_of_service_checkbox()
     self.shipping.click_checkout_shipping_proceed_to_checkout_button()
     self.payment = CheckoutPaymentPage(self.driver)
     self.payment.click_checkout_payment_pay_by_bank_wire_button()
     self.bank_wire = BankWirePaymentPage(self.driver)
 def setUp(self):
     self.driver = webdriver.Chrome()
     self.driver.get(url)
     self.women = WomenPage(self.driver)
     self.women.click_women_nav_menu_button()
     self.women.click_blouse_thumbnail()
     self.product_details = ProductDetailsPage(self.driver)
Esempio n. 4
0
 def setUp(self):
     self.driver = webdriver.Chrome()
     self.driver.get(url)
     self.women = WomenPage(self.driver)
     self.women.click_women_nav_menu_button()
     self.women.click_blouse_thumbnail()
     self.product_details = ProductDetailsPage(self.driver)
     self.product_details.click_product_details_page_add_to_cart_button()
     self.cart_modal = AddToCartModal(self.driver)
Esempio n. 5
0
class CheckoutSummaryPageTests(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Chrome()
        self.driver.get(url)
        self.sign_in = SignInPage(self.driver)
        self.sign_in.click_sign_in_menu_button()
        self.sign_in.input_email_address_textbox("*****@*****.**")
        self.sign_in.input_password_textbox("abcd1234")
        self.sign_in.click_sign_in_button()
        self.women = WomenPage(self.driver)
        self.women.click_women_nav_menu_button()
        self.women.click_blouse_thumbnail()
        self.product_details = ProductDetailsPage(self.driver)
        self.product_details.click_product_details_page_add_to_cart_button()
        time.sleep(2)
        self.cart_modal = AddToCartModal(self.driver)
        self.cart_modal.click_add_to_cart_modal_proceed_to_checkout_button()
        self.summary = CheckoutSummaryPage(self.driver)

    def tearDown(self):
        time.sleep(2)
        self.driver.close()

    @unittest.skip("pass")
    def test_input_checkout_summary_quantity_textbox(self):
        time.sleep(2)
        self.summary.input_checkout_summary_quantity_textbox("3")

    @unittest.skip("pass")
    def test_click_checkout_summary_minus_button(self):
        time.sleep(2)
        self.summary.click_checkout_summary_minus_button()

    @unittest.skip("pass")
    def test_click_checkout_summary_plus_button(self):
        time.sleep(2)
        self.summary.click_checkout_summary_plus_button()

    @unittest.skip("pass")
    def test_click_checkout_summary_trashcan_button(self):
        time.sleep(2)
        self.summary.click_checkout_summary_trashcan_button()

    @unittest.skip("pass")
    def test_click_checkout_summary_proceed_to_checkout_button(self):
        time.sleep(2)
        self.summary.click_checkout_summary_proceed_to_checkout_button()

    @unittest.skip("pass")
    def test_click_checkout_summary_continue_shopping_link(self):
        time.sleep(2)
        self.summary.click_checkout_summary_continue_shopping_link()
Esempio n. 6
0
 def setUp(self):
     self.driver = webdriver.Chrome()
     self.driver.get(url)
     self.sign_in = SignInPage(self.driver)
     self.sign_in.click_sign_in_menu_button()
     self.sign_in.input_email_address_textbox("*****@*****.**")
     self.sign_in.input_password_textbox("abcd1234")
     self.sign_in.click_sign_in_button()
     self.women = WomenPage(self.driver)
     self.women.click_women_nav_menu_button()
     self.women.click_blouse_thumbnail()
     self.product_details = ProductDetailsPage(self.driver)
     self.product_details.click_product_details_page_add_to_cart_button()
     time.sleep(2)
     self.cart_modal = AddToCartModal(self.driver)
     self.cart_modal.click_add_to_cart_modal_proceed_to_checkout_button()
     self.summary = CheckoutSummaryPage(self.driver)
 def setUp(self):
     self.driver = webdriver.Chrome()
     self.driver.get(url)
     self.women = WomenPage(self.driver)
     self.women.click_women_nav_menu_button()
     self.women.click_blouse_thumbnail()
     self.product_details = ProductDetailsPage(self.driver)
     self.modal = SendToAFriendModal(self.driver)
     self.modal.click_send_to_a_friend_link()
class BankWirePaymentPageTests(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Chrome()
        self.driver.get(url)
        self.sign_in = SignInPage(self.driver)
        self.sign_in.click_sign_in_menu_button()
        self.sign_in.input_email_address_textbox("*****@*****.**")
        self.sign_in.input_password_textbox("abcd1234")
        self.sign_in.click_sign_in_button()
        self.women = WomenPage(self.driver)
        self.women.click_women_nav_menu_button()
        self.women.click_blouse_thumbnail()
        self.product_details = ProductDetailsPage(self.driver)
        self.product_details.click_product_details_page_add_to_cart_button()
        time.sleep(2)
        self.cart_modal = AddToCartModal(self.driver)
        self.cart_modal.click_add_to_cart_modal_proceed_to_checkout_button()
        self.summary = CheckoutSummaryPage(self.driver)
        self.summary.click_checkout_summary_proceed_to_checkout_button()
        self.address = CheckoutAddressPage(self.driver)
        self.address.click_checkout_address_proceed_to_checkout_button()
        self.shipping = CheckoutShippingPage(self.driver)
        self.shipping.check_checkout_shipping_terms_of_service_checkbox()
        self.shipping.click_checkout_shipping_proceed_to_checkout_button()
        self.payment = CheckoutPaymentPage(self.driver)
        self.payment.click_checkout_payment_pay_by_bank_wire_button()
        self.bank_wire = BankWirePaymentPage(self.driver)

    def tearDown(self):
        time.sleep(2)
        self.driver.close()

    @unittest.skip("pass")
    def test_click_bank_wire_other_payment_methods_link(self):
        self.bank_wire.click_bank_wire_other_payment_methods_link()

    @unittest.skip("pass")
    def test_click_bank_wire_i_confirm_my_order_button(self):
        self.bank_wire.click_bank_wire_i_confirm_my_order_button()

    @unittest.skip("pass")
    def test_verify_bank_wire_text(self):
        self.bank_wire.verify_bank_wire_text("Bank-wire payment.")
Esempio n. 9
0
 def setUp(self):
     self.driver = webdriver.Chrome()
     self.driver.get(url)
     self.sign_in = SignInPage(self.driver)
     self.sign_in.click_sign_in_menu_button()
     self.sign_in.input_email_address_textbox("*****@*****.**")
     self.sign_in.input_password_textbox("abcd1234")
     self.sign_in.click_sign_in_button()
     self.women = WomenPage(self.driver)
     self.women.click_women_nav_menu_button()
     self.women.click_blouse_thumbnail()
     self.product_details = ProductDetailsPage(self.driver)
     self.write = WriteAReviewModal(self.driver)
     self.write.click_write_a_review_link()
class ProductDetailsPageTests(unittest.TestCase):

    def setUp(self):
        self.driver = webdriver.Chrome()
        self.driver.get(url)
        self.women = WomenPage(self.driver)
        self.women.click_women_nav_menu_button()
        self.women.click_blouse_thumbnail()
        self.product_details = ProductDetailsPage(self.driver)

    def tearDown(self):
        time.sleep(2)
        self.driver.close()

    @unittest.skip("pass")
    def test_click_product_details_page_tweet_button(self):
        self.product_details.click_product_details_page_tweet_button()

    @unittest.skip("pass")
    def test_click_product_details_page_facebook_button(self):
        self.product_details.click_product_details_page_facebook_button()

    @unittest.skip("pass")
    def test_click_product_details_page_google_plus_button(self):
        self.product_details.click_product_details_page_google_plus_button()

    @unittest.skip("pass")
    def test_click_product_details_page_pinterest_button(self):
        self.product_details.click_product_details_page_pinterest_button()

    @unittest.skip("pass")
    def test_click_send_to_a_friend_link(self):
        self.product_details.click_send_to_a_friend_link()

    @unittest.skip("pass")
    def test_click_product_details_page_print_link(self):
        self.product_details.click_product_details_page_print_link()

    @unittest.skip("pass")
    def test_input_quantity_textbox(self):
        self.product_details.input_quantity_textbox("3")

    @unittest.skip("pass")
    def test_click_quantity_minus_button(self):
        self.product_details.click_quantity_minus_button()

    @unittest.skip("pass")
    def test_click_quantity_plus_button(self):
        self.product_details.click_quantity_plus_button()

    @unittest.skip("pass")
    def test_select_product_details_page_size_dropdown(self):
        self.product_details.select_product_details_page_size_dropdown("M")

    @unittest.skip("pass")
    def test_click_product_details_page_color_white_button(self):
        self.product_details.click_product_details_page_color_white_button()

    @unittest.skip("pass")
    def test_click_product_details_page_color_black_button(self):
        self.product_details.click_product_details_page_color_black_button()

    @unittest.skip("pass")
    def test_click_product_details_page_add_to_cart_button(self):
        self.product_details.click_product_details_page_add_to_cart_button()

    @unittest.skip("pass")
    def test_click_product_details_page_add_to_wishlist_button(self):
        self.product_details.click_product_details_page_add_to_wishlist_button()
Esempio n. 11
0
class CheckoutAddressPageTests(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Chrome()
        self.driver.get(url)
        self.sign_in = SignInPage(self.driver)
        self.sign_in.click_sign_in_menu_button()
        self.sign_in.input_email_address_textbox("*****@*****.**")
        self.sign_in.input_password_textbox("abcd1234")
        self.sign_in.click_sign_in_button()
        self.women = WomenPage(self.driver)
        self.women.click_women_nav_menu_button()
        self.women.click_blouse_thumbnail()
        self.product_details = ProductDetailsPage(self.driver)
        self.product_details.click_product_details_page_add_to_cart_button()
        time.sleep(2)
        self.cart_modal = AddToCartModal(self.driver)
        self.cart_modal.click_add_to_cart_modal_proceed_to_checkout_button()
        self.summary = CheckoutSummaryPage(self.driver)
        self.summary.click_checkout_summary_proceed_to_checkout_button()
        self.address = CheckoutAddressPage(self.driver)

    def tearDown(self):
        time.sleep(2)
        self.driver.close()

    @unittest.skip("pass")
    def test_select_choose_a_deliver_address_dropdown(self):
        time.sleep(2)
        self.address.select_choose_a_deliver_address_dropdown("Home address")

    @unittest.skip("pass")
    def test_check_delivery_address_as_billing_checkbox(self):
        time.sleep(2)
        self.address.check_delivery_address_as_billing_checkbox()

    @unittest.skip("pass")
    def test_uncheck_delivery_address_as_billing_checkbox(self):
        time.sleep(2)
        self.address.uncheck_delivery_address_as_billing_checkbox()

    @unittest.skip("pass")
    def test_click_your_delivery_address_update_button(self):
        time.sleep(2)
        self.address.click_your_delivery_address_update_button()

    @unittest.skip("pass")
    def test_click_your_billing_address_update_button(self):
        time.sleep(2)
        self.address.click_your_billing_address_update_button()

    @unittest.skip("pass")
    def test_click_add_a_new_address_button(self):
        time.sleep(2)
        self.address.click_add_a_new_address_button()

    @unittest.skip("pass")
    def test_input_comment_on_your_order_textbox(self):
        time.sleep(2)
        self.address.\
            input_comment_on_your_order_textbox("Comment about my order")

    @unittest.skip("pass")
    def test_click_checkout_address_continue_shopping_link(self):
        time.sleep(2)
        self.address.click_checkout_address_continue_shopping_link()

    @unittest.skip("pass")
    def test_click_checkout_address_proceed_to_checkout_button(self):
        time.sleep(2)
        self.address.click_checkout_address_proceed_to_checkout_button()