User Tools

Site Tools


Sidebar

en:objects:browser:internal_params:disable_security_problem_dialogs

disable_security_problem_dialogs

disable_security_problem_dialogs($enable=true,$refresh=true); - allow or disable a dialog about security issues in the browser.

the input Function accepts parameters:

  • $enable – disable (true) or allow (false)
  • $refresh – whether to refresh (true) or not (false) the page after this command

    After testing, the function returns the result of its work to the script :
  • true – completed successfully
  • false – failed to complete

    PHP example:

    <?php $xhe_host = "127.0.0.1:7013";
     
    //connect the object to control the emulator, if not already connected
    if(!isset($path))
      $path = "../../../Templates/xweb_human_emulator.php";
    require($path);
     
    //Start
    echo "<hr> <font color = blue> browser->".basename(__FILE__)."</font> <hr>";
     
    //1
    echo "1.Disable security dialog:";
    echo $browser->disable_security_problem_dialogs(true)." n";
     
    //2
    echo "2.Let's go to the page with the security issues dialog:";
    echo $browser->navigate("http://wordstat.rambler.ru/wrds/")."<br>";
     
    //3
    echo "3.Let's resolve the security problem dialog:";
    echo $browser->disable_security_problem_dialogs(false)." n";
     
    //4
    echo "4.Let's go to the page with the security issues dialog:";
    echo $browser->navigate("http://wordstat.rambler.ru/wrds/")."<br>";
     
    //end
    echo "<hr> <br>";
     
    //Quit
    $app->quit();
    ?>

    Python example:

    # Additional paths
    import sys
    sys.path.insert(0, '../../../Templates PY/')
     
    xhe_host = "127.0.0.1:7010"
    from xweb_human_emulator import *
     
    # Start
    echo("<hr> <font color = blue> browser.xxxxxxxxx </font> <hr>")
     
    # 1
    echo("1.Disable security dialog:")
    echo(browser.disable_security_problem_dialogs(true), "
    ")
     
    # 2
    echo("2.Let's go to the page with the security issues dialog:")
    echo(browser.navigate("http://wordstat.rambler.ru/wrds/"), "<br>")
     
    # 3
    echo("3.Let's resolve the security issue dialog:")
    echo(browser.disable_security_problem_dialogs(false), "
    ")
     
    # 4
    echo("4.Let's go to the page with the security issues dialog:")
    echo(browser.navigate("http://wordstat.rambler.ru/wrds/"), "<br>")
     
    # end
    echo("<hr> <br>")
     
    # Quit
    app.quit()

    C# example:

    #region using
     
    using System;
    using System.Diagnostics;
    using System.Collections.Generic;
    using System.Linq;
    using System.IO;
    using System.Text;
    using System.Threading;
     
    using XHE;
    using XHE.XHE_DOM;
    using XHE.XHE_System;
    using XHE.XHE_Window;
    using XHE.XHE_Web;
     
    #endregion
     
     class Program: XHEScript
     {
    static void Main(string [] args)
    {
    //init XHE
    server = "127.0.0.1:7010";
    InitXHE();
     
    //Start
    echo("<hr> <font color = blue> browser.disable_security_problem_dialogs </font> <hr>");
     
    //1 step
    echo("1.Resolve security reports:");
    echo(browser.disable_security_problem_dialogs(false) + "<br>");
     
    //step 2
    echo("2.Let's go to Rambler.Wordstat:");
    echo(browser.navigate("http://wordstat.rambler.ru/wrds/") + "<br>");
     
    //step 3
    echo("3.Disable reporting security issues:");
    echo(browser.disable_security_problem_dialogs(true) + "<br>");
     
    //step 4
    echo("4.Let's go to Rambler.Wordstat:");
    echo(browser.navigate("http://wordstat.rambler.ru/wrds/"));
     
     
    //end
    echo("<hr> <br>");
     
    app.quit();
    }
    }

    Java Script example:

    //connect the object to control the emulator, if not already connected
    xhe_host = "127.0.0.1:7010";
    echo = require("../../../Templates JS/xweb_human_emulator.js");
     
    //Start
    echo("<hr> <font color = blue> browser.disable_security_problem_dialogs </font> <hr>");
     
    //1 step
    echo("1.Disable the security issue dialog:");
    echo(browser.disable_security_problem_dialogs(true) + " n");
     
    //step 2
    echo("2.Let's go to the page with the security issues dialog:");
    echo(browser.navigate("http://wordstat.rambler.ru/wrds/") + "<br>");
     
    //step 3
    echo("3.Let's resolve the security issue dialog:");
    echo(browser.disable_security_problem_dialogs(false) + " n");
     
    //step 4
    echo("4.Let's go to the page with the security issues dialog:");
    echo(browser.navigate("http://wordstat.rambler.ru/wrds/") + "<br>");
     
    //end
    echo("<hr> <br>");
     
    //Quit
    app.quit();
  • en/objects/browser/internal_params/disable_security_problem_dialogs.txt · Last modified: 2026/08/05 22:32 (external edit)