Minas's avatar
Minas
Occasional Visitor
2 months ago
Status:
New Idea

iFrame-based application.

When working with iFrame based application we need to give with specific command line arguments which if not used results in errors. If the command line arguments are used a message is received indicating "You are using an unsupported command-line flage: --disable-site-isolation-trials. Stability and security will suffer".

Can this be addressed to allow us to work with TestComplete seamlessly ?

B.R
Minas

1 Comment

  • Refer to https://support.smartbear.com/testcomplete/docs/app-testing/web/common-tasks/frames.html for the security implication, you can ignore the browser warning message and when you navigate to a different page it will disappear.

    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();
    }
    

    💬 If a response helped you out, don’t forget to Like it! And if it answered your question, mark it as the solution so others can benefit too.