I would like to change the css of the element as follows. It works fine when:
browser.execute_script(
"arguments[0].style.display = 'block';",
browser.find_element_by_xpath("//div[@role='main']/div/div/div["+str(d)+"]/div["+str(r)+"]/div/div[2]")
)
but when I try to add the "!important", the code was not updated:
browser.execute_script(
"arguments[0].style.display = 'block!important';",
browser.find_element_by_xpath("//div[@role='main']/div/div/div["+str(d)+"]/div["+str(r)+"]/div/div[2]")
)