2

I wanted to know how to write test scripts to test font style, color, size etc using python selenium if anyone of you knows can you please share me the appropriate links. ('i mean study material links')

asked Oct 26, 2018 at 7:54

1 Answer 1

4

element.value_of_css_property(property name (string)) will return value of the specified property, e.g. element.value_of_css_property("font-size") returns the CSS "font-size" value.

Here are the docs: link

answered Oct 26, 2018 at 8:21
1
  • 1
    OBS: Good to note this is just a functional test. It is not a certaity of visual rendering. To check if the browser is rendering the DOM correctly, you would need a Visual Testing Tool. Commented Oct 26, 2018 at 12:20

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.