You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/api/class-locatorassertions.md
+110-7Lines changed: 110 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# class: LocatorAssertions
2
-
* langs: java, python
2
+
* langs: java, python, js
3
3
4
-
The [LocatorAssertions] class provides assertion methods that can be used to make assertions about the [Locator] state in the tests. A new instance of [LocatorAssertions] is created by calling [`method: PlaywrightAssertions.assertThatLocator`]:
4
+
The [LocatorAssertions] class provides assertion methods that can be used to make assertions about the [Locator] state in the tests. A new instance of [LocatorAssertions] is created by calling [`method: PlaywrightAssertions.expectLocator`]:
5
5
6
6
```java
7
7
...
@@ -19,7 +19,7 @@ public class TestLocator {
19
19
```
20
20
21
21
## method: LocatorAssertions.not
22
-
* langs: java
22
+
* langs: java, js
23
23
- returns: <[LocatorAssertions]>
24
24
25
25
Makes the assertion check for the opposite condition. For example, this code tests that the Locator doesn't contain text `"error"`:
Ensures the [Locator] points to an element with given JavaScript property. Note that this property can be of a primitive type as well as a plain serializable JavaScript object.
557
+
Ensures the [Locator] points to an element with given JavaScript property. Note that this property can be
558
+
of a primitive type as well as a plain serializable JavaScript object.
Copy file name to clipboardExpand all lines: docs/src/api/class-pageassertions.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# class: PageAssertions
2
-
* langs: java, python
2
+
* langs: java, python, js
3
3
4
-
The [PageAssertions] class provides assertion methods that can be used to make assertions about the [Page] state in the tests. A new instance of [LocatorAssertions] is created by calling [`method: PlaywrightAssertions.assertThatPage`]:
4
+
The [PageAssertions] class provides assertion methods that can be used to make assertions about the [Page] state in the tests. A new instance of [LocatorAssertions] is created by calling [`method: PlaywrightAssertions.expectPage`]:
5
5
6
6
```java
7
7
...
@@ -20,7 +20,7 @@ public class TestPage {
20
20
21
21
22
22
## method: PageAssertions.not
23
-
* langs: java
23
+
* langs: java, js
24
24
- returns: <[PageAssertions]>
25
25
26
26
Makes the assertion check for the opposite condition. For example, this code tests that the page URL doesn't contain `"error"`:
0 commit comments