Skip to content

Commit

Permalink
fix: next page
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuineng committed Oct 9, 2023
1 parent 3dafde5 commit 9490e0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/next/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ module.exports = wd => {
'pagePopup'
].map(method => {
wd.addPromiseChainMethod(method, function(...params) {
return this.next(method, params);
const [func, ...args] = params;
return this.next(method, [{ func, args }]);
});
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "macaca-wd",
"version": "4.2.1",
"version": "4.2.2",
"description": "Macaca webdirver API for Node.js",
"keywords": [
"macaca",
Expand Down

0 comments on commit 9490e0b

Please sign in to comment.