Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,
How can i click button in this photo


https://yadi.sk/i/xh9luQw1HiUndQ


<li id="9a73ca5d58074b" class="favoriteClass"><span>acracr</span><button class="fa fa-star-o"></button></li>


What I have tried:

 For Each b In .document.getElementsByCLASSName("favoriteClass")
If b.innertex = "acracr" Then
 b.Click
 End If
  Next
Posted
Updated 20-Aug-20 5:43am
v3
Comments
CHill60 20-Aug-20 6:49am    
You have just tried to repost this question. The link is blocked for many of us who are at work. Find another way to describe your problem - like posting the HTML here for example
CHill60 20-Aug-20 12:05pm    
What?
Member 14588284 20-Aug-20 14:56pm    
i write it first message but when i pasteit here then
only "acracr" remains
CHill60 21-Aug-20 4:11am    
that is because you posted html into a comment. If you ever need to do that then start with <pre>, paste your code and finish with </pre> - by the way I wrote that with the characters & l t ; etc
Member 14588284 21-Aug-20 14:01pm    
<li id="9a73ca5d58074b" class="favoriteClass"><span>acracr</span><button class="fa fa-star-o"></button></li> 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900