Alias to query_selector_all or find_elements_by_text, depending on whether text= is set or selector= is set. :param selector: css selector string :type selector: str
(
self,
text: Optional[str] = "",
selector: Optional[str] = "",
timeout: Optional[Union[int, float]] = 10,
)
| 1914 | ) |
| 1915 | |
| 1916 | def __call__( |
| 1917 | self, |
| 1918 | text: Optional[str] = "", |
| 1919 | selector: Optional[str] = "", |
| 1920 | timeout: Optional[Union[int, float]] = 10, |
| 1921 | ): |
| 1922 | """ |
| 1923 | Alias to query_selector_all or find_elements_by_text, |
| 1924 | depending on whether text= is set or selector= is set. |
| 1925 | :param selector: css selector string |
| 1926 | :type selector: str |
| 1927 | """ |
| 1928 | return self.wait_for( |
| 1929 | selector=selector, text=text, timeout=timeout |
| 1930 | ) |
| 1931 | |
| 1932 | def __eq__(self, other: Tab): |
| 1933 | try: |