urgent-finding an element

webmuthu

Пользователь
Регистрация
27.11.2012
Сообщения
43
Благодарностей
0
Баллы
6
how can i use IF to find an element in a page. any samples
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
The IF is a javascript conditional statement. If something exists on the page => then do something, if not then do something else. You need to use regular expressions (regular-expression.info) to find out if the element is on the page, save it to a variable and then use logical IF to check for its existence.

If you want to check for text existence on a page, highlight the text you are searching for and then right click and choose selected text presence check. this will save all the necessary actions to check for the text.

http://screencast.com/t/bNLIeySJ6TI
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 771
Благодарностей
1 183
Баллы
113

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