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

Method click_chain

seleniumbase/fixtures/base_case.py:869–886  ·  view source on GitHub ↗

This method clicks on a list of elements in succession. @Params selectors_list - The list of selectors to click on. by - The type of selector to search by (Default: "css selector"). timeout - How long to wait for the selector to be visible. spacing - The amoun

(
        self, selectors_list, by="css selector", timeout=None, spacing=0
    )

Source from the content-addressed store, hash-verified

867 self.__extra_actions.append(action)
868
869 def click_chain(
870 self, selectors_list, by="css selector", timeout=None, spacing=0
871 ):
872 """This method clicks on a list of elements in succession.
873 @Params
874 selectors_list - The list of selectors to click on.
875 by - The type of selector to search by (Default: "css selector").
876 timeout - How long to wait for the selector to be visible.
877 spacing - The amount of time to wait between clicks (in seconds)."""
878 self.__check_scope()
879 if not timeout:
880 timeout = settings.SMALL_TIMEOUT
881 if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT:
882 timeout = self.__get_new_timeout(timeout)
883 for selector in selectors_list:
884 self.click(selector, by=by, timeout=timeout)
885 if spacing > 0:
886 time.sleep(spacing)
887
888 def update_text(
889 self, selector, text, by="css selector", timeout=None, retry=False

Callers

nothing calls this directly

Calls 4

__check_scopeMethod · 0.95
__get_new_timeoutMethod · 0.95
clickMethod · 0.95
sleepMethod · 0.45

Tested by

no test coverage detected