Need to check highlighting and document map!
two issues automating which I am facing problem:
1) On a WebPage, I need to check whether the text (on the page) is highlighted after checking/unchecking the checkbox on the page
2) clicking on different sections in the document map on the left hand side of the page is taking the visible page to the correct section.
Please let me know if anyone has any idea on how to do these checks in QTP
Please let me know if anyone needs more information.
Re: Need to check highlighting and document map!
For the highlighting, you may be able to check a CSS property. Something like:
This page has more info and a range of possible properties: http://motevich.blogspot.com/2007/09...und-color.html
To check that the correct section is displayed, you might use the GetVisibleText method on the page and see that the expected text is at the top. Note: This uses OCR, so it might be flaky.
<font color="#6B6B6B">Scott Genevish