Forum Discussion
Hassan_Ballan
Champion Level 1
2 months agoJavaScript example to run browser with required command line argument and is specific to Chrome, if your application accept command line to pass to the embedded browser and it is Chrome you can try it.
// Run Chrome with command line to switch off security
function RunChromeSecurityDisabled()
{
// Get user profile path, and build command line argument
USERPROFILE = aqEnvironment.GetEnvironmentVariable("USERPROFILE");
CommandLine = "--disable-web-security --user-data-dir=\"" + USERPROFILE + "\\AppData\\Local\\Google\\Chrome\\User Data\\Default\" --disable-site-isolation-trials --disable-hang-monitor --disable-renderer-accessibility";
Log.Message("Chrome CommandLine = " + CommandLine);
// Run Chrome with command line
Browsers.Item("chrome").RunOptions = CommandLine;
Browsers.Item("chrome").Run();
}
mohcine
2 months agoNew Contributor
Exactly, I have an application that is embedded in an browser Edge, I will check with the developer