Skip to content

Commit b1e4c6d

Browse files
committed
fixes
1 parent e228089 commit b1e4c6d

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

lib/core/clickElement.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ const {baseOptions, urlPathes} = getLocalEnv()
44

55
module.exports = function(request) {
66
return async function(sessionId, elementId, button = {button: 0}, options) {
7-
87
if(!options) options = {...baseOptions}
9-
108
const {body} = await request.post(urlPathes.clickElement(sessionId, elementId), JSON.stringify(button), options)
11-
129
return body
1310
}
1411
}

lib/core/cookieGetAll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const getLocalEnv = require('./env')
22

3-
const {baseOptions, urlPathes} = getLocalEnv()
3+
const {baseOptions, urlPathes} = getLocalEnv()
44

55
module.exports = function(request) {
66
return async function(sessionId, options) {

lib/core/getCurrentWindowHandles.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
const getLocalEnv = require('./env')
22

3-
const {baseOptions, urlPathes} = getLocalEnv()
3+
const {baseOptions, urlPathes} = getLocalEnv()
44

55
module.exports = function name(request) {
66
return async function(sessionId, options) {
7-
87
if(!options) options = {...baseOptions}
9-
108
const {body} = await request.get(urlPathes.windowHandles(sessionId), null, options)
11-
129
return body
1310
}
14-
}
11+
}

lib/core/syncWithDOM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const getLocalEnv = require('./env')
33
const {baseOptions, urlPathes} = getLocalEnv()
44

55
module.exports = function(request) {
6-
return async function syncWithDOM(sessionId, timeout, options) {
6+
return async function syncWithDOM(sessionId, options) {
77

88
if(!options) options = {...baseOptions}
99

lib/core/toParentFrame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const getLocalEnv = require('./env')
33
const {baseOptions, urlPathes} = getLocalEnv()
44

55
module.exports = function(request) {
6-
return async function(sessionId, elementId, options) {
6+
return async function(sessionId, options) {
77
if(!options) options = {...baseOptions}
88
const requestBody = {id: null}
99
const {body} = await request.post(urlPathes.parentFrame(sessionId), JSON.stringify(requestBody), options)

0 commit comments

Comments
 (0)