how to get #matches from an html element search?

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

zenewbie

Client
Регистрация
25.12.2013
Сообщения
218
Реакции
18
Баллы
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?
 
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();
 
Thanks a lot!
 

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