Commands js how to get data

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

What actually You wanna do ??

make a request with the command

document.getElementById(“word”).value;

If you want the text volue written
Then Try this

document.getElementById(“word”).textContent;

Or .innerText

thanks, this command gets the text. I need to make a request like in the screenshot.

If it worked for you, you should mark the answer that worked for you as a solution, please!

I’ll only be at home tomorrow, at the computer. I can’t check now.

ok sure then

document.getElementById(“word”).textContent;

does not work

does not work

See here to return all data from a fully loaded/rendered dynamic web page

Send the website Url

I sent the link to you in a personal message

Okay sent me in pm

1 Like

Thank you very much for helping me.

Good day

if I enter data on the site manually, then when I click, the button is triggered

        <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();

Do you wanna perform click on views ?

Use this

document.getElementsByClassName(“active”)[0].click();

1 Like

Я попробую позже. Спасбо вам большое. И с новым годом вас. Желаю вам в 2022 чтобы у вас было все хорошо.