Here, this one below pops up ports table:
#include <IE.au3>
#include <GUIConstantsEx.au3>
#include <file.au3>
#include <array.au3>
;#NoTrayIcon
; non standard UDF's
#include "wd_core.au3"
#include "wd_helper.au3"
#include "wd_capabilities.au3"
#include <FileConstants.au3>
#include <MsgBoxConstants.au3>
#include <WinAPIFiles.au3>
#include <ConnView.au3>
Local $sDesiredCapabilities, $sSession
;#cs;===========
Local $portEdge = 9515
$aArray = _CV_GetExtendedTcpTable()
While 1
$_Port = _ArrayFindAll($aArray, $portEdge, 0, 0, 0, 0, 2)
If @error Then
ExitLoop
Else
$portEdge = $portEdge + 1
EndIf
WEnd
;#ce;=============
SetupEdge()
_WD_Startup()
$sSession = _WD_CreateSession($sDesiredCapabilities)
$citrix = _WD_Navigate($sSession, $citrixurl)
Func SetupEdge()
; Copy file to a user's directory
$TempDir="C:\Users\"& @UserName
FileCopy("C:\Program Files (x86)\AutoIt3\Include\msedgedriver.exe", $TempDir & "\EdgeDriver\", $FC_OVERWRITE + $FC_CREATEPATH)
$EdgeExe = $TempDir & "\EdgeDriver\msedgedriver.exe"
_WD_Option('Driver', $EdgeExe)
_WD_Option('Port', $portEdge)
$sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"ms:edgeOptions": {"w3c": true, "useAutomationExtension": false, "args":["start-maximized", "disable-infobars"] }}}}'
_WD_CapabilitiesStartup()
_WD_CapabilitiesAdd('alwaysMatch', 'msedge')
_WD_CapabilitiesAdd('excludeSwitches', 'enable-automation')
_WD_CapabilitiesAdd("acceptInsecureCerts", True)
_WD_CapabilitiesAdd("useAutomationExtension", false) ;,"setExperimentalOption": {"useAutomationExtension", false} Somehow this key is not supported
_WD_CapabilitiesAdd("args", "start-maximized")
_WD_CapabilitiesAdd("args", "disable-infobars")
_WD_CapabilitiesDump(@ScriptLineNumber) ; dump current Capabilities setting to console - only for testing in this demo
Local $sCapabilities = _WD_CapabilitiesGet()
Return $sCapabilities
EndFunc ;==>SetupEdge