Find a single element by css selector. Can also be used to wait for such an element to appear. :param selector: css selector, eg a[href], button[class*=close], a > img[src] :type selector: str :param timeout: Raise timeout exception w
(
self,
selector: str,
timeout: Union[int, float] = 10,
)
| 234 | return item |
| 235 | |
| 236 | async def select( |
| 237 | self, |
| 238 | selector: str, |
| 239 | timeout: Union[int, float] = 10, |
| 240 | ) -> element.Element: |
| 241 | """ |
| 242 | Find a single element by css selector. |
| 243 | Can also be used to wait for such an element to appear. |
| 244 | :param selector: css selector, |
| 245 | eg a[href], button[class*=close], a > img[src] |
| 246 | :type selector: str |
| 247 | :param timeout: |
| 248 | Raise timeout exception when after this many seconds nothing is found. |
| 249 | :type timeout: float,int |
| 250 | """ |
| 251 | return await self.wait_for(selector=selector, timeout=timeout) |
| 252 | |
| 253 | async def find_all( |
| 254 | self, |
no test coverage detected