我有同样的问题,因为我的网络环境是相当“敌对的”,我不得不处理NTLM代理和有限的访问策略。
为了解决这个问题,no_proxy
和webdriver.ie.driver
环境变量必须正确设置好的:
Set Environment Variable no_proxy 127.0.0.1
Set Environment Variable webdriver.ie.driver ${local_ie_driver}
...你在这个小例子调用之前的IE浏览器打开,如:
*** Settings ***
Library Selenium2Library
Library OperatingSystem
*** Variables ***
${url_google} http://www.google.com/
${local_ie_driver} D:${/}PortableApps${/}SeleniumIEWebDriver${/}IEDriverServer.exe
*** Test Cases ***
Google for macarronada using IE
Set Environment Variable no_proxy 127.0.0.1
Set Environment Variable webdriver.ie.driver ${local_ie_driver}
Open Browser ${url_google} ie
Wait Until Page Contains Google
Input Text id=lst-ib macarronada
Click Button name=btnG
Wait Until Page Contains macarronada
Close Browser
希望它能帮助你。
@cpburnz,谢谢你的建议。我编辑了这个答案来复制原始文本的全文。 –