Skip to content

Commit

Permalink
Fixed bug with Page.createComponent()
Browse files Browse the repository at this point in the history
  • Loading branch information
codegenic-works committed Sep 15, 2022
1 parent b5b16ea commit c8d4902
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "seleniumgenic",
"version": "1.0.2",
"version": "1.0.3",
"description": "Utilities to improve projects that utilize selenium-webdriver",
"main": "index.js",
"repository": {
Expand Down
3 changes: 1 addition & 2 deletions src/page-object.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ class Page {
createComponent({ by, componentClass = Component }) {
return new componentClass({
driver: this._driver,
by,
scope: this
by
});
}

Expand Down

0 comments on commit c8d4902

Please sign in to comment.