【问题标题】:Delete all visible cookies raises an exception删除所有可见的 cookie 会引发异常
【发布时间】:2010-12-03 03:23:34
【问题描述】:

我在 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

知道发生了什么吗?

【问题讨论】:

    标签: python exception selenium cookies


    【解决方案1】:

    【讨论】:

      【解决方案2】:

      这是一个错误,请参见此处: http://clearspace.openqa.org/message/68779

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-02-14
        • 2016-10-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-06-20
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多