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: browser->".basename(__FILE__)."
    "; //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/")."
    "; //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/")."
    "; //end echo "

    "; //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("
    browser.xxxxxxxxx
    ") # 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/"), "
    ") # 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/"), "
    ") # end echo("

    ") # 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("
    browser.disable_security_problem_dialogs
    "); //1 step echo("1.Resolve security reports:"); echo(browser.disable_security_problem_dialogs(false) + "
    "); //step 2 echo("2.Let's go to Rambler.Wordstat:"); echo(browser.navigate("http://wordstat.rambler.ru/wrds/") + "
    "); //step 3 echo("3.Disable reporting security issues:"); echo(browser.disable_security_problem_dialogs(true) + "
    "); //step 4 echo("4.Let's go to Rambler.Wordstat:"); echo(browser.navigate("http://wordstat.rambler.ru/wrds/")); //end echo("

    "); 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("
    browser.disable_security_problem_dialogs
    "); //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/") + "
    "); //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/") + "
    "); //end echo("

    "); //Quit app.quit();