vbscript - To get no. of buttons on Google homepage using Static descriptive programming in QTP -


i wanted count no. of objects on google homepage using static programming, mean without creating object first(the way in dynamic one).

pls tell me wrong in below statement

set p = browser("creationtime:=0").page("title:=google").webbutton("type:=submit","html tag:=input")  msgbox p.count() 

pls help, screenshot of error attached here.

thanks

you can total number of buttons using descriptive approach.

set odesc = description.create() odesc("micclass").value="webbutton" set = browser("creationtime:=0").page("title:=google").childobjects(odesc)  msgbox i.count()  set = nothing : set odesc = nothing 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -