1
votes

using the following QTP command to launch google.com page but I want to pass this request through the proxy as all the external links needs to go through proxy due to corporate policies.

SystemUtil.Run "C:\Program Files\Google\Chrome\Application\chrome.exe", "google.com"

What is the best way to set proxy is it possible to set proxy with scripts?

1

1 Answers

1
votes

According to this page you can send the proxy-server to chrome on the command line

SystemUtil.Run "C:\Program Files\Google\Chrome\Application\chrome.exe", "--proxy-server=YOUR_PROXY google.com"