How to fetch web elements count from Google Page which
contains letter "e"

Answer Posted / aiswaryan

Set googlePage = Browser("title:=Google").Page
("title:=Google")
Set objDesc = Description.Create
objDesc("micclass").value = "WebElement"
objDesc("innertext").value = ".*e.*"
weCount = googlePage.childobjects(objDesc).count
msgbox weCount

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you are developing the script? Using record and play back or manual?

704


Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?

1586


What is checking bitmaps?

659


What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this

1490


how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?

1410






What is the pros and cons between QTP and Rational Robot

3370


How QTP support all types of applications (platforms)?

4145


What are the different types of recording modes?

614


Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

2204


how will load the object during runtime?

1672


Can we run multiple QTP scripts one after the other without manual intervention? How?

683


What is object repository in qtp?

645


Explain the check points in quicktest professional (qtp)?

669


In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

2028


I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all

1618