Skip to content

Commit

Permalink
Addresses #3
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaas2 committed Aug 10, 2020
1 parent d9e8ddd commit 303a3bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Selenium.dyalog
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
:If 0=⎕NC'SETTINGS' ApplySettings settings :EndIf
:EndIf
browserSETTINGS.BROWSER
filesbrowser SetUsing pathDLLPATH
filesbrowser SetUsing (pathDLLPATH)SETTINGS.Newtonpath
'CURRENTBROWSER'DefaultTo'' Avoid VALUE ERRORs
⎕EX'BROWSER'/browserCURRENTBROWSER We want to switch or need a new one
:Trap 0 Try to find out if Browser is alive - not always reliable
Expand Down Expand Up @@ -655,7 +655,8 @@
:EndIf

{files}browser SetUsing path;net ⍝ Set the path to the Selenium DLLs
{files}browser SetUsing path;net ⍝ S)SETTINGS:Newtonpathet the path to the Selenium DLLs
(path Newtonpath)path
:If path'' pathSourcePath ⎕THIS
:Else pathpath,(~'/\'/path)/'/' :EndIf
⎕USING0⎕USING
Expand All @@ -671,7 +672,7 @@
⎕USING,'OpenQA.Selenium,',files
⎕USING,'OpenQA.Selenium.',browser,',',files
⎕USING,'OpenQA.Selenium.Support,',files
⎕USING,'Newtonsoft.Json,',(11⎕nparts ¯1path),'more/newtonsoft_120r3-',net,'Newtonsoft.Json.dll' one additional library required with .Net Core
⎕USING,'Newtonsoft.Json,',(11⎕nparts ¯1path),Newtonpath,net,'Newtonsoft.Json.dll'
make sure we use the correct path-separator (⎕USING)
:If 'W'=11'.'⎕WG'APLVersion'
⎕USING{'\'@('/'=)}¨⎕USING
Expand Down Expand Up @@ -768,6 +769,7 @@
DEFAULTBROWSERref{6::2 1}'BROWSER'DEFAULTBROWSER
PORTref{6::2 1}'PORT'PORT
BROWSEROPTIONS no options found...
NEWTONPATHsettings.Newtonpath
:Select ref.⎕NC'Options'
:CaseList 2 9 BROWSEROPTIONSref.Options
:EndSelect
Expand Down
4 changes: 3 additions & 1 deletion settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,7 @@
},
"PORT": 8080,
"default": "Chrome83",
"DLLPATH": "c:/devt/Selenium/Drivers/WebDriver4"
"DLLPATH": "c:/devt/Selenium/Drivers/WebDriver4",
"Newtonpath":"more/newtonsoft_120r3-",
"Newtonpath_cmnt":"path needs to be a SUBFOLDER of DLLPATH!"
}

0 comments on commit 303a3bf

Please sign in to comment.