新聞中心
問題1:
創(chuàng)新互聯(lián)公司專注于和平網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗。 熱誠為您提供和平營銷型網(wǎng)站建設(shè),和平網(wǎng)站制作、和平網(wǎng)頁設(shè)計、和平網(wǎng)站官網(wǎng)定制、重慶小程序開發(fā)服務(wù),打造和平網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供和平網(wǎng)站排名全網(wǎng)營銷落地服務(wù)。
command: pybot.bat --argumentfile c:\users\lenovo\appdata\local\temp\RIDEeoqulh.d\argfile.txt --listener D:\Python27\lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py:16115:False C:\Users\lenovo\Desktop\test\test
解決方案:把C:\python27\scripts加入環(huán)境變量path中
問題2:
WebDriverException: Message: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones.
解決方案:設(shè)置IE瀏覽器Internet選項->選擇安全->把Internet,本地Intranet,可信站點,受限站點下的啟用模式統(tǒng)一都去掉或都選上
問題3:
WebDriverException: Message: 'IEDriver executable needs to be available in the path.
解決方案:下載IEDriver或chromeDriver,放在D:\Python27\Scripts,前提是你的python安裝在此D盤
問題4:
[WARN]Keyword 'Capture Page Screenshot' could not be run on failure: AttributeError: 'NoneType' object has no attribute 'encode'
解決方案:找到Selenium2Library的utils目錄,修改其中的browsercache.py文件,將def close(self):方法中的語句“browser.quit()”修改為“browser.close()”。即可解決此問題。
文章標(biāo)題:robotframework+selenium2library運(yùn)行常見問題
轉(zhuǎn)載注明:http://fisionsoft.com.cn/article/ppcjgi.html