How can I programatically test which CSS elements match my XHTML?
Posted
by Shawn Lauzon
on Stack Overflow
See other posts from Stack Overflow
or by Shawn Lauzon
Published on 2010-06-01T03:38:36Z
Indexed on
2010/06/01
3:43 UTC
Read the original article
Hit count: 294
I have an application which generates XHTML documents which are styled with (mostly) static CSS. I'm currently using XPath and Hamcrest (Java) to verify that the documents are constructed correctly. However, I also need to verify that the correct CSS properties are matched. For example, I would like a test like this:
Given XHTML element Foo, verify that the property "text-transform:uppercase" is applied.
Ideally, I would like a Java framework that provides this. I've looked a bit at Selenium, but I don't see this type of functionality. Thanks ...
© Stack Overflow or respective owner