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

Method locator

seleniumbase/fixtures/base_case.py:10422–10425  ·  view source on GitHub ↗

Same as wait_for_element_present() - returns the element. The element does not need be visible (it may be hidden).

(self, selector, by="css selector", timeout=None)

Source from the content-addressed store, hash-verified

10420 return self.wait_for_element_present(selector, by=by, timeout=timeout)
10421
10422 def locator(self, selector, by="css selector", timeout=None):
10423 """Same as wait_for_element_present() - returns the element.
10424 The element does not need be visible (it may be hidden)."""
10425 return self.wait_for_element_present(selector, by=by, timeout=timeout)
10426
10427 def wait_for_selector(self, selector, by="css selector", timeout=None):
10428 """Same as wait_for_element_present() - returns the element.

Callers 15

mainFunction · 0.45
raw_nike_sync.pyFile · 0.45
raw_indeed_sync.pyFile · 0.45
raw_gitlab_sync.pyFile · 0.45
mainFunction · 0.45

Calls 1

Tested by 5

test_add_item_to_cartMethod · 0.36
test_add_item_to_cartMethod · 0.36
test_add_item_to_cartMethod · 0.36
test_add_item_to_cartMethod · 0.36
test_add_item_to_cartMethod · 0.36