Exemple #1
0
 def nav_link(self):
     locator = Locator(by=By.XPATH, value="//a[text()='Portfolio']")
     return BaseElement(driver=self.driver, locator=locator)
Exemple #2
0
 def cv_button(self):
     locator = Locator(by=By.CSS_SELECTOR, value="a.btn-cv")
     return BaseElement(driver=self.driver, locator=locator)
Exemple #3
0
 def click_nav_bar(self):
     locator = Locator(by=By.CSS_SELECTOR, value="div.menu-btn")
     return BaseElement(driver=self.driver, locator=locator)
 def submit_button(self):
     locator = Locator(by=By.CSS_SELECTOR, value="input#submit")
     return BaseElement(driver=self.driver, locator=locator)
 def message_input(self):
     locator = Locator(by=By.CSS_SELECTOR, value="textarea#message")
     return BaseElement(driver=self.driver, locator=locator)
 def email_input(self):
     locator = Locator(by=By.CSS_SELECTOR, value="input#email")
     return BaseElement(driver=self.driver, locator=locator)
 def name_input(self):
     locator = Locator(by=By.CSS_SELECTOR, value="input#username")
     return BaseElement(driver=self.driver, locator=locator)