예제 #1
0
    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')]")
예제 #2
0
    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')
예제 #4
0
파일: login.py 프로젝트: pumzat/Weare
 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()
예제 #5
0
파일: login.py 프로젝트: bongadub/Bonga
    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()
예제 #7
0
 def init_page_elements(self):
     self.message = MessagePageObject()
     self.logout_button = Button(
         By.XPATH, "//div[@id='content']//a[contains(@class,'button')]")
예제 #8
0
 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()