Skip to content

Commit 303a3bf

Browse files
committed
Addresses #3
1 parent d9e8ddd commit 303a3bf

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

Selenium.dyalog

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
:If 0=⎕NC'SETTINGS' ApplySettings settings :EndIf
7878
:EndIf
7979
browserSETTINGS.BROWSER
80-
filesbrowser SetUsing pathDLLPATH
80+
filesbrowser SetUsing (pathDLLPATH)SETTINGS.Newtonpath
8181
'CURRENTBROWSER'DefaultTo'' Avoid VALUE ERRORs
8282
⎕EX'BROWSER'/browserCURRENTBROWSER We want to switch or need a new one
8383
:Trap 0 Try to find out if Browser is alive - not always reliable
@@ -655,7 +655,8 @@
655655
:EndIf
656656
657657

658-
{files}browser SetUsing path;net ⍝ Set the path to the Selenium DLLs
658+
{files}browser SetUsing path;net ⍝ S)SETTINGS:Newtonpathet the path to the Selenium DLLs
659+
(path Newtonpath)path
659660
:If path'' pathSourcePath ⎕THIS
660661
:Else pathpath,(~'/\'/path)/'/' :EndIf
661662
⎕USING0⎕USING
@@ -671,7 +672,7 @@
671672
⎕USING,'OpenQA.Selenium,',files
672673
⎕USING,'OpenQA.Selenium.',browser,',',files
673674
⎕USING,'OpenQA.Selenium.Support,',files
674-
⎕USING,'Newtonsoft.Json,',(11⎕nparts ¯1path),'more/newtonsoft_120r3-',net,'Newtonsoft.Json.dll' one additional library required with .Net Core
675+
⎕USING,'Newtonsoft.Json,',(11⎕nparts ¯1path),Newtonpath,net,'Newtonsoft.Json.dll'
675676
make sure we use the correct path-separator (⎕USING)
676677
:If 'W'=11'.'⎕WG'APLVersion'
677678
⎕USING{'\'@('/'=)}¨⎕USING
@@ -768,6 +769,7 @@
768769
DEFAULTBROWSERref{6::2 1}'BROWSER'DEFAULTBROWSER
769770
PORTref{6::2 1}'PORT'PORT
770771
BROWSEROPTIONS no options found...
772+
NEWTONPATHsettings.Newtonpath
771773
:Select ref.⎕NC'Options'
772774
:CaseList 2 9 BROWSEROPTIONSref.Options
773775
:EndSelect

settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,7 @@
9393
},
9494
"PORT": 8080,
9595
"default": "Chrome83",
96-
"DLLPATH": "c:/devt/Selenium/Drivers/WebDriver4"
96+
"DLLPATH": "c:/devt/Selenium/Drivers/WebDriver4",
97+
"Newtonpath":"more/newtonsoft_120r3-",
98+
"Newtonpath_cmnt":"path needs to be a SUBFOLDER of DLLPATH!"
9799
}

0 commit comments

Comments
 (0)