Перейти к содержимому

Публикации p0inter

7 публикаций создано p0inter (учитываются публикации только с 24 апреля 2023)


#55416 Работа с Pop Up в Ruby/Watir

Отправлено автор: p0inter 15 апреля 2008 - 21:31 в Автоматизированное тестирование

Как, используя Watir, кликнуть по MessegeBox, созданному при помощи JavaScript (Pop Up)?


http://wiki.openqa.o...Security Alerts



#44826 Cookies

Отправлено автор: p0inter 31 июля 2007 - 15:48 в Selenium - Functional Testing

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 :(



#44824 Cookies

Отправлено автор: p0inter 31 июля 2007 - 15:26 в Selenium - Functional Testing

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?



#44667 Переменные Внутри Waitforcondition

Отправлено автор: p0inter 26 июля 2007 - 17:04 в Selenium - Functional Testing

Здравствуйте. Столкнулся со следующей проблемой: не работает waitForCondition при использовании внутри условия переменной:

var str=selenium.getHtmlSource();str.indexOf('text123') != -1;

это условие работает нормально, но если text123 будет являться значением переменной и она будет подставляться внутрь условия - функция перестаёт работать.

store |text123| myVar
waitForCondition | var str=selenium.getHtmlSource();str.indexOf(${myVar}) != -1; | 5000

Подскажите пожалуйста как правильно использовать переменные внутри условия?



#44581 Циклы В Selenium Ide

Отправлено автор: p0inter 24 июля 2007 - 09:43 в Selenium - Functional Testing

спасибо



#44580 Storeeval

Отправлено автор: p0inter 24 июля 2007 - 09:42 в Selenium - Functional Testing

storeEval | ${portName}+'edited' | myVar
при конкатенации переменной и строки, получаю следующую ошибку:

[error] Threw an exception: missing ; before statement.

Пробовал так,
storeEval | javascript{storedVars['portName']+'edited'} | myVar

но тоже получил ошибку:
[error] Threw an exception: undefinededited is not defined.
переменная portName была определена до этого как:

<tr>
<td>store</td>
<td>javascript{'Simple Portfolio' + Math.round(1000*Math.random())}</td>
<td>pName</td>
</tr>
<tr>
<td>storeGlobal</td>
<td>javascript{storedVars['pName']}</td>
<td>portName</td>
</tr>



#44321 Циклы В Selenium Ide

Отправлено автор: p0inter 13 июля 2007 - 14:36 в Selenium - Functional Testing

Здравствуйте,
подскажите пожалуйста действующий способ использования циклов для Selenium IDE.