Check If HTML Element Exists

  • Автор темы Автор темы nibbr
  • Дата начала Дата начала

nibbr

Новичок
Регистрация
23.08.2012
Сообщения
1
Реакции
0
Баллы
0
Hi

Is there a way to check if an element exists on a page? I am looping over different blogs to post comments, but some of them don't have the same fields; i need to check if specific fields are present otherwise it crashes out saying element is not found.
 
You can handle negative exit of action - this way you will know that there is no such an element on this page. Or you can set some of them as optional
 
Hi

Is there a way to check if an element exists on a page? I am looping over different blogs to post comments, but some of them don't have the same fields; i need to check if specific fields are present otherwise it crashes out saying element is not found.

Use action check text on page. Example check if there is username field. If yes fill it if no go to next field. Use take text from page and with logic if step
 

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