MCPcopy
hub / github.com/InstaPy/InstaPy / close_dialog_box

Function close_dialog_box

instapy/util.py:2367–2378  ·  view source on GitHub ↗

Click on the close button spec. in the 'Likes' dialog box

(browser)

Source from the content-addressed store, hash-verified

2365
2366
2367def close_dialog_box(browser):
2368 """Click on the close button spec. in the 'Likes' dialog box"""
2369
2370 try:
2371 close = browser.find_element(
2372 By.XPATH, read_xpath("class_selectors", "likes_dialog_close_xpath")
2373 )
2374
2375 click_element(browser, close)
2376
2377 except NoSuchElementException:
2378 pass
2379
2380
2381def parse_cli_args():

Callers 2

get_active_usersFunction · 0.85
likers_from_photoFunction · 0.85

Calls 2

read_xpathFunction · 0.85
click_elementFunction · 0.85

Tested by

no test coverage detected