Micro Focus QTP (UFT) Forums
Description.creat method - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Description.creat method (/Thread-Description-creat-method)



Description.creat method - silpavinod - 10-10-2012

Code:
Set odesc=Description.Create
odesc("micclass").value="WebElement"
Browser("Link Express - Booking").Page("Link Express - Booking_2").WebElement("21st Century Insurance").Highlight
Set val= Browser("Link Express - Booking").Page("Link Express - Booking_2").WebElement("21st Century Insurance").ChildObjects(odesc)

Msgbox val.count

By the above steps i got the count 8094

Now how to click on particular element.

please help me ....


RE: Description.creat method - ssvali - 10-10-2012

Try the below ....

Code:
vCount = val.Count

For i = 0 to vCount - 1
     val(i).highlight
     val(i).Click
Next



RE: Description.creat method - silpavinod - 10-11-2012

(10-10-2012, 03:35 PM)ssvali Wrote: Try the below ....

vCount = val.Count

For i = 0 to vCount - 1
val(i).highlight
val(i).Click
Next

[quote='silpavinod' pid='22874' dateline='1349859915']
Set odesc=Description.Create
odesc("micclass").value="WebElement"
Browser("Link Express - Booking").Page("Link Express - Booking_2").WebElement("21st Century Insurance").Highlight
Set val= Browser("Link Express - Booking").Page("Link Express - Booking_2").WebElement("21st Century Insurance").ChildObjects(odesc)

Msgbox val.count

By the above steps i got the count 8094

Now how to click on particular element.

please help me ....
[/quote)


Ya its working thanks a lot


RE: Description.creat method - ssvali - 10-11-2012

My pleasure.

(10-11-2012, 02:51 PM)silpavinod Wrote:
(10-10-2012, 03:35 PM)ssvali Wrote: Try the below ....

vCount = val.Count

For i = 0 to vCount - 1
val(i).highlight
val(i).Click
Next

[quote='silpavinod' pid='22874' dateline='1349859915']
Set odesc=Description.Create
odesc("micclass").value="WebElement"
Browser("Link Express - Booking").Page("Link Express - Booking_2").WebElement("21st Century Insurance").Highlight
Set val= Browser("Link Express - Booking").Page("Link Express - Booking_2").WebElement("21st Century Insurance").ChildObjects(odesc)

Msgbox val.count

By the above steps i got the count 8094

Now how to click on particular element.

please help me ....
[/quote)


Ya its working thanks a lot