QTP Script To Count Number Of Buttons In a Webpage-QTP Scripts-QTP Script To Count Number Of Checkboxes In a Webpage

Script to count no. of buttons in a webpage in Quick Test Professional(QTP).

Check here for QTP Script to count no. of checkboxes in a webpage.

Ex 1:

SystemUtil.Run"www.google.com"
Set g=Browser("name:=Google").Page("title:=Google")
Set aa=description.Create
aa("html tag").value="INPUT"
aa("type").value="submit"
Set bb=g.childobjects(aa)
cc=bb.count
msgbox "number of buttons in a webpage=" & cc


Ex 2:

SystemUtil.Run"www.yahoomail.com"
Set g=Browser("name:=Yahoo! Mail: The best web-based email!").Page("title:=Yahoo! Mail: The best web-based email!")
Set aa=description.Create
aa("html tag").value="INPUT"
aa("type").value="submit"
Set bb=g.childobjects(aa)
msgbox "number of buttons in a webpage=" & bb.count

Check here for QTP Script to count no. of checkboxes in a webpage.
SQL Queries Collection
Movie Songs Lyrics
VB Script to insert values into database table in QTP
QTP Script to delete a particular row in an excelsheet.

3 comments:

Ganesh Raman said...

Hi
I am Ganesh Raman, I am an QA. I went through your blog, this is really a good and informative blog. Especially i liked your this write-up where you have about "QTP Script To Count Number Of Buttons In a Webpage-QTP Scripts-QTP Script To Count Number Of Checkboxes In a Webpage".
i really like the way u had presented your post. But i think it will be really much better if you added few more stuffs with this article...Im also Posting my blogs @ http://softwaretestinginterviewfaqs.blogspot.com When you find time do visit my blog and give your suggestions Too…..

Thanks In Advance
Ganesh Raman
http://softwaretestinginterviewfaqs.blogspot.com

Padmanaban said...

This scrips works well. Looking for Software jobs

Hapi said...

hello... hapi blogging... have a nice day! just visiting here....

Related Posts Plugin for WordPress, Blogger...