I am in process of evaluating Galen as UI automation framework. I am blocked at one point where Galen is unable to give correct results in case of padding around an element. This is the sample DOM.
<html>
<body>
<div id="div1" style="background-color: yellow; height:200px; width:500px">
<div id="div2" style="padding-left:15px; padding-right:15px; background-color: red; height:100px;">
<h2>TEST CONTENT</h2>
</div>
</div>
</body>
</html>
My spec file reads as below
@objects
div1 //div[@id="div1"]
div2 //div[@id="div2"]/h2
= Personal Tab =
@on desktop
div2:
inside div1 15px left right
On running the test the failure message reads something like below
div2 is 0px right instead of 15px
I read one of the posts which suggested to use CSS properties using selenium. I do not want to use this method. Instead if there is anything provided by Galen would be useful
Any clues what can be alternative to solve the puzzle ?