Check for presence of the element before getText() in BreadcrumbPage PO. (#5776)

This commit is contained in:
Cristina Jalba 2020-06-16 00:04:50 +03:00 committed by GitHub
parent 7b52da55cb
commit 8fb93fe1c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ export class BreadcrumbPage {
}
async getActiveBreadCrumbItemName(): Promise<string> {
return this.currentItem.getText();
return BrowserActions.getText(this.currentItem);
}
}