Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AutomationTestForUnibee
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joshua Yu
AutomationTestForUnibee
Commits
265db36d
Commit
265db36d
authored
Jul 26, 2024
by
YuShijiaCode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update driver
parent
32523dca
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
2 deletions
+17
-2
LICENSE.txt
CommonStep/Web/Driver/chromeDiver_linux/LICENSE.txt
+0
-0
README.md
CommonStep/Web/Driver/chromeDiver_linux/README.md
+0
-0
chromedriver
CommonStep/Web/Driver/chromeDiver_linux/bin/chromedriver
+14
-0
install.js
CommonStep/Web/Driver/chromeDiver_linux/install.js
+0
-0
chromedriver.js
CommonStep/Web/Driver/chromeDiver_linux/lib/chromedriver.js
+0
-0
chromedriver
...eb/Driver/chromeDiver_linux/lib/chromedriver/chromedriver
+0
-0
package-lock.json
CommonStep/Web/Driver/chromeDiver_linux/package-lock.json
+0
-0
package.json
CommonStep/Web/Driver/chromeDiver_linux/package.json
+0
-0
seleniumWebDriver.js
CommonStep/Web/seleniumWebDriver.js
+3
-2
No files found.
CommonStep/Web/Driver/chromeDiver_
1
/LICENSE.txt
→
CommonStep/Web/Driver/chromeDiver_
linux
/LICENSE.txt
View file @
265db36d
File moved
CommonStep/Web/Driver/chromeDiver_
1
/README.md
→
CommonStep/Web/Driver/chromeDiver_
linux
/README.md
View file @
265db36d
File moved
CommonStep/Web/Driver/chromeDiver_linux/bin/chromedriver
0 → 100755
View file @
265db36d
#!/usr/bin/env node
const
path
=
require
(
"path"
);
const
spawn
=
require
(
"child_process"
).
spawn
;
const
binPath
=
require
(
path
.
join
(
__dirname
,
".."
,
"lib"
,
"chromedriver"
)).
path
;
const
args
=
process
.
argv
.
slice
(
2
);
const
cp
=
spawn
(
binPath
,
args
);
cp
.
stdout
.
pipe
(
process
.
stdout
);
cp
.
stderr
.
pipe
(
process
.
stderr
);
cp
.
on
(
"exit"
,
process
.
exit
);
process
.
on
(
"SIGTERM"
,
function
()
{
cp
.
kill
(
"SIGTERM"
);
process
.
exit
(
1
);
});
\ No newline at end of file
CommonStep/Web/Driver/chromeDiver_
1
/install.js
→
CommonStep/Web/Driver/chromeDiver_
linux
/install.js
View file @
265db36d
File moved
CommonStep/Web/Driver/chromeDiver_
1
/lib/chromedriver.js
→
CommonStep/Web/Driver/chromeDiver_
linux
/lib/chromedriver.js
View file @
265db36d
File moved
CommonStep/Web/Driver/chromeDiver_
1/bin
/chromedriver
→
CommonStep/Web/Driver/chromeDiver_
linux/lib/chromedriver
/chromedriver
View file @
265db36d
No preview for this file type
CommonStep/Web/Driver/chromeDiver_
1
/package-lock.json
→
CommonStep/Web/Driver/chromeDiver_
linux
/package-lock.json
View file @
265db36d
File moved
CommonStep/Web/Driver/chromeDiver_
1
/package.json
→
CommonStep/Web/Driver/chromeDiver_
linux
/package.json
View file @
265db36d
File moved
CommonStep/Web/seleniumWebDriver.js
View file @
265db36d
let
log4js
=
require
(
'log4js'
);
const
chrome
=
require
(
"selenium-webdriver/chrome"
);
const
{
By
}
=
require
(
"selenium-webdriver"
);
const
chromedriver
=
require
(
"./Driver/chromeDiver_
1
"
);
const
chromedriver
=
require
(
"./Driver/chromeDiver_
linux
"
);
let
log
=
log4js
.
getLogger
(
'jppSeleniumWebdriver'
);
...
...
@@ -13,7 +13,8 @@ exports.getDriver = function (webdriver, browser) {
switch
(
browser
)
{
case
'chrome'
:
let
chrome
=
require
(
'selenium-webdriver/chrome'
);
let
chromedriver
=
require
(
'./Driver/chromedriver'
);
// let chromedriver = require('./Driver/chromedriver');
let
chromedriver
=
require
(
'./Driver/chromeDiver_linux'
);
// let chromedriver = require('chromedriver');
// if(chrome.getDefaultService().isRunning()){
// chrome.getDefaultService().kill();
...
...
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