Delete all visible cookies raises an exception

ε祈祈猫儿з 提交于 2019-12-24 02:33:04

问题


I am using selenium with a python client. When doing selenium.delete_all_visible_cookies I get the exception:

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

The log window's error is:

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

Any idea what's going on?


回答1:


To see the bug: http://jira.openqa.org/browse/SEL-712




回答2:


This is a bug, see here: http://clearspace.openqa.org/message/68779



来源:https://stackoverflow.com/questions/1506315/delete-all-visible-cookies-raises-an-exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!