删除所有可见的Cookie会引发异常

2024-05-14 05:50:57 发布

您现在位置:Python中文网/ 问答频道 /正文

我在python客户机上使用selenium。做的时候selenium.delete_all_visible_cookies我得到一个例外:

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

知道发生什么事了吗?在


Tags: thecorelocalhosthttpobjectserverseleniumjs