Selenium webdriver 是否有可能用硒M2测试IE6以及如何使用;“硒代酚”:&引用;硒;?

Selenium webdriver 是否有可能用硒M2测试IE6以及如何使用;“硒代酚”:&引用;硒;?,selenium-webdriver,selenium-grid,Selenium Webdriver,Selenium Grid,我在用硒M2测试IE6时遇到了这个问题。我使用Perl绑定(),但我非常感谢您的建议,即使这些建议来自于具有seleniumforjava经验的人 问题是,当我尝试这样做时: my %opt = ( browser_name => 'internet explorer', version => '6', platform => 'WINDOWS', proxy => { prox

我在用硒M2测试IE6时遇到了这个问题。我使用Perl绑定(),但我非常感谢您的建议,即使这些建议来自于具有seleniumforjava经验的人

问题是,当我尝试这样做时:

my %opt = (
   browser_name    => 'internet explorer',
   version         => '6',
   platform        => 'WINDOWS',
   proxy           => {
       proxyType => 'direct',
   }
);
my $driver = Selenium::Remote::Driver->new(%opt);
$driver->get('http://www.google.com');
my $elem = $driver->find_element('gs_htif0', 'id');
$elem->send_keys('fooooooo');
浏览器打开,但随后测试结束,并显示消息
,使用给定的搜索参数无法在页面上找到元素:gs_htif0,id at…
,而在IE7中,所有工作正常,IE驱动程序的文档表明IE6已测试

之后,我尝试用“seleniumProtocol”启动一个节点:“seleniumProtocol”:“Selenium”,我认为这是测试任何没有驱动程序的浏览器的选项,因此可以用老方法“JavaScript模拟”用户操作来测试它,但浏览器根本没有启动,测试失败,消息为
java.lang.NullPointerException:sessionId不应为null;此会话是否已启动?

我的集线器配置是:

{
    "host": null,
    "port": 4444,
    "newSessionWaitTimeout": -1,
    "servlets" : [],
    "prioritizer": null,
    "capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
    "throwOnCapabilityNotPresent": true,
    "nodePolling": 5000,

    "cleanUpCycle": 5000,
    "timeout": 300000,
    "browserTimeout": 0,
"maxSession": 5
}
{
    "capabilities":
    [
        {
            "platform": "WINDOWS",
            "browserName": "internet explorer",
            "version": "6",
            "seleniumProtocol": "WebDriver",
            "ensureCleanSession": true
        }
    ],
    "configuration":
    {
        "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
        "maxSession": 1,
        "port": 5555,
        "host": "192.168.1.6",
        "register": true,
        "registerCycle": 5000,
        "hubPort": 4444,
        "hubHost": "192.168.1.34"
    }
}
我的节点配置是:

{
    "host": null,
    "port": 4444,
    "newSessionWaitTimeout": -1,
    "servlets" : [],
    "prioritizer": null,
    "capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
    "throwOnCapabilityNotPresent": true,
    "nodePolling": 5000,

    "cleanUpCycle": 5000,
    "timeout": 300000,
    "browserTimeout": 0,
"maxSession": 5
}
{
    "capabilities":
    [
        {
            "platform": "WINDOWS",
            "browserName": "internet explorer",
            "version": "6",
            "seleniumProtocol": "WebDriver",
            "ensureCleanSession": true
        }
    ],
    "configuration":
    {
        "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
        "maxSession": 1,
        "port": 5555,
        "host": "192.168.1.6",
        "register": true,
        "registerCycle": 5000,
        "hubPort": 4444,
        "hubHost": "192.168.1.34"
    }
}
start node命令是
java-jar-selenium-server-standalone-2.29.0.jar-role node-nodeConfig node\u ie6\u conf.json-Dwebdriver.ie.driver=“IEDriverServer\u 2.29x32.exe”>nul

Start-hub命令是
java-jar-selenium-server-standalone-2.29.0.jar-role-hub-hubConfig-hub\u conf.json&>dev/null

有人能帮我吗?谢谢


更新
对于问题的第二部分,我假设Selenium::Remote::Driver仅适用于webDriver协议,但我不确定

对于问题的第一部分,答案是“是的,这是可能的”。假设一个用户正确设置了集线器、节点和,她只需要在IE设置窗口(打开服务->internet选项)的“安全”选项卡中配置安全设置。在那里,她必须将滑块向下移动一点,为“本地intranet”设置“中等”级别

很抱歉屏幕截图不是英文的,但我没有英文XP,我想在哪里可以找到它是很清楚的:

在我开始在IE7中遇到同样的问题之后,在我更改安全设置之后,我意外地找到了答案,所以它暗示我应该去哪里寻找

但是第二部分
如何使用“selenium协议”
仍然没有解决