Implement visible option for Page.waitFor method

This patch adds a 'visible' option to the Page.waitFor method, making
it possible to wait for the element to become actually visible.

References #89, #91.
This commit is contained in:
Andrey Lushnikov
2017-07-21 00:58:38 -07:00
parent 139b9e9b6d
commit 52de75742b
8 changed files with 117 additions and 55 deletions

View File

@@ -3,5 +3,5 @@
- `arg1` <[string]>
- `arg2` <[string]>
#### foo.test(fileNames)
- `filePaths` <[Array]>
#### foo.test(...files)
- `...filePaths` <[string]>

View File

@@ -1,7 +1,7 @@
class Foo {
constructor(arg1, arg3) {
constructor(arg1, arg3 = {}) {
}
test(filePaths) {
test(...filePaths) {
}
}

View File

@@ -1,4 +1,4 @@
[MarkDown] Method Foo.constructor() fails to describe its parameters:
- Argument not found: arg3
- Non-existing argument found: arg2
[MarkDown] Heading arguments for "foo.test(fileNames)" do not match described ones, i.e. "fileNames" != "filePaths"
[MarkDown] Heading arguments for "foo.test(...files)" do not match described ones, i.e. "...files" != "...filePaths"