def init_page_elements(self): """ Initialize web page elements using element locator. :locate: loactes page lelements """ self.message = MessagePageObject() self.logout_button = Button( By.XPATH, "//div[@id='content']//a[contains(@class,'button')]")
def init_page_elements(self): """ Initialize web page elements using element locator. :locate: loactes page lelements """ self.page_tittle = PageElement(By.CLASS_NAME, 'example', wait=True) self.username = InputText(By.ID, 'username', wait=True) self.password = InputText(By.ID, 'password', wait=True) self.login_button = Button(By.XPATH, "//form[@id='login']/button", wait=True) self.login_message = MessagePageObject(wait=True) self.welcome_page_message = PageElement(By.CLASS_NAME, 'subheader', wait=True)
def init_page_elements(self): self.message = MessagePageObject() self.logout_button = Button( By.XPATH, '//*[@id="header"]/div[2]/div/div/nav/div[2]/a')
def init_page_elements(self): self.username = InputText(By.ID, 'username') self.password = InputText(By.ID, 'password') self.login_button = Button(By.XPATH, "//form[@id='login']/button") self.message = MessagePageObject()
def init_page_elements(self): self.username = InputText(By.NAME, 'email') self.password = InputText(By.NAME, 'passwd') self.login_button = Button(By.ID, 'SubmitLogin') self.message = MessagePageObject()
def init_page_elements(self): self.username = InputText(By.NAME, 'txtUsername') self.password = InputText(By.NAME, 'txtPassword') self.login_button = Button(By.XPATH, '//*[@id="btnLogin"]') self.message = MessagePageObject()
def init_page_elements(self): self.message = MessagePageObject() self.logout_button = Button( By.XPATH, "//div[@id='content']//a[contains(@class,'button')]")
def init_page_elements(self): self.username = InputText(By.XPATH, '//*[@id="email"]') self.password = InputText(By.XPATH, '//*[@id="passwd"]') self.login_button = Button(By.XPATH, '//*[@id="SubmitLogin"]') self.message = MessagePageObject()