删除所有可见cookie时引发异常

2 投票
2 回答
2124 浏览
提问于 2025-04-15 14:43

我在用Python的Selenium库时,执行selenium.delete_all_visible_cookies这个命令时遇到了一个错误,错误信息是:

错误:命令执行失败。
请在论坛上搜索,地址是 http://clearspace.openqa.org,查看日志窗口中的错误详细信息。
错误信息是:格式错误的URI序列。

日志窗口中的错误是:

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

有人知道这是怎么回事吗?

2 个回答

1

这是一个错误,具体情况可以查看这里: http://clearspace.openqa.org/message/68779

1

要查看这个错误,可以访问这个链接:http://jira.openqa.org/browse/SEL-712

撰写回答