Jump to content



Photo

Count Elements?

elements

  • Please log in to reply
2 replies to this topic

#1 sifuhall

sifuhall

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 62 posts
  • LocationLexington Ky
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 21 October 2019 - 06:01 AM

Is there are quick way to count the number of times a particular element appears on a page?

For example count how many times a textarea with a placeholder that matches the wildcard expression "* please reply here"?



#2 pash

pash

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3377 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 21 October 2019 - 07:24 PM

try

alert($list total($scrape attribute(<tagname="p">,"outerhtml")))

New Plugin:: Advanced Facebook | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint
- Advanced Data Text File | Advanced DateTime | Advanced Dialog | Advanced Document | Advanced Google Blogger V3 | Advanced Google Drive | Advanced Google YouTube V3 | Advanced Image | Advanced Video | Advanced Screen and Windows | Advanced Systems | Advanced Ubot 1 | Advanced Ubot 2 | Advanced WordPress | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint

- Advanced Captcha (V3) | Advanced Captcha (V2) (Old) | Create Table From Excel (Lite) | Check Conection | Ubot Enter License | Auto Free Memory
- Working hours GMT+7. i regret sometimes the answer is delayed due to health problems.


#3 sifuhall

sifuhall

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 62 posts
  • LocationLexington Ky
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 22 October 2019 - 05:23 AM

Perfect!  Thank you!







Also tagged with one or more of these keywords: elements

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users