Q: Is it possible to get Webelemnt attribute "id"
I want to check all html h2 for some attributes. I created a function Verify font style to check element properties using javascript. But to use those functions I need "id" of those elements.
Is there a way in Robot Framework how to get "id' of Webelement?
@{elements} = Get Webelements xpath=//h2 #1. get all webelements h2
: FOR ${ELEMENT} IN @{elements}
\ ${id} Get Element Attribute ${ELEMENT}@id # this does not work
\ Verify font style ${id} ${col_subtext} start 16px 300 # here I need id
Thank you for your suggestions.