def login_to_paypal(self, user="******"): self.selenium.find_element(*self._paypal_login_button).click() from pages.desktop.paypal_popup import PayPalPopup pop_up = PayPalPopup(self.testsetup) pop_up.login_paypal(user) return PayPalPopup(self.testsetup)
def login_to_paypal(self, email, password): self.selenium.find_element(*self._paypal_login_button).click() from pages.desktop.paypal_popup import PayPalPopup pop_up = PayPalPopup(self.base_url, self.selenium) pop_up.login_paypal(email, password) return PayPalPopup(self.base_url, self.selenium)