fix wrong reference

This commit is contained in:
Eugenio Romano
2020-11-23 10:46:30 +00:00
parent fdd842edc0
commit 5e056362cf

View File

@@ -38,7 +38,7 @@ export class BrowserVisibility {
static async waitUntilElementIsLocated(elementToCheck: ElementFinder, waitTimeout: number = BrowserVisibility.DEFAULT_TIMEOUT): Promise<any> {
Logger.info(`Wait Until Element Is Located ${elementToCheck.locator().toString()} for ${waitTimeout}`);
return browser.wait(until.elementLocated(by.css(css)), waitTimeout, 'Element is not located ' + elementToCheck.locator());
return browser.wait(until.elementLocated(elementToCheck), waitTimeout, 'Element is not located ' + elementToCheck.locator());
}
static async waitUntilElementIsPresent(elementToCheck: ElementFinder, waitTimeout: number = BrowserVisibility.DEFAULT_TIMEOUT): Promise<any> {