04-11-2008, 07:57 PM
(This post was last modified: 04-11-2008, 07:59 PM by ConstantChange.)
Hi all!
How is this possible:
When I run the following code:
outputting found.count will pop up 32 on a certain page (meaning it has found 32 objects that match)
Now, if I add this line: desc("index").value="0" (or 1), so the code is this:
Now, found.count returns 0. How is that possible, according to this:
https://www.learnqtp.com/descriptive-pro...implified/
the "index" property is totally valid!? Why doesnt it work for me?
Thanks very much in advance!
Cheers,
CC
How is this possible:
When I run the following code:
Code:
Set desc=Description.Create
desc("href").value=".*/displayAuction\.do\?auctionId.*"
desc("html tag").value="A"
found=Browser("Browser").Page("GeneralApplication").ChildObjects(desc)
outputting found.count will pop up 32 on a certain page (meaning it has found 32 objects that match)
Now, if I add this line: desc("index").value="0" (or 1), so the code is this:
Code:
Set desc=Description.Create
desc("href").value=".*/displayAuction\.do\?auctionId.*"
desc("html tag").value="A"
desc("index").value="0"
found=Browser("Browser").Page("GeneralApplication").ChildObjects(desc)
Now, found.count returns 0. How is that possible, according to this:
https://www.learnqtp.com/descriptive-pro...implified/
the "index" property is totally valid!? Why doesnt it work for me?
Thanks very much in advance!
Cheers,
CC