From 71bdcbd26b5daa24cdc982fe4b10be0231633f3a Mon Sep 17 00:00:00 2001 From: Pedro de Oliveira Guedes Date: Thu, 6 Jan 2022 11:53:58 -0300 Subject: [PATCH] find_tab_by_url method (broken). --- api/chrome/cli.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/api/chrome/cli.py b/api/chrome/cli.py index bfce2d7..dff6d08 100644 --- a/api/chrome/cli.py +++ b/api/chrome/cli.py @@ -287,4 +287,22 @@ class Chrome: """ ret = self.__request_json_get__("/ipc/chrome/opentabs") - return ret \ No newline at end of file + return ret + +# ====================================== BROKEN ====================================== + # def find_tab_by_url (self, url: str = "https://www.google.com/"): + # """ + # ## Chrome Find Tab By Url + # Este método procura a url recebida entre as abas abertas no Google Chrome. + + # --- + # #### Parâmetros: + # - url: Link que se deseja buscar entre as abas abertas. + + # --- + # #### Retorna: + # -> ??? + # """ + + # url = urllib.parse.quote(url, "") + # return self.__request_get__("/ipc/chrome/findtabbyurl/"+url)