I\'m trying to change CSS style of an element (example: from \"visibility: hidden;\" to \"visibility: visible;\") using selenium .execute_scr
\"visibility: hidden;\"
\"visibility: visible;\"
.execute_scr
Here is solution i found using document style sheets. This way is great because you can also add pseudo class styling.
script = 'document.styleSheets[0].insertRule("button:focus {background-color: red !important;}", 0 )' driver.execute_script(script)