2009-10-01 39 views
2

我正在使用硒與python客戶端。在做selenium.delete_all_visible_cookies我得到異常:
刪除所有可見的Cookie引發異常

ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: malformed URI sequence

日誌窗口的錯誤是:

error(1254427481456): Exception details: 
message -> malformed URI sequence, 
fileName -> http://localhost:4444/selenium-server/core/scripts/selenium-browserbot.js, 
lineNumber -> 1169, 
stack -> 
("WSS_GW",[object HTMLDocument])@http://localhost:4444/selenium-server/core/scripts/selenium-browserbot.js:1169 
("WSS_GW",".mysite","/",[object HTMLDocument])@http://localhost:4444/selenium-server/core/scripts/selenium-browserbot.js:1208 
("WSS_GW",".mysite","/",[object HTMLDocument])@http://localhost:4444/selenium-server/core/scripts/selenium-browserbot.js:1213 
("WSS_GW",".mysite","/",[object HTMLDocument])@http://localhost:4444/selenium-server/core/scripts/selenium-browserbot.js:1236 
("WSS_GW","mysite","/",[object XPCCrossOriginWrapper])@http://localhost:4444/selenium-server/core/scripts/selenium-browserbot.js:1248 
("","")@http://localhost:4444/selenium-server/core/scripts/selenium-api.js:2607 
("","")@http://localhost:4444/selenium-server/core/scripts/htmlutils.js:60 
([object Object],[object Object])@http://localhost:4444/selenium-server/core/scripts/selenium-commandhandlers.js:310 
()@http://localhost:4444/selenium-server/core/scripts/selenium-executionloop.js:112 
(-10)@http://localhost:4444/selenium-server/core/scripts/selenium-executionloop.js:78 
(-10)@http://localhost:4444/selenium-server/core/scripts/htmlutils.js:60 , 
name -> URIError 

任何想法是怎麼回事?

回答