MCPcopy
hub / github.com/InstaPy/InstaPy / check_exists_by_xpath

Function check_exists_by_xpath

instapy/commenters_util.py:35–40  ·  view source on GitHub ↗
(browser, xpath)

Source from the content-addressed store, hash-verified

33
34
35def check_exists_by_xpath(browser, xpath):
36 try:
37 browser.find_element(By.XPATH, xpath)
38 except NoSuchElementException:
39 return False
40 return True
41
42
43def remove_duplicates_preserving_order(seq):

Callers 2

extract_post_infoFunction · 0.85
likers_from_photoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected