-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getRect() is not available #5319
Comments
Facing the same issue, when upgraded to protractor version: 6.0.0 & selenium-webdriver: 4.0.0-alpha.5 with node version: 12.13.0 Replaced the elementFinder.getLocation() to elementFinder.getRect(), then getting following error,
|
@Dyadko Dyadko Found a workaround for this issue, instead of calling .getRect() on ElementFinder of Protractor, get the webElement from elementFinder like
|
Found a workaround for this issue, instead of calling .getRect() on ElementFinder of Protractor, get the webElement from elementFinder like
|
I see this is fixed on master now. @cnishina any plans to release 6.0.1 anytime soon? |
Bug report
As per https://github.com/angular/protractor/blob/master/CHANGELOG.md#600 ,
getSize()
andgetLocation()
inWebElement
are substituted bygetRect()
. But during runtime the method is not found.11.8.0
6.0.0
--
Chrome 76.0.3809.68
Windows 10Pro
Despite the release notes the
getSize()
method is available but fails inside itself.Output:
In other words, there is no ability to get element size and coordinates with protractor 6.0.0.
The text was updated successfully, but these errors were encountered: