Esempio n. 1
0
    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")]')
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 def __init__(self, driver):
     self.tasks = MultiPageElement(css=self.selector)
     PageObject.__init__(self, driver)
Esempio n. 5
0
 def __init__(self, webdriver):
     self.field_search = PageElement(id_="quicksearch")
     PageObject.__init__(self, webdriver)
     self.driver = webdriver
Esempio n. 6
0
 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
Esempio n. 7
0
 def __init__(self,webdriver):
     self.field_search = PageElement(id_="quicksearch")
     PageObject.__init__(self,webdriver)
     self.driver = webdriver
Esempio n. 8
0
 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
Esempio n. 9
0
 def __init__(self,webdriver):
     self.driver = webdriver
     PageObject.__init__(self,self.driver)
     self.user = self.driver.find_element(By.XPATH, '//a[contains(@onclick,"myuser")]')
Esempio n. 10
0
 def __init__(self,webdriver):
     self.driver = webdriver
     PageObject.__init__(self,webdriver)
Esempio n. 11
0
 def __init__(self, webdriver):
     self.driver = webdriver
     PageObject.__init__(self, webdriver)