Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
3384e9f2
Unverified
Commit
3384e9f2
authored
Sep 24, 2020
by
picklesrus
Committed by
GitHub
Sep 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Back out unrelated changes.
parent
a1593abd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
test/integration/selenium-helpers.js
test/integration/selenium-helpers.js
+1
-12
No files found.
test/integration/selenium-helpers.js
View file @
3384e9f2
const
webdriver
=
require
(
'
selenium-webdriver
'
);
const
bindAll
=
require
(
'
lodash.bindall
'
);
require
(
'
chromedriver
'
);
const
chromedriverVersion
=
require
(
'
chromedriver
'
).
version
;
const
headless
=
process
.
env
.
SMOKE_HEADLESS
||
false
;
const
remote
=
process
.
env
.
SMOKE_REMOTE
||
false
;
...
...
@@ -63,23 +62,13 @@ class SeleniumHelper {
return
driver
;
}
getChromeVersionNumber
()
{
const
versionFinder
=
/
\d
+
\.\d
+/
;
const
versionArray
=
versionFinder
.
exec
(
chromedriverVersion
);
if
(
versionArray
===
null
)
{
throw
new
Error
(
'
couldn
\'
t find version of chromedriver
'
);
}
return
versionArray
[
0
];
}
getSauceDriver
(
username
,
accessKey
,
name
)
{
const
chromeVersion
=
this
.
getChromeVersionNumber
();
// Driver configs can be generated with the Sauce Platform Configurator
// https://wiki.saucelabs.com/display/DOCS/Platform+Configurator
let
driverConfig
=
{
browserName
:
'
chrome
'
,
platform
:
'
macOS 10.14
'
,
version
:
chromeVersion
version
:
'
84.0
'
};
var
driver
=
new
webdriver
.
Builder
()
.
withCapabilities
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment