Hello,
I want to count the number of WebElements with the propertie "innertext" and the values "Blue Skies Airlines 360" AND "Blue Skies Airlines 361". On my AUT there are two of these objects on my page.
This is my QTP code:
----------------------------------------------------------------------
----------------------------------------------------------------------
I run with the "Run one iteration only" option.
The number of flights QTP returns is 1 and not the expected 2.
What i am doing wrong?
(i think i have to build in a loop, but i cannot get it ok)
I want to count the number of WebElements with the propertie "innertext" and the values "Blue Skies Airlines 360" AND "Blue Skies Airlines 361". On my AUT there are two of these objects on my page.
This is my QTP code:
----------------------------------------------------------------------
Code:
Set flight=Description.Create()
flight("micclass").value="WebElement"
flight("innertext").value="Blue Skies Airlines 360"
flight("innertext").value="Blue Skies Airlines 361"
flight("html tag").value="B"
set nflights = Browser("name").Page("title").ChildObjects(flight)
msgbox "Number of flights: " &nflights.Count
I run with the "Run one iteration only" option.
The number of flights QTP returns is 1 and not the expected 2.
What i am doing wrong?
(i think i have to build in a loop, but i cannot get it ok)