-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunOpenFin.bat
More file actions
32 lines (23 loc) · 834 Bytes
/
RunOpenFin.bat
File metadata and controls
32 lines (23 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@ECHO OFF
REM This script is intended to be used for launching OpenFin Runtime by ChromeDriver or node of Selenium Grid server.
REM It parses --remote-debugging-port and --config parameters passed by ChromeDriver and passes them to OpenFinRVM.exe
REM %openfinLocation% needs to point to location of OpenFin install directory.
REM devtools_port should NOT be set in app manifest json file
SETLOCAL ENABLEDELAYEDEXPANSION
SETLOCAL ENABLEEXTENSIONS
SET debuggingPort=0
:loop
IF "%1"=="" GOTO cont
SET opt=%1
IF "%opt%" == "--remote-debugging-port" (
SET debuggingPort=%2
)
IF "%opt%" == "--config" (
SET startupURL=%2
)
SHIFT & GOTO loop
:cont
echo %debuggingPort%
echo %startupURL%
%LOCALAPPDATA%\OpenFin\OpenFinRVM.exe --config=%startupURL% --runtime-arguments="--remote-debugging-port=%debuggingPort%"
ENDLOCAL