Jump to content



Photo

Click A Constantly Changing Number?


  • Please log in to reply
2 replies to this topic

#1 myubo

myubo

    Member

  • Members
  • PipPip
  • 15 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 06 June 2019 - 04:16 PM

So I'm trying to click on this innertext on the code below, but since the NUMBER before the word VIEW, and CLASS constantly change how would I go about this?

<div class="tBJ dyH iFc">36 Views</div>

I was hopping something like this would work but it doesn't: 

click(<innertext="* Views">,"Left Click","No") 

Edited by myubo, 06 June 2019 - 04:20 PM.


#2 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 3128 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 06 June 2019 - 05:19 PM

You're close, in the advanced element editor change Exact Match to Wildcard and you get this:

click(<innertext=w"* Views">,"Left Click","No")


#3 myubo

myubo

    Member

  • Members
  • PipPip
  • 15 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 06 June 2019 - 05:24 PM

Wow thanks so much!  I've needed this in the past but didn't know it was possible so I figured out another way of doing it.  Should have posted a question a long time ago :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users