Ejemplo n.º 1
0
    def setUp(self):
        self.driver.maximize_window()
        self.wait = waitModule()
        self.cm = common()

        self.pg_login = page_login(self.driver, glb.url_signIn)
        self.pg_header = page_header(self.driver)
        self.pg_paypal = page_paypal(self.driver)
        self.pg_profile = page_profile(self.driver)
        self.tb_transaction = tab_transaction(self.driver)
        self.tab_gcoin = tab_gcoin(self.driver)
        self.pg_admin = page_admin(self.driver)
        self.pnl_preapproval = panel_preapproval(self.driver)
        self.page_invoice = page_invoice(self.driver)
Ejemplo n.º 2
0
    def test_login(self):
        # self.assertTrue(False)
        pg_login = page_login(self.driver, glb.url_signIn)
        pg_paypal = page_paypal(self.driver)
        tb_transaction = tab_transaction(self.driver)
        tb_paypal = tab_paypal(self.driver)

        pg_login.login(glb.s_username, glb.s_password)
        
        tb_transaction.lnk_topUp_panel.click()
        tb_transaction.panel_paypal.click()

        tb_paypal.btn_recruit_package.click()

        pg_paypal.tab_paypal_login.click()
        pg_paypal.txt_username.send_keys(glb.s_username_paypal)
        pg_paypal.txt_password.send_keys(glb.s_password_paypal)
        pg_paypal.btn_login.click()
        pg_paypal.btn_continue_paypal.click()
        time.sleep(8)