I get an element like
cv_upload = driver.find_element_by_id('id_cv_upload')
So I want to set its display as inline in python itself.is it possible with python to set the display. I tried
cv_upload.style.display = "inline"
which is showing me error.
One way which is getting into my mind is to use Jquery to change the display and then execute it using driver.execute
but unfortunately I am not getting the right syntax to do this. Let me know how to do this (The syntax.) Thanks.
since you marked jQuery - You can use the css() function to set/get css attributes
$('#id_cv_upload').css('display','inline');