Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Description.creat method
#1
Solved: 10 Years, 9 Months ago
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 ....
Reply
#2
Solved: 10 Years, 9 Months ago
Try the below ....

Code:
vCount = val.Count

For i = 0 to vCount - 1
     val(i).highlight
     val(i).Click
Next
Reply
#3
Solved: 10 Years, 9 Months ago
(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
Reply
#4
Solved: 10 Years, 9 Months ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Taking Property values in Description objet throw Excel Sheet devarapallliramana 3 2,883 03-11-2014, 10:50 PM
Last Post: supputuri
  error with msdn's description of overwrite value of CreateTextFile ?? anu05446 1 2,439 03-10-2014, 02:48 PM
Last Post: basanth27
  Description about Types of Ordinal Identifier abhijit.airforce 1 2,374 12-27-2013, 02:57 PM
Last Post: Ankesh
  WebElementobject's description matches more than one of the objects sumanth 5 3,572 10-29-2013, 03:15 PM
Last Post: Sathiya
Sad Empty Server description SAP GUI 7.20 with QTP11 sylvester618 2 4,565 09-10-2013, 06:05 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)