(self)
| 1296 | self.refresh_page(*args, **kwargs) |
| 1297 | |
| 1298 | def get_current_url(self): |
| 1299 | self.__check_scope() |
| 1300 | current_url = None |
| 1301 | if self.__is_cdp_swap_needed(): |
| 1302 | current_url = self.cdp.get_current_url() |
| 1303 | else: |
| 1304 | current_url = self.driver.current_url |
| 1305 | if "%" in current_url: |
| 1306 | try: |
| 1307 | from urllib.parse import unquote |
| 1308 | |
| 1309 | current_url = unquote(current_url, errors="strict") |
| 1310 | except Exception: |
| 1311 | pass |
| 1312 | return current_url |
| 1313 | |
| 1314 | def get_origin(self): |
| 1315 | self.__check_scope() |
no test coverage detected