Namespace webdriver.until
code »Classes
|
Global Functions
Creates a condition that will wait until the input driver is able to switch
to the designated frame. The target frame may be specified as:
- A numeric index into
window.frames
for the currently selected
frame.
- A
webdriver.WebElement
, which must reference a FRAME or IFRAME
element on the current page.
- A locator which may be used to first locate a FRAME or IFRAME on the
current page before attempting to switch to it.
Upon successful resolution of this condition, the driver will be left
focused on the new frame.
window.frames
for the currently selected
frame.
webdriver.WebElement
, which must reference a FRAME or IFRAME
element on the current page.
Parameters |
---|
|
Returns |
|
Creates a condition that waits for an alert to be opened. Upon success, the
returned promise will be fulfilled with the handle for the opened alert.
Returns |
---|
|
code »webdriver.until.elementIsDisabled ( element ) ⇒ !webdriver.until.Condition.<boolean>
Creates a condition that will wait for the given element to be disabled.
!webdriver.until.Condition.<boolean>
Parameters |
---|
|
Returns |
|
code »webdriver.until.elementIsEnabled ( element ) ⇒ !webdriver.until.Condition.<boolean>
Creates a condition that will wait for the given element to be enabled.
!webdriver.until.Condition.<boolean>
Parameters |
---|
|
Returns |
|
code »webdriver.until.elementIsNotSelected ( element ) ⇒ !webdriver.until.Condition.<boolean>
Creates a condition that will wait for the given element to be deselected.
!webdriver.until.Condition.<boolean>
Parameters |
---|
|
Returns |
|
code »webdriver.until.elementIsNotVisible ( element ) ⇒ !webdriver.until.Condition.<boolean>
Creates a condition that will wait for the given element to be in the DOM,
yet not visible to the user.
!webdriver.until.Condition.<boolean>
Parameters |
---|
|
Returns |
|
code »webdriver.until.elementIsSelected ( element ) ⇒ !webdriver.until.Condition.<boolean>
Creates a condition that will wait for the given element to be selected.
!webdriver.until.Condition.<boolean>
Parameters |
---|
|
Returns |
|
code »webdriver.until.elementIsVisible ( element ) ⇒ !webdriver.until.Condition.<boolean>
Creates a condition that will wait for the given element to become visible.
!webdriver.until.Condition.<boolean>
Parameters |
---|
|
Returns |
|
code »webdriver.until.elementLocated ( locator ) ⇒ !webdriver.until.Condition
Creates a condition that will loop until an element is
found
with the given locator.
!webdriver.until.Condition
found
with the given locator.Parameters |
---|
|
Returns |
|
code »webdriver.until.elementTextContains ( element, substr ) ⇒ !webdriver.until.Condition.<boolean>
Creates a condition that will wait for the given element's
visible text
to contain the given
substring.
!webdriver.until.Condition.<boolean>
visible text
to contain the given
substring.Parameters |
---|
|
Returns |
|
code »webdriver.until.elementTextIs ( element, text ) ⇒ !webdriver.until.Condition.<boolean>
Creates a condition that will wait for the given element's
visible text
to match the given
text
exactly.
!webdriver.until.Condition.<boolean>
visible text
to match the given
text
exactly.Parameters |
---|
|
Returns |
|
code »webdriver.until.elementTextMatches ( element, regex ) ⇒ !webdriver.until.Condition.<boolean>
Creates a condition that will wait for the given element's
visible text
to match a regular
expression.
!webdriver.until.Condition.<boolean>
visible text
to match a regular
expression.Parameters |
---|
|
Returns |
|
code »webdriver.until.elementsLocated ( locator ) ⇒ !webdriver.until.Condition
Creates a condition that will loop until at least one element is
found
with the given locator.
!webdriver.until.Condition
found
with the given locator.Parameters |
---|
|
Returns |
|
code »webdriver.until.stalenessOf ( element ) ⇒ !webdriver.until.Condition.<boolean>
Creates a condition that will wait for the given element to become stale. An
element is considered stale once it is removed from the DOM, or a new page
has loaded.
!webdriver.until.Condition.<boolean>
Parameters |
---|
|
Returns |
|
code »webdriver.until.titleContains ( substr ) ⇒ !webdriver.until.Condition.<boolean>
Creates a condition that will wait for the current page's title to contain
the given substring.
!webdriver.until.Condition.<boolean>
Parameters |
---|
|
Returns |
|
code »webdriver.until.titleIs ( title ) ⇒ !webdriver.until.Condition.<boolean>
Creates a condition that will wait for the current page's title to match the
given value.
!webdriver.until.Condition.<boolean>
Parameters |
---|
|
Returns |
|
code »webdriver.until.titleMatches ( regex ) ⇒ !webdriver.until.Condition.<boolean>
Creates a condition that will wait for the current page's title to match the
given regular expression.
!webdriver.until.Condition.<boolean>
Parameters |
---|
|
Returns |
|