0

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 ?

1
  • Mention the relevant html code in your question, and specify the library used. Commented Jul 5, 2016 at 19:20

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

Comments

-1

You can use the keyword Get Value that returns the value attribute of element identified by locator.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.