Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/07/2021 in all areas

  1. new version under spoiler: Currently function: _Example_Danp2() Creates such Capabilities JSON string { "capabilities":{ "alwaysMatch":{ "acceptInsecureCerts":true }, "firstMatch":[ { "browserName":"chrome", "goog:chromeOptions":{ "args":[ "start-maximized", "disable-infobars", "user-data-dir=C:\\Users\\Szef\\AppData\\Local\\Google\\Chrome\\User Data\\Default", "--profile-directory=Default" ], "prefs":{ "download.default_directory":"Z:\\!!!_SVN_AU3\\UDF_Forum\\Other_Members\\Test" } } }, { "browserName":"firefox", "moz:firefoxOptions":{ "args":[ "-profile", "C:\\Users\\Szef\\AppData\\Local\\Mozilla\\Firefox\\Profiles" ] } } ] } } using this particular JSON string I was able to add new feature: .... .... .... Local $_CHOOSEN_DRIVER = '' If $IDYES = MsgBox($MB_YESNO + $MB_TOPMOST + $MB_ICONQUESTION + $MB_DEFBUTTON1, "Question", _ "Wchich browser do you wan to use ?" & @CRLF & @CRLF & _ "[YES] = FireFox [NO] = Chrome") Then $_CHOOSEN_DRIVER = $_FIREFOX_DRIVER Else $_CHOOSEN_DRIVER = $_CHROME_DRIVER EndIf .... .... .... _WD_Option('Driver', $_CHOOSEN_DRIVER) If $_CHOOSEN_DRIVER = $_FIREFOX_DRIVER Then _WD_Option('Port', 4444) If $_CHOOSEN_DRIVER = $_CHROME_DRIVER Then _WD_Option('Port', 9515) _WD_Startup() .... .... This shows how to use different Browsers with the same Capabilities JSON string.
    1 point
  2. That's brilliant! Thank you! I have to admit if you hadn't called it "Union" mode this wouldn't make sense I don't know these rules but I'll look them up Thx again
    1 point
  3. You're welcome. Best of luck developing it further.
    1 point
  4. From the helpfile of ConsoleWrite: This does not write to a DOS console unless the script is compiled as a console application. Onwards to the helpfile text on "Compiling Scripts with Aut2Exe", which tells us that we can run the Aut2Exe compiler with the /console switch to make is a console application. If you are running from SciTE, you can just press ctrl+F7, which will bring up the Compile dialog, and check the "Create CUI instead of GUI EXE" checkbox before you press the "Compile Script" button. Works on my ConsoleWrite'ing hello world testscript
    1 point
×
×
  • Create New...