Sign in to follow this  
Followers 0
Dgameman1

Check the 'data-reactid' of a tag

2 posts in this topic

#1 ·  Posted (edited)

Quote

<div class="decoration" data-reactid=".2.2.0.1.$=1$advanced-filter-availability.2.1.$short_term_dating.2">

    ::after

</div>

TuzJVmV.png

I want to check to see if the the 'data-reactid' matches

Here's what I attempted to write up

If $AvailableLookingFor.data-reactid = ".2.2.0.1.$=1$advanced-filter-availability.2.1.$new_friends.2" And $AvailableLookingFor.classname = "decoration" And $AvailableLookingFor.innertext = "::after" Then
                    _IEAction($AvailableLookingFor, "click")
EndIf

But I get an error saying...

"C:\Users\Dgameman1l\Desktop\Tessst.au3"(324,42) : error: reactid(): undefined function.
                If $AvailableLookingFor.data-reactid =

 

Any ideas?

Edited by Dgameman1

Share this post


Link to post
Share on other sites



I ended up finding the nearest ID and used a bunch of .nextElementSibling to get the job done :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0