• <i id='oidw0'><tr id='oidw0'><dt id='oidw0'><q id='oidw0'><span id='oidw0'><b id='oidw0'><form id='oidw0'><ins id='oidw0'></ins><ul id='oidw0'></ul><sub id='oidw0'></sub></form><legend id='oidw0'></legend><bdo id='oidw0'><pre id='oidw0'><center id='oidw0'></center></pre></bdo></b><th id='oidw0'></th></span></q></dt></tr></i><div id='oidw0'><tfoot id='oidw0'></tfoot><dl id='oidw0'><fieldset id='oidw0'></fieldset></dl></div>

  • <tfoot id='oidw0'></tfoot>

    1. <small id='oidw0'></small><noframes id='oidw0'>

          <bdo id='oidw0'></bdo><ul id='oidw0'></ul>
        <legend id='oidw0'><style id='oidw0'><dir id='oidw0'><q id='oidw0'></q></dir></style></legend>

        如何防止在打开特定链接时从 Ubuntu chrome 弹出 xdg-open 对话?

        时间:2023-07-05

        <small id='Lcs5j'></small><noframes id='Lcs5j'>

          • <legend id='Lcs5j'><style id='Lcs5j'><dir id='Lcs5j'><q id='Lcs5j'></q></dir></style></legend>
            <i id='Lcs5j'><tr id='Lcs5j'><dt id='Lcs5j'><q id='Lcs5j'><span id='Lcs5j'><b id='Lcs5j'><form id='Lcs5j'><ins id='Lcs5j'></ins><ul id='Lcs5j'></ul><sub id='Lcs5j'></sub></form><legend id='Lcs5j'></legend><bdo id='Lcs5j'><pre id='Lcs5j'><center id='Lcs5j'></center></pre></bdo></b><th id='Lcs5j'></th></span></q></dt></tr></i><div id='Lcs5j'><tfoot id='Lcs5j'></tfoot><dl id='Lcs5j'><fieldset id='Lcs5j'></fieldset></dl></div>
              <tfoot id='Lcs5j'></tfoot>

                <bdo id='Lcs5j'></bdo><ul id='Lcs5j'></ul>
                    <tbody id='Lcs5j'></tbody>

                  本文介绍了如何防止在打开特定链接时从 Ubuntu chrome 弹出 xdg-open 对话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试使用桌面网络 whatsapp(chrome、ubuntu)加入一个 whatsapp 组.当我点击加入群组时,它会显示下面的对话.我想永远从 chrome 中删除这个对话.我可以在关闭 xdg-open 对话后再次点击加入群组来加入群组.

                  我尝试了

                  解决方案

                  此解决方案适用于 Google Chrome 84.0.4147.89,适用于特定类型的 xdg 链接.例如,如果有问题的链接是 whatsapp://someurl,您可以使用:

                  sudo mkdir -p/etc/opt/chrome/policies/managed/&&echo '{ "URLWhitelist": ["whatsapp://*"] }' |sudo tee/etc/opt/chrome/policies/managed/whitelist.json

                  I am trying to join a whatsapp group using desktop web whatsapp (chrome, ubuntu). When I click on Join Group, It shows dialogue below.I want to remove this dialogue forever from chrome. I can join the group by clicking again on join the group after dismissing the xdg-open dialogue.

                  I tried Reset chrome protocol_handler chrome with no luck.

                  I also tried to dismiss the dialogue using python selenium with no luck using below code.

                                 try:
                  
                                      WebDriverWait(browser, 3).until(EC.alert_is_present(),
                                             'Timed out waiting for PA creation ' +
                                             'confirmation popup to appear.')
                                      #if it doe
                                      alert = browser.switch_to.alert()
                                      alert.accept()
                                      print "alert accepted"
                                  except TimeoutException:
                                      print "no alert"
                                      pass
                  

                  Is there a way to dismiss the dialogue using python selenium or using some configuration file changes in chrome installation ?

                  解决方案

                  This solution works on Google Chrome 84.0.4147.89, for specific types of xdg links. For example, if the link in question is whatsapp://someurl, you can use:

                  sudo mkdir -p /etc/opt/chrome/policies/managed/ && echo '{ "URLWhitelist": ["whatsapp://*"] }' |sudo tee /etc/opt/chrome/policies/managed/whitelist.json
                  

                  这篇关于如何防止在打开特定链接时从 Ubuntu chrome 弹出 xdg-open 对话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Selenium ChromeDriver 无法识别新编译的 Headless Chromium (Python) 下一篇:Selenium/Python - 提交表单后提取动态生成的 HTML

                  相关文章

                1. <legend id='Mz12g'><style id='Mz12g'><dir id='Mz12g'><q id='Mz12g'></q></dir></style></legend>

                  1. <i id='Mz12g'><tr id='Mz12g'><dt id='Mz12g'><q id='Mz12g'><span id='Mz12g'><b id='Mz12g'><form id='Mz12g'><ins id='Mz12g'></ins><ul id='Mz12g'></ul><sub id='Mz12g'></sub></form><legend id='Mz12g'></legend><bdo id='Mz12g'><pre id='Mz12g'><center id='Mz12g'></center></pre></bdo></b><th id='Mz12g'></th></span></q></dt></tr></i><div id='Mz12g'><tfoot id='Mz12g'></tfoot><dl id='Mz12g'><fieldset id='Mz12g'></fieldset></dl></div>

                    <small id='Mz12g'></small><noframes id='Mz12g'>

                    <tfoot id='Mz12g'></tfoot>
                      <bdo id='Mz12g'></bdo><ul id='Mz12g'></ul>