Categories
javascript selenium selenium-ide testing

selenium IDE trying to get margin-bottom value

I’m trying to get the value of the bottom margin of an element on my page. The page has a select box that allows the visitor to adjust the botttom margin of an element. I want to create a script that changes the value and then checks that the bottom margin has been changed. I’ve done a similar thing with the height parameter but there is a specific assert for that. How do I access the bottom margin.

I’ve tried assertAtribute [email¬†protected]

but this just gives the whole stlye which includes other values.

I’ve included my height script below although it’s not been much help to me

<tr>
<td>select</td>
<td>headerHeightSet</td>
<td>label=100</td>
</tr>
<tr>
<td>storeSelectedValue</td>
<td>headerHeightSet</td>
<td>topMarginValue</td>
</tr>
<tr>
<td>assertElementHeight</td>
<td>wemakeSheetHeaderJpg</td>
<td>${topMarginValue}</td>
</tr>