Selenium IEDriverServer.exe-浏览器打开,但是.SendKeys()不起作

Selenium IEDriverServer.exe - The browser opens up but .SendKeys() isn't working
2021-06-20
  •  译文(汉语)
  •  原文(英语)

我正在使用Selenium和NUnit测试多个浏览器-FF和Chrome可以正常工作,但是IE只是将浏览器打开到我的"登录"页面,然后继续挂在那里而不执行任何操作.

我正在使用最新版本的驱动程序.其他人有这个问题,希望有解决方案吗?IE是我们真正需要测试的浏览器.

非常感谢.:-)

速聊1:
您正在测试哪个版本的IE / Windows?Selenium是否不要求您重新配置保护模式或将目标站点放置在"受信任的区域"中?
速聊2:
您是否将保护模式设置设为所有相同的值?
速聊3:
感谢您的答复,很抱歉,我花了点时间才能回到这里.我正在使用IE 10,Windows 7 64位.我不能将目标站点放置在受信任的区域中,因为它必须登录(因此没有https,至少起初没有).所有保护模式设置均已关闭.还有其他想法吗?再次感谢.
解决过程1

在IE浏览器中禁用保护模式,并对所有四个图标禁用它

   1) Internet
   2) trusted 
   3) Local Intranet
   4) restricted site

Tools > internet options > security > Enable protected mode

启用保护模式复选框,检查图像Selenium IEDriverServer.exe-浏览器打开,但是.SendKeys()不起作用

速聊1:
刚才我确实尝试过,但仍然没有任何反应.一直失败,无法找到登录用户名字段...尽管谢谢.

I'm using Selenium and NUnit to test multiple browsers - FF and Chrome work fine, but IE just opens up the browser to my Login page and just proceeds to hang there doing nothing.

I'm using the most recent versions of the Drivers. Anyone else have this problem, and hopefully a solution? IE is the browser that we really need to test.

Thanks much. :-)

Talk1:
Which version of IE/Windows are you testing on? Doesn't Selenium require that you reconfigure Protected Mode or put the target site in the Trusted Zone?
Talk2:
Did you set the Protected Mode settings to all the same value?
Talk3:
Thanks for the reply, sorry it took me a bit to get back on here. I'm using IE 10, Windows 7 64 bit. I can't put the target site in the trusted zone as it has to log in(so no https, at least not at first). All protected mode settings are off. Any other ideas? Thanks again.
Solutions1

Disable protected mode in IE browser and disable it for all four icon

   1) Internet
   2) trusted 
   3) Local Intranet
   4) restricted site

Tools > internet options > security > Enable protected mode

Enable protected mode check box, check imageSelenium IEDriverServer.exe - The browser opens up but .SendKeys() isn't working

Talk1:
I did try that just now, still not getting anything to happen. Keeps failing, unable to find the login username field... Thanks though.
转载于:https://stackoverflow.com/questions/18551226/selenium-iedriverserver-exe-the-browser-opens-up-but-sendkeys-isnt-working

本人是.net程序员,因为英语不行,使用工具翻译,希望对有需要的人有所帮助
如果本文质量不好,还请谅解,毕竟这些操作还是比较费时的,英语较好的可以看原文

留言回复
我们只提供高质量资源,素材,源码,坚持 下了就能用 原则,让客户花了钱觉得值
上班时间 : 周一至周五9:00-17:30 期待您的加入