Check more than one text presence

maxipr

Новичок
Регистрация
05.06.2011
Сообщения
20
Благодарностей
0
Баллы
0
Hi all,

For example, when I successfully sign up an account at a page, the text on the webpage could be:
text 1: "Your account is created"
or
text 2: "You have created an account"

Is it possible for me to check if the page contain text 1 or text 2? What is the script to do this? Thanks a lot.
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
yes it is...

text 1|text 2


this should work :-)
 
  • Спасибо
Реакции: maxipr

maxipr

Новичок
Регистрация
05.06.2011
Сообщения
20
Благодарностей
0
Баллы
0
Thanks bro. Could you show me to the example code? What is your input in:
1. Parameter
2. in the field of logic (like this '{-FieldData.FieldData-|-●8●3●0●6●9●9●-|-tp-3084-}'!='')
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
Im noob, just like you... :-)

but if there is something i know, im glad to help you.


Ok, so this should be done this way

1. in "Get page text" parameter you input your text you are looking for: text1|text2|text3

2. Now you copy "Execution result" line

3. Go to next step "Logic" and PASTE that line which you copied in expression field '{-FieldData.FieldData-|-●8●3●0●6●9●9●-|-tp-3084-}'!=''


That should solve the problem.
 
  • Спасибо
Реакции: manbooobs и maxipr

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)