Beispiel #1
0
 def __init__(self, driver):
     WebGeneric.__init__(self, driver)
     self.uname = "//input[@class='_2zrpKA _1dBPDZ']"
     self.paswrd = "//input[@class='_2zrpKA _3v41xv _1dBPDZ']"
     self.clk_login = "******"
     global wb
     wb = WebGeneric(driver)
Beispiel #2
0
 def __init__(self, driver):
     WebGeneric.__init__(self, driver)
     self.cls = '//*[@class="_2AkmmA _29YdH8"]'
     self.item = "Sneakers"
     self.hr = "//span[contains(text(),'Men')]"
     global wb
     wb = WebGeneric(driver)
Beispiel #3
0
 def __init__(self, driver):
     WebGeneric.__init__(self, driver)
     self.day = "//*[@name='birthday_day']"
     self.month = "//*[@name='birthday_month']"
     self.year = "//*[@name='birthday_year']"
     global wb
     wb = WebGeneric(driver)
Beispiel #4
0
 def __init__(self, driver):
     WebGeneric.__init__(self, driver)
     # self.driver = driver
     self.un = "j_username"
     self.pwd = "j_password"
     self.login = "******"
     global wb
     wb = WebGeneric(driver)
 def __init__(self, driver):
     WebGeneric.__init__(self, driver)
     # self.driver = driver
     self.day = "day"
     self.month = "month"
     self.year = "year"
     global wb
     wb = WebGeneric(driver)
Beispiel #6
0
 def __init__(self, driver):
     WebGeneric.__init__(self, driver)
     self.draggable = "//div[@id='draggable']"
     self.droppable = "//div[@id='droppable']"
     self.iframe = "iframe"
     self.src = "//div[@id='draggable']"
     self.dest = "//div[@id='droppable']"
     global wb
     wb = WebGeneric(driver)
Beispiel #7
0
 def __init__(self,driver):
     # self.driver=driver
     WebGeneric.__init__(self, driver)
     global wg
     wg=WebGeneric(driver)
     #locators identified by name
     self.UN='username'
     self.PWD='pwd'
     self.submit_xpath="//div[text()='Login ']"
 def __init__(self, driver):
     WebGeneric.__init__(self, driver)
     self.item = "//input[@placeholder='Search for products, brands and more']"
     self.collect_brand = "//*[@class='_3wU53n']"
     self.clk_add_cart = "//button[@class='_2AkmmA _2Npkh4 _2MWPVK']"
     self.clk_remove_cart = "//div[contains(text(),'Remove')]"
     self.confirm_pop_up = "//div[@class='gdUKd9 _3Z4XMp _2nQDKB']"
     self.clk_help_center = "//*[contains(text(),'Help Center')]"
     self.footer_links_path = "//*[@class='_2NHqR1 row']//a"
     global wb
     wb = WebGeneric(driver)
 def __init__(self, driver):
     WebGeneric.__init__(self, driver)
     self.driver = driver
     self.un_id = "j_username"
     self.pwd_name = "j_password"
     self.log_in = "Submit"
 def jenkinslogin(self, un, pwd):
     wg = WebGeneric(self.driver)
     wg.enter(self.un_id, un)
     wg.enter(self.pwd_name, pwd)
     wg.submit(self.log_in)
Beispiel #11
0
 def __init__(self, driver):
     # self.driver = driver
     WebGeneric.__init__(self, driver)
     self.logout = "//*[text()='log out']"
     global wb
     wb = WebGeneric(driver)
 def __init__(self, driver):
     WebGeneric.__init__(self, driver)
     self.text = 'Logout'
     global wb
     wb = WebGeneric(driver)