The post Webdriver | Launch Chrome Browser Using Testmate | Proxy | Arguments appeared first on TestMate.
]]>InitializeChromeDriver method takes the path of chromedriver.exe as a parameter.
'Initialize the Chrome driver
Call wd.InitializeChromeDriver("C:\Users\jaska\Desktop\selenium")
'Maximize the window
wd.MaximizeWindow()
'Navigate to the URL and search
wd.NavigateToUrl("https://www.google.com/")
Call wd.SendKeys("name::q","Hello World")
Call wd.Click("name::btnK")
Add Arguments
'Initialize the Chrome driver
Call wd.InitializeChromeOptions()
Call wd.AddArgument_ChromeOptions("disable-infobars")
Call wd.InitializeChromeDriver("C:\Users\jaska\Desktop\selenium")
Proxy & Arguments
'Reinitialize the options
wd.InitializeChromeOptions()
'To Reinitialize Proxy - Just in case Host proxy object is already assigned some values(This is Optional)
Call wd.InitializeProxy()
'Set HTTP Proxy value in the proxy object
Call wd.SetHTTP_Proxy("localhost:8888")
'Set proxy in chrome options
Call wd.SetProxy_ChromeOptions()
'Initialize driver
Call wd.InitializeChromeDriver("C:\Users\jaska\Desktop\selenium")
'Maximize window
wd.MaximizeWindow()
'Navigate to URls
wd.NavigateToUrl("https://www.facebook.com/")
The post Webdriver | Launch Chrome Browser Using Testmate | Proxy | Arguments appeared first on TestMate.
]]>