简体   繁体   English

Selenium WebDriver Internet Explorer IEDriverServer阻止模态对话框

[英]Selenium WebDriver Internet Explorer IEDriverServer Blocks Modal Dialog

I'm testing an application that opens a lot of modal dialogs using Javascript window.showModalDialog method. 我正在测试一个使用Javascript window.showModalDialog方法打开大量模态对话框的应用程序。 My Selenium Webdriver code works fairly well with Firefox . 我的Selenium Webdriver代码与Firefox运行良好。 However, it encounters various problems with Internet Explorer 11 using IEDriverServer . 但是,它使用IEDriverServer遇到Internet Explorer 11的各种问题。

On one page, when a link is clicked manually (by just launching IE) or by Selenium on FF, a new modal dialog is opened. 在一个页面上,当手动单击链接(通过启动IE)或通过FF上的Selenium单击时,将打开一个新的模式对话框。

在此输入图像描述

However, on a browser opened by IEDriverServer, nothing happens. 但是,在IEDriverServer打开的浏览器上,没有任何反应。 I can't even click on it manually either. 我甚至无法手动点击它。 It's as if there's an invisible layer of something that's blocking this instance of the browser altogether. 这就好像有一个看不见的东西层,完全阻止了这个浏览器实例。

在此输入图像描述

Any advice is greatly appreciated! 任何意见是极大的赞赏! Thanks! 谢谢!

我遇到了类似的问题.IdDriver对此不负责任。我建议您使用管理员权限运行vs,或者运行具有管理员权限的已编译程序。找到此方法并不容易,毕竟,这不是代码问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Selenium的完整Internet Explorer身份验证对话框 - Complete Internet Explorer Authentication Dialog with Selenium Selenium Webdriver无法访问Internet Explorer 8上的Web元素-显示为已禁用 - Selenium Webdriver unable to access web element on Internet Explorer 8 - shown as disabled 如何使用Selenium Webdriver在Internet Explorer上获取Cookie-C# - How to get cookies on internet explorer using Selenium webdriver - C# C#Selenium Webdriver在Internet Explorer中捕获javascript错误 - C# Selenium webdriver Catch javascript errors in Internet explorer 使用Internet Explorer 11的多个Selenium Webdriver实例会相互干扰 - Multiple selenium webdriver instances using Internet Explorer 11 interfere with eachother 如何使用 Selenium Webdriver 和 Internet Explorer 10 处理 Windows 身份验证? - How to handle Windows Authentication with Selenium Webdriver and Internet Explorer 10? Selenium WebDriver Focus跳转到IEDriverServer.exe CMD窗口 - Selenium WebDriver Focus Jumps to IEDriverServer.exe CMD Window Selenium WebDriver - 无法在模态对话框中找到并单击提交按钮 - Selenium WebDriver - Unable to find and click a Submit button on modal dialog 如何使用Selenium WebDriver检查Windows Modal对话框是否存在 - How to check if Windows Modal Dialog is present using Selenium WebDriver 硒和Internet Explorer驱动程序 - Selenium and Internet Explorer Driver
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM