Forum Discussion
HKosova
Alumni
9 years agoYou can specify command-line arguments for a browser in the RunOptions before running the browser. Note that --disable-web-security also requires --user-data-dir=<ProfilePath>.
Browsers.Item("chrome").RunOptions = "--disable-web-security --user-data-dir=""C:\Chrome test session""" Call Browsers.Item("chrome").Run("https://smartbear.com")
More info: Launching Browsers
- AshokKumarSahoo9 years agoContributor
HKosovaThank you for your reply.I tried to use your code ,but it's not working for me.Please refer below screen shot for your reference.could you please guide me what might be the reason for this error.I would love your code which you used 'Runoptions' property.could you please explain more on <profile path> on this parameter arguments.Thanks.
Thanks & Regards,
Ashok