07-30-2012, 04:42 PM
Hi all..
I am having Webtable in page ..From that webtable I would like to count number of webelements with name of "PDF" or "XLS".
Code I am using,
Now I'm getting Output is :- 5. Bcoz I defined only "XLS" in Description.
But I need the count of webelement object with the name of "PDF" as well as "XLS".
Pls help me to get solution for this.
attaching screenshot.PF
I am having Webtable in page ..From that webtable I would like to count number of webelements with name of "PDF" or "XLS".
Code I am using,
Code:
Set Desc_Element = Description.Create()
Desc_Element("micclass").value = "WebElement"
Desc_Element("name").Value = ".*XLS.*"
Set Element= Browser("XXX").Page("XXX").WebTable("XXX").childobjects(Desc_Element )
MsgBox "Number of Elements: " & Element.Count
Now I'm getting Output is :- 5. Bcoz I defined only "XLS" in Description.
But I need the count of webelement object with the name of "PDF" as well as "XLS".
Pls help me to get solution for this.
attaching screenshot.PF