How to get CSS value (e.g. color) of an element using selenium webdriver in Python

I know that in Java you can use getCSSvalue, so is there any equivalent in Python? Thanks

+4
source share
1 answer

element.value_of_css_property(property_name)should be equivalent to Python Selenium web browser getCSSvalue().

The documentation can be found on the readthedocs page: Link

+8
source

Source: https://habr.com/ru/post/1543071/


All Articles