how to get #matches from an html element search?

zenewbie

Client
Регистрация
25.12.2013
Сообщения
215
Благодарностей
17
Баллы
18
How do I put the number of matches it found from an element search into a variable?
For example search for the width of an object and not get the value of it, but instead how many matches it actually found?
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 771
Благодарностей
1 183
Баллы
113
How do I put the number of matches it found from an element search into a variable?
For example search for the width of an object and not get the value of it, but instead how many matches it actually found?
C# code for that:
Need to replace element attributes with yours.

C#:
var tab = instance.ActiveTab;
HtmlElementCollection heCol;
heCol = tab.FindElementsByAttribute("button", "id", @"signUpButton", "text");
return heCol.Count();
 

zenewbie

Client
Регистрация
25.12.2013
Сообщения
215
Благодарностей
17
Баллы
18
Thanks a lot!
 

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