Python中文
首页
教程
问答
标签
搜索
登录
注册
selenium如何关闭chrome弹出窗口
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p><a href="https://i.stack.imgur.com/Zdm9D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zdm9D.png" alt="scrshot"/></a> 我尝试了我能找到的任何东西,但我无法让selenium解除此警报。我不认为这是一个警告了,虽然,因为我没有得到任何AlertPresentException当我尝试</p> <pre><code>driver.switch_to.alert.dismiss() </code></pre> <p>有什么想法吗</p> <p>以下是HTML页面的相关部分:</p> <pre><code><iframe id="teamsLauncher" src="msteams:/l/team/19:95f3ef22a37040fca83b679b64f96da1@thread.tacv2/conversations?groupId=09988212-e3a1-4187-b067-a805e512e0a4&amp;tenantId=d348f9ab-4879-4a60-ab50-5c420b11470c&amp;deeplinkId=2deee564-c6b3-4d5d-b097-93900dd14620&amp;launchAgent=join_launcher&amp;type=team&amp;directDl=true&amp;msLaunch=true&amp;enableMobilePage=true&amp;fqdn=teams.microsoft.com" style="display: none;"></iframe> <script>var modernBrowser="fetch"in window&&"assign"in Object&&"Set"in window,bundles=[],polyfills="";function injectScript(n,e,s){var t=document.createElement("script");t.src=n,t.async=e,t.onload=s,document.body.appendChild(t)}function loadBundles(n){for(key in bundles)injectScript(bundles[key],n)}function loadPolyfills(){polyfills&&injectScript(polyfills,!1,function(){loadBundles(!1)})}bundles.push("https://statics.teams.microsoft.com/hashedjs-launcher/launcher.5c24f1e70f34f56835c7.js"),polyfills="https://statics.teams.microsoft.com/hashedjs-launcher/polyfills.1e46ca6473519cf1be5d.js",modernBrowser?loadBundles(!0):loadPolyfills(),window.addEventListener("load",function(){injectScript("https://az725175.vo.msecnd.net/scripts/jsll-4.js",!0,function(){var n={coreData:{appId:"JS:teams.microsoft.com",market:window.navigator.language||"en-US"}};awa&&awa.init&&awa.init(n)})})</script> </code></pre> <p>还尝试了actionchains,但发送escape密钥没有任何作用</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<P>考虑使用库PyAutoGUI,它允许Python控制鼠标和键盘。如果每次都将窗口保持在同一位置,则可以使用鼠标单击功能的静态x y坐标来接受弹出窗口并允许您继续</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
尝试将单元格与pythondocx合并
9 回答
尝试将卡的5个值传递给函数,但不起作用
8 回答
尝试将卷绑定到docker容器
5 回答
尝试将原始queryset转换为queryset时出错
4 回答
尝试将原始输入与函数一起使用
3 回答
尝试将参数传递给函数时,可以通过python中的“@app.route”
6 回答
尝试将变量mid脚本返回到我的模板
3 回答
尝试将变量从一个函数调用到另一个函数
1 回答
尝试将变量传递给一个名称与参数不同的函数是否更好?
4 回答
尝试将变量传递给函数内部的函数。Python
7 回答
尝试将变量作为参数传递
3 回答
尝试将变量作为命令
3 回答
尝试将变量旁边的数据从文本复制到csv时,python获取错误:
10 回答
尝试将变量输入到sql数据库中已创建的行中
10 回答
尝试将只有两个或更多重复元音的单词打印到文本文件中
5 回答
尝试将后缀(字符串)添加到列表中每个WebElement的末尾
5 回答
尝试将命令行输出保存到fi时出错
9 回答
尝试将唯一ASCII文件导入数据帧时出现分析错误
4 回答
尝试将回归程序从stata转换为python
7 回答
尝试将图像上的点投影到二维平面时打开CV通道
3 回答