Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit ee8ec91

Browse files
authored
fix(element): set variables to public in constructor (#3417)
closes #3414
1 parent 7266902 commit ee8ec91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/element.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ export class ElementArrayFinder extends WebdriverWebElement {
9797
getWebElements: Function;
9898

9999
constructor(
100-
private browser_: Browser, getWebElements?: Function,
101-
private locator_?: any,
100+
public browser_: Browser, getWebElements?: Function,
101+
public locator_?: any,
102102
public actionResults_: webdriver.promise.Promise<any> = null) {
103103
super();
104104
this.getWebElements = getWebElements || null;
@@ -716,7 +716,7 @@ export class ElementFinder extends WebdriverWebElement {
716716
errorFn: Function) => webdriver.promise.Promise<any> = null;
717717

718718
constructor(
719-
private browser_: Browser, elementArrayFinder: ElementArrayFinder) {
719+
public browser_: Browser, elementArrayFinder: ElementArrayFinder) {
720720
super();
721721
if (!elementArrayFinder) {
722722
throw new Error('BUG: elementArrayFinder cannot be empty');

0 commit comments

Comments
 (0)