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

Method internalize_links

seleniumbase/core/sb_cdp.py:2844–2847  ·  view source on GitHub ↗

All `target="_blank"` links become `target="_self"`. This prevents those links from opening in a new tab.

(self)

Source from the content-addressed store, hash-verified

2842 self.click(click_selector)
2843
2844 def internalize_links(self):
2845 """All `target="_blank"` links become `target="_self"`.
2846 This prevents those links from opening in a new tab."""
2847 self.set_attributes('[target="_blank"]', "target", "_self")
2848
2849 def is_checked(self, selector):
2850 """Return True if checkbox (or radio button) is checked."""

Callers 4

test_hack_searchMethod · 0.45
raw_cdp_with_sb.pyFile · 0.45
mainFunction · 0.45
raw_async.pyFile · 0.45

Calls 1

set_attributesMethod · 0.95

Tested by 1

test_hack_searchMethod · 0.36