Selenium IDE – Check CSS style
Checking the CSS style of elements its not so stright forward in Selenium IDE. Here is an example to check the left padding of an element: Command: assertEval Target: window.document.defaultView.getComputedStyle(window.document.getElementsByClassName(‘login-logout’)[0]).getPropertyValue(‘padding-left’) Value: 5px The same way you can check most of the CSS defined properties. Instead of window you can use selenium.browserbot.getCurrentWindow().
Read More