Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is this black magic or a bug?
#1
Solved: 10 Years, 9 Months ago
Hi all!

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
Reply


Messages In This Thread
is this black magic or a bug? - by ConstantChange - 04-11-2008, 07:57 PM
RE: is this black magic or a bug? - by Ankur - 04-18-2008, 10:35 PM
RE: is this black magic or a bug? - by FredMan - 04-23-2008, 01:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Regarding the bug when i select weedit ,webbutton,link siri 3 2,848 03-17-2008, 04:19 PM
Last Post: siri

Forum Jump:


Users browsing this thread: 1 Guest(s)