Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | List of all members
playwright.sync_api._generated.PageAssertions Class Reference
Inheritance diagram for playwright.sync_api._generated.PageAssertions:
Inheritance graph
[legend]
Collaboration diagram for playwright.sync_api._generated.PageAssertions:
Collaboration graph
[legend]

Public Member Functions

None to_have_title (self, typing.Union[typing.Pattern[str], str] title_or_reg_exp, *typing.Optional[float] timeout=None)
 
None not_to_have_title (self, typing.Union[typing.Pattern[str], str] title_or_reg_exp, *typing.Optional[float] timeout=None)
 
None to_have_url (self, typing.Union[str, typing.Pattern[str]] url_or_reg_exp, *typing.Optional[float] timeout=None, typing.Optional[bool] ignore_case=None)
 
None not_to_have_url (self, typing.Union[typing.Pattern[str], str] url_or_reg_exp, *typing.Optional[float] timeout=None, typing.Optional[bool] ignore_case=None)
 
- Public Member Functions inherited from playwright._impl._sync_base.SyncBase
None __init__ (self, Any impl_obj)
 
str __str__ (self)
 
None on (self, Any event, Any f)
 
None once (self, Any event, Any f)
 
None remove_listener (self, Any event, Any f)
 
- Public Member Functions inherited from playwright._impl._impl_to_api_mapping.ImplWrapper
str __repr__ (self)
 

Additional Inherited Members

- Protected Member Functions inherited from playwright._impl._sync_base.SyncBase
Any _sync (self, Union[Coroutine[Any, Any, Any], Generator[Any, Any, Any]] coro)
 
Callable[..., None] _wrap_handler (self, Union[Callable[..., Any], Any] handler)
 
- Protected Attributes inherited from playwright._impl._sync_base.SyncBase
 _dispatcher_fiber
 
 _loop
 
- Protected Attributes inherited from playwright._impl._impl_to_api_mapping.ImplWrapper
 _impl_obj
 

Member Function Documentation

◆ not_to_have_title()

None playwright.sync_api._generated.PageAssertions.not_to_have_title (   self,
typing.Union[typing.Pattern[str], str]  title_or_reg_exp,
*typing.Optional[float]   timeout = None 
)
PageAssertions.not_to_have_title

The opposite of `page_assertions.to_have_title()`.

Parameters
----------
title_or_reg_exp : Union[Pattern[str], str]
    Expected title or RegExp.
timeout : Union[float, None]
    Time to retry the assertion for in milliseconds. Defaults to `5000`.

◆ not_to_have_url()

None playwright.sync_api._generated.PageAssertions.not_to_have_url (   self,
typing.Union[typing.Pattern[str], str]  url_or_reg_exp,
*typing.Optional[float]   timeout = None,
typing.Optional[bool]   ignore_case = None 
)
PageAssertions.not_to_have_url

The opposite of `page_assertions.to_have_url()`.

Parameters
----------
url_or_reg_exp : Union[Pattern[str], str]
    Expected URL string or RegExp.
timeout : Union[float, None]
    Time to retry the assertion for in milliseconds. Defaults to `5000`.
ignore_case : Union[bool, None]
    Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
    expression flag if specified.

◆ to_have_title()

None playwright.sync_api._generated.PageAssertions.to_have_title (   self,
typing.Union[typing.Pattern[str], str]  title_or_reg_exp,
*typing.Optional[float]   timeout = None 
)
PageAssertions.to_have_title

Ensures the page has the given title.

**Usage**

```py
import re
from playwright.sync_api import expect

# ...
expect(page).to_have_title(re.compile(r\".*checkout\"))
```

Parameters
----------
title_or_reg_exp : Union[Pattern[str], str]
    Expected title or RegExp.
timeout : Union[float, None]
    Time to retry the assertion for in milliseconds. Defaults to `5000`.

◆ to_have_url()

None playwright.sync_api._generated.PageAssertions.to_have_url (   self,
typing.Union[str, typing.Pattern[str]]  url_or_reg_exp,
*typing.Optional[float]   timeout = None,
typing.Optional[bool]   ignore_case = None 
)
PageAssertions.to_have_url

Ensures the page is navigated to the given URL.

**Usage**

```py
import re
from playwright.sync_api import expect

# ...
expect(page).to_have_url(re.compile(\".*checkout\"))
```

Parameters
----------
url_or_reg_exp : Union[Pattern[str], str]
    Expected URL string or RegExp.
timeout : Union[float, None]
    Time to retry the assertion for in milliseconds. Defaults to `5000`.
ignore_case : Union[bool, None]
    Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
    expression parameter if specified. A provided predicate ignores this flag.

The documentation for this class was generated from the following file: