P
P
PyotR3213ty542022-03-02 10:02:03
selenium
PyotR3213ty54, 2022-03-02 10:02:03

How to change structure with selenium?

On the site, using the element code, you can change any parameters in the html code of the page.
These changes will only be visible to me (until I refresh the page).
How to change these parameters using selenium (for example, in the source code of the page there is a tag , it has a display: none parameter. The task is to remove display: none. But not manually, but using selenium. Is it possible to do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Kuts, 2022-03-02
@PyotR3213ty54

Change any parameters in the html code of the page.
These changes will only be visible to me (until I refresh the page).

In general, on your client, you can do something like this:
driver.execute_script('document.getElementById("someID").style.visibility = "visible"')

D
Dr. Bacon, 2022-03-02
@bacon

No, to do this, you need to change the code on the server, selenium does not have such an option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question