Server独立于Internet

Server独立于Internet

本文介绍了Selenium Server独立于Internet Explorer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用硒服务器独立服务器在Internet Explorer上运行一些硒测试,但是它打开了一个具有2个drowbacks的嵌入式Internet Explorer

I'm using selenium server standalone to run some selenium tests on Internet explorer but it opens an embedded Internet Explorer which has 2 drowbacks

  1. 我的网站呈现的方式不同(IE中的每件事都很好,但嵌入式IE中的一切都不好)
  2. 它不使用Internet Explorer设置,因此即使我已关闭IE中的脚本调试功能,但在嵌入式IE中仍然会出现一些错误.

任何人都知道如何使硒独立服务器与IE一起工作,而不是与嵌入式IE一起工作?我使用服务器和驱动程序的最新版本是2.44

anybody has any idea how can i make selenium standalone server to work with IE, not Embedded IE?I use latest version of both server and driver which is 2.44

谢谢

推荐答案

如果您没有任何操作系统限制,并且Selenium服务器可以在基于Windows的计算机上执行,为什么不对您的IE使用Internet Explorer驱动程序服务器特定测试?

If you do not have any OS restrictions and your Selenium Server can be executed in a Windows-based machine, why not use the Internet Explorer Driver Server for your IE-specific tests instead?

每个Wiki的一个优点是-在真正的浏览器中运行并支持Javascript

One advantage as per Wiki is that - Runs in a real browser and supports Javascript

如果您决定这样做,请尝试通过Wiki中InternetExplorerDriver的每个必需配置运行下来:

And if you decide to, try running down thru each of the required configuration for the InternetExplorerDriver in the Wiki:

https://code.google.com/p/selenium/wiki/InternetExplorerDriver

必需的配置

必须下载IEDriverServer可执行文件,并将其放置在您的PATH中.

The IEDriverServer exectuable must be downloaded and placed in your PATH.

  • 在Windows Vista或Windows 7的IE 7或更高版本上,必须设置每个区域的保护模式设置应为相同的值.价值可以打开或关闭,只要每个区域都相同即可.设置在保护模式设置下,从单击工具菜单,然后单击安全性选项卡.对于每个区域,是标签为启用受保护的"标签底部的复选框模式".

  • On IE 7 or higher on Windows Vista or Windows 7, you must set theProtected Mode settings for each zone to be the same value. The valuecan be on or off, as long as it is the same for every zone. To setthe Protected Mode settings, choose "Internet Options..." from theTools menu, and click on the Security tab. For each zone, there willbe a check box at the bottom of the tab labeled "Enable ProtectedMode".

此外,必须为IE 10禁用增强保护模式"和更高.可在Internet的高级"选项卡中找到此选项.选项对话框.

Additionally, "Enhanced Protected Mode" must be disabled for IE 10and higher. This option is found in the Advanced tab of the InternetOptions dialog.

浏览器缩放级别必须设置为100%,以便本机鼠标可以将事件设置为正确的坐标.

The browser zoom level must be set to 100% so that the native mouseevents can be set to the correct coordinates.

仅对于IE 11,您将需要在目标上设置一个注册表项计算机,以便驱动程序可以维持与实例的连接它创建的Internet Explorer.对于32位Windows安装,您必须在注册表编辑器中检查的密钥是HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ InternetExplorer \ Main \ FeatureControl \ FEATURE_BFCACHE.对于64位Windows装置,关键是HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Microsoft \ InternetExplorer \ Main \ FeatureControl \ FEATURE_BFCACHE.请注意FEATURE_BFCACHE子项可能存在或可能不存在,应该如果不存在则创建.重要提示:在此注册表项中,创建一个名为iexplore.exe的DWORD值,值为0.

For IE 11 only, you will need to set a registry entry on the targetcomputer so that the driver can maintain a connection to the instanceof Internet Explorer it creates. For 32-bit Windows installations,the key you must examine in the registry editor isHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InternetExplorer\Main\FeatureControl\FEATURE_BFCACHE. For 64-bit Windowsinstallations, the key isHKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\InternetExplorer\Main\FeatureControl\FEATURE_BFCACHE. Please note that theFEATURE_BFCACHE subkey may or may not be present, and should becreated if it is not present. Important: Inside this key, create aDWORD value named iexplore.exe with the value of 0.

这篇关于Selenium Server独立于Internet Explorer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 15:27