Assertions
== (equals)
Assert that the element on the left is equal to the value on the right.
1:
|
|
!= (does not equal)
Assert that the element on the left is not equal to the value on the right.
1:
|
|
=== (aliased as is)
Assert that the value on the left is equal to the value on right. * Note: does not use retry-ability. Equivalent to Assert.Equals.
1:
|
|
*= (one of many equals)
Assert that at least one element in a list equals a value.
1:
|
|
*!= (none equals)
Assert that none of the items in a list equals a value.
1:
|
|
contains
Assert that one string contains another.
1:
|
|
containsInsensitive
Assert that one string contains (case insensitive) another.
1:
|
|
notContains
Assert that one string does not contains another.
1:
|
|
count
Assert there are X
items of given css selector.
1:
|
|
=~ (regex match)
Assert that an element regex
matches a value.
1: 2: 3: 4: |
|
!=~ (regex match)
Assert that an element does not regex
match a value.
1: 2: 3: 4: |
|
*~ (one of many regex match)
Assert that one of many element regex
matches a value.
1:
|
|
on
Assert that the browser is currently on a url. Falls back to using String.Contains
after page timeout.
1: 2: |
|
onn
Same as on
but does not fall back to using String.Contains
.
1: 2: |
|
selected
Assert that a radio or checkbox is selected.
1:
|
|
deselected
Assert that a radio or checkbox is not selected.
1:
|
|
displayed
Assert that an element is displayed on the screen. (Note: Will not walk up the dom. If a parent container is hidden this may give the wrong results, try adding :visible to selector)
1:
|
|
notDisplayed
Assert that an element is not displayed on the screen. (Note: Will not walk up the dom. If a parent container is hidden this may give the wrong results, try adding :visible to selector)
1:
|
|
enabled
Assert that an element is enabled.
1:
|
|
disabled
Assert that an element is not enabled.
1:
|
|
fadedIn
Returns true/false if element has finished fading in and is shown.
1: 2: |
|
from canopy