MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / select

Method select

seleniumbase/undetected/cdp_driver/tab.py:236–251  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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,

Callers 3

is_element_presentMethod · 0.95
is_element_visibleMethod · 0.95
get_element_rectMethod · 0.95

Calls 1

wait_forMethod · 0.95

Tested by

no test coverage detected