hello,
im trying to delete cookie with Selenium IDE using both deleteCookie and removeCookie commands but they dont work correctly.
deleteCookie | GATicket | /
after executing the command string is highligted green, but the cookie is present.
in the case of removeCookie with the same parameters an error occurs:
[error] Unexpected Exception: message -> doc has no properties, fileName -> file:///D:/public/LEM/source/main/rma/n-power/n-power-functional-test/n-power-selenium-core/src/main/webapp/core/scripts/user-extensions.js, lineNumber -> 182, stack -> createCookie(undefined,"GATicket","","/",-1)@file:///D:/public/LEM/source/main/rma/n-power/n-power-functional-test/n-power-selenium-core/src/main/webapp/core/scripts/user-extensions.js:182 ("GATicket","")@file:///D:/public/LEM/source/main/rma/n-power/n-power-functional-test/n-power-selenium-core/src/main/webapp/core/scripts/user-extensions.js:191 apply([object Object],[object Array])@:0 ("GATicket","")@chrome://selenium-ide/content/selenium/scripts/htmlutils.js:60 ([object Object],[object Object])@chrome://selenium-ide/content/selenium/scripts/selenium-commandhandlers.js:307 ()@chrome://selenium-ide/content/selenium/scripts/selenium-executionloop.js:112 (5)@chrome://selenium-ide/content/selenium/scripts/selenium-executionloop.js:78 apply([object Object],[object Array])@:0 (5)@chrome://selenium-ide/content/selenium/scripts/htmlutils.js:60 @:0 , name -> TypeError
can anybody help me with this issue?
Cookies
Автор p0inter, 31 июл 2007 15:26
В теме одно сообщение
#1
Отправлено 31 июля 2007 - 15:26
#2
Отправлено 31 июля 2007 - 15:48
it seems i make removeCookie not to produce an error by changing user-extensions.js
(i replace "createCookie(this.page().currentDocument, text, "", path, -1);" with "createCookie(this.browserbot.getDocument(), text, "", path, -1);")
function works without any error message, but the cookie still present :(
(i replace "createCookie(this.page().currentDocument, text, "", path, -1);" with "createCookie(this.browserbot.getDocument(), text, "", path, -1);")
function works without any error message, but the cookie still present :(
Количество пользователей, читающих эту тему: 0
0 пользователей, 0 гостей, 0 анонимных