被测试的应用程序是一个内部站点 . 我在IE中运行测试时无法选择新窗口 . 这是我的测试中出现错误的部分

Run report
    input text          txtSearchKey    TestProduct
    click element       searchButton
    click element       xpath=//*[@id='tblProductSelect']/tbody/tr[1]/td
    wait until element is not visible       loadingDiv
    click button        id=btnRunReport  
    wait until element is not visible       loadingDiv
    get window identifiers
    get window names
    select window                       Product Report

单击btnRunReport时,应用程序将在新选项卡中打开并显示报告 . 这是当用户转到应用程序并在chrome或IE中生成报告时发生的事情 .

当我运行此测试时,它在Chrome中运行良好 . 报告将在新选项卡中打开,我可以选择该选项卡 . 在IE中,它在新窗口中打开,这是预期的行为(参考:https://github.com/SeleniumHQ/selenium/issues/5108) .

它在新窗口中打开没有问题,但我无法选择那个新窗口 . 我收到此错误 - ValueError:无法找到带有句柄或名称或 Headers 的窗口或URL'产品报告'

“获取窗口标识符”和“获取窗口名称”仅获得1个浏览器 . 它似乎没有认识到第二个 . 另外,在拆解套件上,第二个窗口没有关闭 .

谢谢 . 我希望有一个人可以帮助我 .

这是我的系统规格:

  • OS - Windows 7

  • 浏览器 - IE11

  • Robot Framework版本 - 3.0.2

  • IEDriverServer版本 - 3.4

  • Selenium2Library版本 - 1.8.0