-
Junior Member
how to verify searched results in a web portal
Hi all,
i am working on a "search engine" with QTP 9.5. During automation i faced few problems.
1- How to verify all the searched results on page 1 of a web portal in QTP?
2- how to verify searched results on 2-3 page of the web portal?????
please give me some solution.
Thanks and Regards
-
Expert Member
Re: how to verify searched results in a web portal??????
1. In the Search Result check the Format of the Search String(e.g Bold, colored).
2. FOr your Check capture all the search data, if it might be webElement's .
3. use inStr for the "Searched string".
4. A counter for 1,2,3 page
oD = Description.Create()
oD("micclass").Value = "WebElement"
oD("html id").Value =
oDOBJ = Browser(b).Page(p).ChildElements(oD)
USe Step 1,2,3 for each looping of oDOBJ(count).
regards,
Nawab
-
Junior Member
Re: how to verify searched results in a web portal??????
Hi Nawab,
thanks a lot for ur reply. i m still confused........plz give me a solution with an example of "nauki.com"........i hav tired ur approach on "naukri.com".....but unable to automate it.
nawab, plz give me solution with example of "naukri.com"
thank a lot
vikas goyal
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules