当我执行 user 关键字时,出现以下错误:
Message: u'Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]'
我的测试:
*** Settings ***
Library lib_TestSetUp.py
Library CP_Web_SignInPage.py
*** Test Cases ***
TC1
${wd_handle}= Initiate Setup 'Firefox'
Login User ${wd_handle} 'http://www.amazon.com/cloudplayer' 'karthicm+ustest1@amazon.com' 'test123'
当我运行时,webdriver 句柄设置为 ${wd_handle} 并且我使用相同的处理程序来运行剩余的测试。
def login_user(wd_handle, Login_URL, UserName, Password):
{
//Does login operation
}
安慰:
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 551, in __bootstrap_inner
self.run()
File "C:\Python27\lib\threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\Lib\SocketServer.py", line 225, in serve_forever
r, w, e = select.select([self], [], [], poll_interval)
属性错误:'module' object has no attribute 'select'
日志:
Starting test: DigitalMP3 Project.TestSuite.TC1
20130603 16:26:44.629 : INFO : ${wd_handle} = <selenium.webdriver.firefox.webdriver.WebDriver object at 0x03302790>
20130603 16:26:49.720 : INFO :
Message: u'Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]'
信息:
RIDE 1.1 running on Python 2.7.3
.
机器人框架-2.7.7
硒 2.33