Skip to content

Commit dfdb6c3

Browse files
weitehowenjunche
authored andcommitted
AUT-97 allow selenium to work on Mac. (#5)
* AUT-97 rebase to master * AUT-97 updated scripts for selenium on mac
1 parent 8393a72 commit dfdb6c3

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

RunOpenFin.sh

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
DEVTOOLS_PORT=0
4+
CONFIG=app.json
5+
6+
for var in "$@"
7+
do
8+
if [[ $var == --remote-debugging-port* ]] ;
9+
then
10+
DEVTOOLS_PORT=${var#*=}
11+
echo "devtools_port=$DEVTOOLS_PORT"
12+
fi
13+
14+
if [[ $var == --config* ]] ;
15+
then
16+
CONFIG=${var#*=}
17+
echo "startup_url==$CONFIG"
18+
fi
19+
done
20+
21+
openfin -l -c $CONFIG -p $DEVTOOLS_PORT
22+

chromedriver_linux64

7.6 MB
Binary file not shown.

chromedriver_mac64

10.9 MB
Binary file not shown.

test/config.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@
55
"use strict";
66

77
module.exports = (function () {
8+
var isWinOS = (process.platform == 'win32');
9+
var launch_target = isWinOS ? 'RunOpenFin.bat' : './RunOpenFin.sh';
10+
var launch_config = isWinOS ? 'http://localhost:8000/app.json' : './test/app.json';
811
var config = {
912
desiredCapabilities: {
1013
browserName: 'chrome',
1114
chromeOptions: {
1215
extensions: [],
13-
binary: 'RunOpenFin.bat',
14-
args: ['--config=http://localhost:8000/app.json']
16+
binary: launch_target,
17+
args: ['--config=' + launch_config]
1518
}
1619
},
1720
remoteDriverHost: "localhost",

0 commit comments

Comments
 (0)