Groza
(95)
1
Good day. Please give me all the available commands to retrieve data from sites.
I only know these
document.getElementById(“ХХХХХ”).value = “ХХХХХ
document.getElementsByClassName(ХХХХХХХХХ”)[0].click();
document.getElementsById(ХХХХХХХХХ").click();
document.getElementById(“ХХХХХ”).innerText
document.getElementsByClassName(“ХХХХХ”)[0].innerText
What other commands are there? if for example I want to get the text from the field,
how can I do it?
document.getElementById(“word”).value = "привет
doesn’t work like that
Decoder_360
(The Decoder 360)
2
What actually You wanna do ??
Groza
(95)
3
make a request with the command
pkalyan
(Pavan kalyan)
4
document.getElementById(“word”).value;
Decoder_360
(The Decoder 360)
5
If you want the text volue written
Then Try this
document.getElementById(“word”).textContent;
Or .innerText
Groza
(95)
6
thanks, this command gets the text. I need to make a request like in the screenshot.
MosEngWeb
(A master of software who speaks English on the Web)
7
If it worked for you, you should mark the answer that worked for you as a solution, please!
Groza
(95)
8
I’ll only be at home tomorrow, at the computer. I can’t check now.
TimAi2
(metricrat)
12
See here to return all data from a fully loaded/rendered dynamic web page
Groza
(95)
14
I sent the link to you in a personal message
Groza
(95)
16
Thank you very much for helping me.
Groza
(95)
17
Good day
if I enter data on the site manually, then when I click, the button is triggered
Groza
(95)
18
<ul class="nav free-likes-tabs nav-tabs tpl-minimal-tabs" style="font-size: 15px">
<li class="">
<a href="#" data-type="likes">Option 1</a>
</li>
<li class="active">
<a href="#" data-type="views">Option 2</a>
</li>
</ul>
</div>
Please tell me how to make this request correctly? data-type = “views”
document.getElementsByClassName(“???”)[0].click();
Decoder_360
(The Decoder 360)
19
Do you wanna perform click on views ?
Use this
document.getElementsByClassName(“active”)[0].click();
1 Like
Groza
(95)
20
Я попробую позже. Спасбо вам большое. И с новым годом вас. Желаю вам в 2022 чтобы у вас было все хорошо.