diff --git a/docs/page-objects.md b/docs/page-objects.md index d4d69e72f..e63438f7a 100644 --- a/docs/page-objects.md +++ b/docs/page-objects.md @@ -60,8 +60,8 @@ var AngularHomepage = function() { await nameInput.sendKeys(name); }; - this.getGreetingText = async function() { - return await greeting.getText(); + this.getGreetingText = function() { + return greeting.getText(); }; // Not async, returns the element