-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#63 - extending check step for auto test assertions
WIP - more details at #63 - add visible() function to check whether element is visible - this is a similar to present() but something that exists in the HTML DOM may not be visible (for example if the display property is none or visibility property is hidden) - the visible() function addresses the use case for explicitly checking that an element exists on the webpage and is visibly rendered to user - update the count() function’s supporting function for casperjs to use casperjs in-built function to maximize compatibility, the supporting function for chrome mode is unchanged and uses the definition by Puppeteer’s Dev Lead Andrey Lushnikov - puppeteer/puppeteer#545
- Loading branch information
Showing
4 changed files
with
72 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ea8da9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in commit comment, below is the intended meaning -
For count() function, the supporting function for chrome mode is unchanged, it basically queries using DevTools Protocol accordingly (whether XPath or CSS selector is provided), and returns the count.
For visible() function, the supporting function for chrome mode uses the definition by Puppeteer’s Dev Lead Andrey Lushnikov () checking opacity in addition to CasperJS's only checking visibility and display - puppeteer/puppeteer#545