def __init__(self, webdriver): self.driver = webdriver self.my_user=my_user(self.driver) PageObject.__init__(self,self.driver) self.lang_EN = self.driver.find_element(By.XPATH,'//a[contains(@onclick,"en_EN")]') self.lang_IT = self.driver.find_element(By.XPATH,'//a[contains(@onclick,"it_IT")]') self.lang_NL = self.driver.find_element(By.XPATH,'//a[contains(@onclick,"nl_NL")]') self.lang_SE = self.driver.find_element(By.XPATH,'//a[contains(@onclick,"sv_SE")]')
def __init__(self,webdriver): self.driver = webdriver PageObject.__init__(self,self.driver) #self.button_logout = self.driver.find_element_by_css_selector('input[value="Logout"]') self.topmenu = top_menu(self.driver) self.bottommenu = bottom_infobar(self.driver) self.vault_list = self.driver.find_elements(By.XPATH, '//*[starts-with(@id,"bartitle")]') self.new_vault_button = self.driver.find_element_by_id('newgroup') for i in self.vault_list: p = "".join(list(filter(str.isdigit,i.get_attribute("id")))) z =self.driver.find_element(By.ID, 'bar'+p) self.vault_content_list.append(z)
def __init__(self, webdriver): self.driver = webdriver PageObject.__init__(self, self.driver) #self.button_logout = self.driver.find_element_by_css_selector('input[value="Logout"]') self.topmenu = top_menu(self.driver) self.bottommenu = bottom_infobar(self.driver) self.vault_list = self.driver.find_elements( By.XPATH, '//*[starts-with(@id,"bartitle")]') self.new_vault_button = self.driver.find_element_by_id('newgroup') for i in self.vault_list: p = "".join(list(filter(str.isdigit, i.get_attribute("id")))) z = self.driver.find_element(By.ID, 'bar' + p) self.vault_content_list.append(z)
def __init__(self, driver): self.tasks = MultiPageElement(css=self.selector) PageObject.__init__(self, driver)
def __init__(self, webdriver): self.field_search = PageElement(id_="quicksearch") PageObject.__init__(self, webdriver) self.driver = webdriver
def __init__(self, webdriver): #self.button_logout = PageElement(css='input[value="Logout"]') self.button_logout = webdriver.find_element_by_css_selector( 'input[value="Logout"]') PageObject.__init__(self, webdriver) self.driver = webdriver
def __init__(self,webdriver): self.field_search = PageElement(id_="quicksearch") PageObject.__init__(self,webdriver) self.driver = webdriver
def __init__(self, webdriver): #self.button_logout = PageElement(css='input[value="Logout"]') self.button_logout = webdriver.find_element_by_css_selector('input[value="Logout"]') PageObject.__init__(self,webdriver) self.driver = webdriver
def __init__(self,webdriver): self.driver = webdriver PageObject.__init__(self,self.driver) self.user = self.driver.find_element(By.XPATH, '//a[contains(@onclick,"myuser")]')
def __init__(self,webdriver): self.driver = webdriver PageObject.__init__(self,webdriver)
def __init__(self, webdriver): self.driver = webdriver PageObject.__init__(self, webdriver)