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

Commit 3c0e727

Browse files
committed
refactor(protractor): reorganize internal structure of elementFinder/webelement
- Allow chaining of actions (i.e. element(By.x).clear().sendKeys('abc)) - first(), last(), and get(index) are not executed immediately, allowing them to be placed in page objects - Rework the way that elementFinder and wrappedWebElement is represented - Breaking changes: - element.all is chained differently Before: element(By.x).element.all(By.y) Now: element(By.x).all(By.y) However, using element.all without chaining did not change, i.e. element.all(By.x) - Changed the way for retrieving underlying webElements Before: element(By.x).find(), element(By.x).findElement(By.y), and element(By.x).findElements(By.y) Now: element(By.x).getWebElement(), element(By.x).element(By.y).getWebElement(), and element(By.x).element(By.y).getWebElements(), respectively - browser.findElement returns a raw WebElement so $, $$, and evaluate will no longer be available
1 parent 7299155 commit 3c0e727

File tree

2 files changed

+589
-756
lines changed

2 files changed

+589
-756
lines changed

0 commit comments

Comments
 (0)