Answer the question
In order to leave comments, you need to log in
How to click on a specific element of the site using userscript?
I need to click on an object flying from the top of the screen. Can you explain what I need to use to send a click to the desired element(document.getElement....click()). And in parallel with the first explanation, explain how such elements usually work, how to find them, exactly those that need to be clicked on in order for the item to work.
<div class="b-falling-gifts__item" style="left: 26%;"><div class="b-falling-gifts__item-inner"><div><div class="b-falling-gifts__gift"><!-- react-text: 992 -->0.01<!-- /react-text --><span class="b-falling-gifts__unit">р</span></div><div class="b-falling-gifts__gift2"><!-- react-text: 995 -->0.01<!-- /react-text --><span class="b-falling-gifts__unit">р</span></div></div></div></div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question