How to read certain text from HTML source and verify that in Rational robot
We have webpages in which there are certain html tags or image tags that are displayed as hidden. Ofcourse, I can't test that if I can't see it using Rational robot.
Last release, we have implemented a small piece of code that will display a html and img tag in the html source but not viewable on the screen. Both are invisible. They can only be seen through View source option. I want to check it through Rational Robot automation that every page that user lands on, the script should check for that attribute. How do I do that using Rational Robot?
Re: How to read certain text from HTML source and verify that in Rational robot
Have you tried using SQAFindObject to see if the hidden object is there?
I would probably use SQAGetProperty to get the innerHTML of the object - even if its hidden but is present robot should be able to extract this, and then verify the HTML for the VISIBILITY: hidden statement.
Alternatively if the currentstyle.visibility property is set on the object then you could use SQAGetProperty to extract this for the object.