func make_webdriver() selenium.WebDriver { var ( webdriver selenium.WebDriver err error ) caps := selenium.Capabilities(wd.MakeChromeCapabilities("Windows")) webdriver, err = selenium.NewRemote(caps, env.web_driver) panic_error(err) webdriver.SetAsyncScriptTimeout(time.Duration(env.timeout) * time.Millisecond) webdriver.SetImplicitWaitTimeout(time.Millisecond * time.Duration(env.timeout)) return webdriver }
func make_webdriver() selenium.WebDriver { var ( webdriver selenium.WebDriver err error ) caps := selenium.Capabilities(wd.MakeChromeCapabilities("Windows")) webdriver, err = selenium.NewRemote(caps, env.remote) panic_error(err) // webdriver.SetTimeout("script", config.timeo) // webdriver.SetTimeout("page load", config.timeo) // webdriver.SetTimeout("implicit", config.timeo) webdriver.SetAsyncScriptTimeout(env.timeo) webdriver.SetImplicitWaitTimeout(env.timeo) return webdriver }