Exemplo n.º 1
0
 def admin_login(self):
     username = ReadConfig.username()
     self.driver.find_element_by_id(self.textbox_userName_id).clear()
     self.driver.find_element_by_id(self.textbox_userName_id).send_keys(username)
     password = ReadConfig.password()
     self.driver.find_element_by_id(self.textbox_Password_id).clear()
     self.driver.find_element_by_id(self.textbox_Password_id).send_keys(password)
     self.driver.find_element_by_xpath(self.button_login_xpath).click()
Exemplo n.º 2
0
 def send_userName(self):
     username = ReadConfig.username()
     self.driver.find_element_by_id(self.textbox_userName_id).clear()
     self.driver.find_element_by_id(self.textbox_userName_id).send_keys(username)