Webdriver | Internet Explorer | Set Proxy Using Testmate


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

To launch Internet Explorer with a proxy, use the following code in Testmate:

VBScript

1
2
3
4
5
6
7
8
9
10
11
12
13
14
'Initialize the options (Optional but recommended)
 Call wd.InitializeInternetExplorerOptions()
 
'Set HTTP Proxy value in the proxy object
 Call wd.SetHTTP_Proxy("localhost:8888")
 
'Set Proxy for IE
 Call wd.SetProxy_InternetExplorerOptions()
 
'Initialize IE driver (Pass the folder path to driver)
 Call wd.InitializeInternetExplorerDriver("C:\Users\selenium")
 
'Navigate to the URLs
 wd.NavigateToUrl("https://www.facebook.com/")

Add a Comment

Your email address will not be published. Required fields are marked *