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)
class CheckoutShippingPageTests(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)

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

    @unittest.skip("pass")
    def test_check_checkout_shipping_terms_of_service_checkbox(self):
        time.sleep(2)
        self.shipping.check_checkout_shipping_terms_of_service_checkbox()

    @unittest.skip("pass")
    def test_uncheck_checkout_shipping_terms_of_service_checkbox(self):
        time.sleep(2)
        self.shipping.uncheck_checkout_shipping_terms_of_service_checkbox()

    @unittest.skip("pass")
    def test_click_checkout_shipping_read_the_terms_of_service(self):
        time.sleep(2)
        self.shipping.click_checkout_shipping_read_the_terms_of_service_link()

    @unittest.skip("pass")
    def test_click_checkout_shipping_continue_shopping_link(self):
        time.sleep(2)
        self.shipping.click_checkout_shipping_continue_shopping_link()

    @unittest.skip("pass")
    def test_click_checkout_shipping_proceed_to_checkout_button(self):
        time.sleep(2)
        self.shipping.click_checkout_shipping_proceed_to_checkout_button()
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.")