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

Answer Posted / aiswaryan

'Try below code
Set oelement=description.Create
oelement("micclass").value="WebElement"
set elements=Browser("Title:=Google").page
("Title:=Google").ChildObjects(oelement)
cnt= elements.count

For i= 0 to cnt-1
elementname=Browser("Title:=Google").page
("Title:=Google").WebElement
("micclass:=WebElement","index:="&i).getROproperty
("innertext")
Next

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?

1528


What is the pros and cons between QTP and Rational Robot

3284


When ‘option explicit’ keyword is used in qtp?

750


What is the use of sendkeys and what are send keys

1953


in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded

1523






What is system testing and what are the different types of tests you perform in system testing?

601


Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

1486


What is use of object spy?

612


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

576


Give the syntax to load function at run time.

629


Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance

1740


How you can decide which type of object repository you have to use?

703


What are test settings and global settings?

579


Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B

2910


after initiating one project for testing, when exacltly QTP tester role starts?

1401