I want to fetch the value of aria-expanded from below xpath //div[@id='contact-information']//div[@aria-expanded='false']
Which keyword should I use ?
I want to fetch the value of aria-expanded from below xpath //div[@id='contact-information']//div[@aria-expanded='false']
Which keyword should I use ?
Selenium2Library.Get Element Attribute should do the trick.
http://robotframework.org/Selenium2Library/doc/Selenium2Library.html#Get%20Element%20Attribute
example: Get Element Attribute //div[@id='contact-information']//div[@aria-expanded='false']@aria-expanded
You can use the keyword Get Value that returns the value attribute of element identified by locator.