class Login(WebGeneric): def __init__(self, driver): WebGeneric.__init__(self, driver) self.driver = driver self.signin_nav = "//a[text()='Sign In']" self.un_id = "email" self.pwd_id = "password" self.Sign_in = "btnSignin" self.wg = WebGeneric(self.driver) def zoomin_login(self): self.wg.signin("xpath", self.signin_nav) self.wg.enter("id", self.un_id, USERNAME) self.enter("id", self.pwd_id, PASSWORD) self.submit("id", self.Sign_in)
def zoomin_login(self, un, pwd): wg = WebGeneric(self.driver) wg.signin(self.signin_nav) wg.enter(self.un_id, un) wg.enter(self.pwd_id, pwd) wg.submit(self.Sign_in)