Answer the question
In order to leave comments, you need to log in
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
Change any parameters in the html code of the page.
These changes will only be visible to me (until I refresh the page).
driver.execute_script('document.getElementById("someID").style.visibility = "visible"')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question