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

Commit

Permalink
refactor(protractor): reorganize internal structure of elementFinder/…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
hankduan committed Jun 4, 2014
1 parent 7299155 commit 3c0e727
Show file tree
Hide file tree
Showing 2 changed files with 589 additions and 756 deletions.
Loading

0 comments on commit 3c0e727

Please sign in to comment.