Reputation: 651
Check AppData Count
${count}= Get Text css:mycssLocator
Log ${count}
[Return] ${count}
I am trying to get a count from a css locator and then return the text for use in other keywords, however I'm not sure that my syntax is working correctly.
When I try and use ${count} in a subsequent keyword, it isn't found - I understood [Return] as making the return available outside the keyword scope?
Upvotes: 0
Views: 129
Reputation: 385970
You must save the value returned by a keyword if you want to use it later.
For example:
${count}= check appdata count
log count: ${count}
Upvotes: 1