I am writing an automation test script using Robot Framework & Selenium2Library for testing our web application. One of my test cases involves checking the CSS style attribute of an HTML tag.
Is there any option in Robot Framework to obtain the CSS style attributes of an HTML element?
Here is my HTML:
<div id="check_style" style="width:20px;height:20px;background-color:#ffcc00;"></div>
Now, I have to store the background color of this particular html tag into a variable ${bg_color}
. Is there any specific keyword in Robot Framework to do this process?
Can you please suggest an effective way to handle this situation?