def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox( capabilities={"marionette": False}, firefox_binary= "/media/WORK/JOB/education/software_testing/PythonForTesters/env/firefox_esr/firefox" ) #self.wd = webdriver.Firefox(capabilities={"marionette": False}, # firefox_binary="/Applications/Firefox 2.app/Contents/MacOS/firefox") elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "ie": self.wd = webdriver.Ie() else: raise ValueError("Unrecognized browser: %s" % browser) self.config = config self.base_url = config['web']['baseUrl'] self.session = SessionHelper(self) self.navigation = NavigationHelper(self) self.projects = ProjectHelper(self) self.mantis_signup = MantisSignUpHelper(self) self.mantis_soap_api = MantisSoapApiHelper(self) self.james = JamesHelper(self) self.mail = MailHelper(self)
def __init__(self, browser, config): if browser == "firefox": self.driver = webdriver.Firefox() elif browser == "chrome": self.driver = webdriver.Chrome() elif browser == "ie": self.driver = webdriver.Ie() else: raise ValueError("Unrecognized browser %s" % browser) #self.driver.implicitly_wait(5) # полезно только для динамических страниц, когда страница появилась, # а элементы еще нет. self.config = config self.base_url = config['web']['baseUrl'] self.session = SessionHelper( self) # помощник получает ссылку на объект # класса Application self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soup = SoupHelper(self)
def __init__(self, browser): if browser == 'Chrome': self.wd = Chrome( executable_path= r'C:\py\selen3\selen2\selen\drivers\win32\chromedriver.exe') self.session = SessionHelper(self) self.mail = MailHelper(self)
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox() else: raise ValueError("Unrecognized browser %s" % browser) self.wd.implicitly_wait(2) self.session = SessionHelper(self) self.project = ProjectHelper(self) self.james = JamesHelper(self) self.mail = MailHelper(self) self.signup = SignupHelper(self) self.soap = SoapHelper(self) self.config = config self.base_url = config['web']['baseUrl']
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "chrome": self.wd = webdriver.Chrome(ChromeDriverManager().install()) else: raise ValueError("Unrecognized browser %s" % browser) self.config = config self.base_url = config['web']['baseUrl'] self.session = SessionHelper(self) self.project = ProjectHelper(self) self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self)
def __init__(self, browser, config): if browser == 'firefox': self.wd = webdriver.Firefox() elif browser == 'chrome': self.wd = webdriver.Chrome() elif browser == 'ie': self.wd = webdriver.Ie() else: raise ValueError("Unrecognised browser %s" % browser) self.session = SessionHelper(self) self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self) self.config = config self.base_url = config['web']['baseUrl']
def __init__(self, browser, config): if browser == "Firefox": self.wd = webdriver.Firefox() elif browser == "Chrome": self.wd = webdriver.Chrome( '/Users/annakosolapova/Downloads/chromedriver') else: raise ValueError("Unrecognized browser %s" % browser) self.wd.implicitly_wait(5) self.session = SessionHelper(self) self.baseUrl = config['web']['baseURL'] self.config = config self.project = ProjectHelper(self) self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self)
def __init__(self, browser, config): if browser == 'firefox': self.wd = webdriver.Firefox(capabilities={"marionette": False}) elif browser == 'chrome': self.wd = webdriver.Chrome() elif browser == 'ie': self.wd = webdriver.Ie() else: raise ValueError('unrecognized browser %s' % browser) self.session = SessionHelper(self) self.project = ProjectHelper(self) self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self) self.config = config self.base_url = config['web']['baseUrl']
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox(capabilities={"marionette": False}) elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "ie": self.wd = webdriver.Ie() else: raise ValueError("Unrecognized browser %s" % browser) self.james = JamesHelper(self) self.session = SessionHelper(self) self.mail = MailHelper(self) self.signup = SignupHelper(self) self.config = config self.soap = SoapHelper(self) self.project = ProjectHelper(self) self.base_url = config["web"]["baseUrl"]
def __init__(self, browser, config): if browser == "firefox": self.driver = webdriver.Firefox() elif browser == "chrome": self.driver = webdriver.Chrome() elif browser == "ie": self.driver = webdriver.Ie() else: raise ValueError("Unrecognized browser %s" % browser) self.driver.implicitly_wait(3) self.vars = {} self.session = SessionHelper(self) self.base_url = config['web']['baseUrl'] self.config = config self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self)
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "ie": self.wd = webdriver.Ie() else: raise ValueError(f"Unrecognized browser {browser}") self.config = config self.base_url = config['web']['baseUrl'] self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self) self.session = SessionHelper(self) self.projects = ProjectHelper(self)
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "ie": self.wd = webdriver.Ie() else: raise ValueError("Unrecognizaed browser %s" % browser) self.session = SessionHelper(self) self.mantis = MantisHelper(self) self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self) self.config = config self.base_url = config["web"]["baseURL"]
def __init__(self, browser, config): if browser == 'chrome': self.wd = webdriver.Chrome( executable_path=r'C:\gecko\chromedriver1.exe') elif browser == 'firefox': self.wd = webdriver.Firefox() else: raise ValueError('unrecognized browser') self.config = config self.base_url = config['web']['baseUrl'] self.session = SessionHelper(self) self.project = ProjectHelper(self) self.james = JamesHelper(self) self.signup = SigupHelper(self) self.soap = SoapHelper(self) self.mail = MailHelper(self)
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "edge": self.wd = webdriver.Edge() else: raise ValueError("Unrecognized browser %s" % browser) self.session = SessionHelper(self) self.james = JamesHelper(self) self.mail = MailHelper(self) self.signup = SignupHelper(self) self.soap = SoapHelper(self) self.accept_next_alert = True self.config = config self.base_url = config['web']['baseUrl']
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "chrome": self.wd = webdriver.Chrome("/Users/Mari/Downloads/chromedriver") elif browser == "safari": self.wd = webdriver.Safari("/usr/bin/safaridriver") else: raise ValueError("Unrecognized browser %s" % browser) #self.wd.implicitly_wait(5) only for dynamic applications self.config = config self.session = Sessionhelper(self) self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.base_url = config["web"]["base_url"]
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "ie": self.wd = webdriver.Ie() else: raise ValueError("Unrecognized browser %s" % browser) self.wd.implicitly_wait(3) self.session = SessionHelper(self) self.base_url = config["web"]["baseUrl"] self.config = config self.james_helper = JamesHelper(self) self.project_helper = ProjectHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self)
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "IE": self.wd = webdriver.Ie() else: raise ValueError("Unrecognized browser: %s", browser) self.wd.implicitly_wait(1) self.config = config self.navigation = NavigationHelper(self, config['web']["baseUrl"]) self.session = SessionHelper(self) self.project = ProjectHelper(self) self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self)
def __init__(self, browser, config): if browser == "Firefox": self.wd = webdriver.Firefox() elif browser == "Chrome": self.wd = webdriver.Chrome() elif browser == "Ie": self.wd = webdriver.Ie() else: raise ValueError("Unrecognized browser %s" % browser) self.session = SessionHelper(self) self.config = config self.soap = SoapHelper(self) self.baseurl = config['web']['baseurl'] self.signup = SignupHelper(self) self.project = ProjectHelper(self) self.mail = MailHelper(self) self.james = JamesHelper(self) self.open_home_page()
def __init__(self, browser, config): if browser == 'firefox': self.wd = webdriver.Firefox() elif browser == 'chrome': self.wd = webdriver.Chrome() elif browser == 'ie': self.wd = webdriver.Ie() else: raise ValueError(f"Unrecognized browser {browser}") self.wd.implicitly_wait(1) self.session = SessionHelper(self) self.project = ProjectHelper(self) self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self) self.base_url = config["web"]["baseUrl"] self.config = config
def __init__(self, browser, config): self.config = config if browser == "firefox": caps = DesiredCapabilities.FIREFOX caps['marionette'] = False self.wd = webdriver.Firefox(capabilities=caps) elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "ie": self.wd = webdriver.Ie() else: raise ValueError("Unrecognized browser %s" % browser) self.session = SessionHelper(self) self.james = JamesHelper(self) self.manage_page = ManagePage(self) self.base_url = config["web"]["baseUrl"] self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self)
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox( capabilities={"marionette": False}, firefox_binary="C:/Program Files/Mozilla Firefox/firefox.exe") elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "ie": self.wd = webdriver.Ie() else: raise ValueError("Unrecognized browser %s" % browser) self.session = SessionHelper(self) self.project = ProjectHelper(self) self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self) self.config = config self.base_url = config['web']['baseUrl']
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "ie": self.wd = webdriver.Ie() else: raise ValueError("Unrecognized browser %s" % browser) #self.wd.implicitly_wait(5) self.session = SessionHelper(self) self.pr = Project(self) self.james = James(self) self.singup = SingupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self) self.config = config self.base_url = config['web']['baseUrl'] self.wsdl = config['soap']['wsdl']
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "ie": self.wd = webdriver.Ie() else: raise ValueError("Unrecognized browser %s" % browser) self.wd.implicitly_wait(5) self.wd.maximize_window() self.session = SessionHelper(self) self.project = Helper_project(self) self.james = JamesHelper(self) self.mail = MailHelper(self) self.signup = SignupHelper(self) self.soap = SoapHelper(self) self.config = config self.base_Url = config['web']['baseUrl']
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "ie": self.wd = webdriver.Ie() else: raise ValueError("Unrecognised browser %s" % browser) self.wd.implicitly_wait( 1) # дополнительное ожидание появления элементов self.session = SessionHelper(self) self.projects = ProjectHelper(self) self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self) self.config = config self.base_url = config['web']['base_url']
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "ie": self.wd = webdriver.Ie() else: raise ValueError("unknown %s" % browser) # initialize wd variable self.wd.implicitly_wait(5) # not delete because tests are failed self.session = SessionHelper(self) # link to SessionHelper self.project = ProjectHelper(self) self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.config = config self.base_url = config['web']['baseUrl'] self.soap = SoapHelper(self)
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "ie": self.wd = webdriver.Ie() else: raise ValueError("Unrecognized browser %s" % browser) self.base_url = config["web"]["baseUrl"] self.username = config['webadmin']["username"] self.password = config['webadmin']["password"] self.config = config self.session = SessionHelper(self) self.projects = ProjectHelper(self) self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self)
def __init__(self, browser, config): if browser == 'firefox': self.wd = webdriver.Firefox() elif browser == 'edge': self.wd = webdriver.Edge() elif browser == 'chrome': self.wd = webdriver.Chrome() else: raise ValueError("Unrecognized browser %s % browser") self.wd.implicitly_wait(2) self.project = ProjectHelper(self) self.session = SessionHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self) self.james = JamesHelper(self) self.config = config self.base_url = config['web']['baseUrl'] self.password = config['webadmin']['password']
def __init__(self, browser, config): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "ie": self.wd = webdriver.Ie() else: raise ValueError("Unrecognized browser %s" % browser) # implicitly_wait - ожидание тех или иных элементов в браузере # self.wd.implicitly_wait(3) self.session = SessionHelper(self) self.james = JamesHelper(self) #self.base_url = base_url self.config = config self.base_url = config['web']['baseUrl'] self.project = ProjectHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self)
def __init__(self, browser, config): if browser == "chrome": self.wd = webdriver.Chrome() elif browser == "firefox": self.wd = webdriver.Firefox(firefox_binary=FirefoxBinary( "C:/Program Files/Firefox_ESR/firefox.exe")) elif browser == "ie": self.wd = webdriver.Ie() elif browser == "opera": self.wd == webdriver.Opera() else: raise ValueError("Unknown browser: %s" % browser) self.session = SessionHelper(self) self.project = ProjectHelper(self) self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self) self.base_url = config["web"]["baseURL"] self.config = config
def __init__(self, browser, jsontarget): self.config = jsontarget if browser == "firefox": self.wd = webdriver.Firefox( capabilities={"marionette": False}, firefox_binary="c:/Program Files/Mozilla Firefox/firefox.exe") elif browser == "chrome": self.wd = webdriver.Chrome() elif browser == "ie": self.wd = webdriver.Ie() else: raise ValueError("Unrecognized browser %s" % browser) self.wd.implicitly_wait(5) self.session = SessionHelper(self) self.project = ProjectHelper(self) self.james = JamesHelper(self) self.signup = SignupHelper(self) self.mail = MailHelper(self) self.soap = SoapHelper(self) self.base_url = jsontarget["web"]["baseUrl"]