Internet explorer 通过robotframework以个人浏览模式打开Internet Explorer

Internet explorer 通过robotframework以个人浏览模式打开Internet Explorer,internet-explorer,internet-explorer-11,robotframework,Internet Explorer,Internet Explorer 11,Robotframework,我正试图通过RobotFramework以InPrivate模式打开IE,如下所示: ${dc} Evaluate sys.modules['selenium.webdriver'].DesiredCapabilities.INTERNETEXPLORER sys, selenium.webdriver Log To Console ${dc} Set To Dictionary ${dc} ie.forceCreateProcessApi=${True} ie.bro

我正试图通过RobotFramework以InPrivate模式打开IE,如下所示:

${dc}   Evaluate    sys.modules['selenium.webdriver'].DesiredCapabilities.INTERNETEXPLORER  sys, selenium.webdriver
Log To Console ${dc}
Set To Dictionary  ${dc}    ie.forceCreateProcessApi=${True}    ie.browserCommandLineSwitches=-private
Log To Console ${dc}
Open Browser    www.google.com   ie  desired_capabilitie=${dc}
脚本在最后一步被卡住,直到按下Ctrl+C。有人知道如何解决这个问题吗


谢谢你的帮助

以下代码适用于我:

*** Settings ***
Library    Collections    
Library    Selenium2Library

*** Test Cases ***
Test IE InPrivate
    ${dc}   Evaluate    sys.modules['selenium.webdriver'].DesiredCapabilities.INTERNETEXPLORER  sys, selenium.webdriver
    Set To Dictionary   ${dc}   ignoreProtectedModeSettings    ${True}
    Set To Dictionary   ${dc}   ie.forceCreateProcessApi       ${True}
    Set To Dictionary   ${dc}   ie.browserCommandLineSwitches=-private
    Open Browser    www.google.com  ie  desired_capabilitie=${dc}
但是,请注意,要使
forceCreateProcessApi
设置正常工作,需要添加一个额外的注册表项:
HKEY\u CURRENT\u USER\Software\Microsoft\internetexplorer\Main\TabProcGrowth='0'
。否则会出现以下错误:

WebDriverException: Message: Unexpected error launching Internet Explorer. Unable to use 
CreateProcess() API. To use CreateProcess() with Internet Explorer 8 or higher, the value 
of registry setting in
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\TabProcGrowth must be '0'.

我在我的系统上发现了问题。当我在Windows 64位上使用IEDriverServer 32位时会出现问题。你能将此答案标记为答案,以便其他有类似问题的人更容易识别它吗?