def setUp(self): self.driver = browser.start(main.get_env(), main.get_browser()) self.nicol = profiles.Profile(self.driver, 'nicol') self.faker = profiles.Profile(self.driver, 'faker') self.tester = profiles.Profile(self.driver, 'tester') self.fire = profiles.Profile(self.driver, 'fire') self.WDWait = WebDriverWait(self.driver, 10)
def setUp(self): self.driver = browser.start(main.get_env(), main.get_browser()) self.nicol = profiles.Profile(self.driver, 'nicol') self.patrick = profiles.Profile(self.driver, 'patrick') self.krabs = profiles.Profile(self.driver, 'krabs') self.squid = profiles.Profile(self.driver, 'squid') self.WDWait = WebDriverWait(self.driver, 10)
def run(): andrew = profiles.Profile( browser.start(main.get_env(), main.get_browser()), 'andrew') andrew.login() andrew.employee_page.on() filters = andrew.employee_page.get_filters()
def set_bbva_amount(self, mxnAmount): # move up or down until amount is clickable # amount must be in multiples of 100 print(mxnAmount) if self.destinationType == 'bbva' and mxnAmount != self.bbvaAmount: env_type = main.get_env() while mxnAmount != self.bbvaAmount: direction = self.get_direction(mxnAmount) if direction == 'click': item = self.get_picker_item(mxnAmount) item.click() else: self.move_picker(direction) self.bbvaAmount = ( self.form.find_element_by_class_name('picker-item-selected').text.replace(",", ""))
def load(self): self.cont = self.driver.find_element_by_id('sendmi_appbar') # back button or hamburger icon? (no hamburger on desktop) self.back_button = None self.hamburger = None if self.menu_type() == 'back': self.back_button = self.driver.find_element_by_id('navback_button') elif main.get_env() != 'desktop': self.hamburger = self.cont.find_element_by_class_name('hamburger') self.feedback = self.cont.find_element_by_id('feedback_dropdown') try: self.english = self.driver.find_element_by_id('locale_en') self.spanish = self.driver.find_element_by_id('locale_es') except NoSuchElementException: self.english = None self.spanish = None
def setUp(self): self.driver = browser.start(main.get_env(), main.get_browser()) self.nicol = profiles.Profile(self.driver, 'nicol') self.poli = profiles.Profile(self.driver) self.WDWait = WebDriverWait(self.driver, 10)
def setUp(self): self.driver = browser.start(main.get_env(), main.get_browser()) self.nicol = profiles.Profile(self.driver, 'nicol')
def setUp(self): self.driver = browser.start(main.get_env(), main.get_browser()) self.andrewS = profiles.Profile(self.driver, 'andrewSendmi')
def setUp(self): self.driver = browser.start(main.get_env(), main.get_browser()) self.cheeks = profiles.Profile(self.driver, 'cheeks') self.lili = profiles.Profile(self.driver, 'lili') self.nicol = profiles.Profile(self.driver, 'nicol')
def setUp(self): self.driver = browser.start(main.get_env(), main.get_browser()) self.cheeks = profiles.Profile(self.driver, 'cheeks') self.alone6 = profiles.Profile(self.driver, 'alone6')
def setUp(self): self.driver = browser.start(main.get_env(),main.get_browser()) self.nicol = profiles.Profile(self.driver,'nicol') self.employee = profiles.Profile(self.driver, 'lili') self.assertTrue(self.nicol.env_loaded())