U
U
Uncle Bogdan2021-05-28 11:25:56
C++ / C#
Uncle Bogdan, 2021-05-28 11:25:56

How to enter the result of a script into a variable?

Like I'm running js, but how can I put some value of the result into a variable?
Tipo:

var element = document.getElementById("povar").textContent;


and how is it in C# to a variable
Now like this:
string script = "var element = document.getElementById('povar').textContent;";
            browser.ExecuteScriptAsync(script);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question