All `target="_blank"` links become `target="_self"`. This prevents those links from opening in a new tab.
(self)
| 2107 | self.execute_script(script) |
| 2108 | |
| 2109 | def internalize_links(self): |
| 2110 | """All `target="_blank"` links become `target="_self"`. |
| 2111 | This prevents those links from opening in a new tab.""" |
| 2112 | if self.__is_cdp_swap_needed(): |
| 2113 | self.cdp.internalize_links() |
| 2114 | return |
| 2115 | self.set_attributes('[target="_blank"]', "target", "_self") |
| 2116 | |
| 2117 | def get_parent(self, element, by="css selector", timeout=None): |
| 2118 | """Returns the parent element. |
nothing calls this directly
no test coverage detected