Search code examples
vbscriptqtphp-uft

How to click a particular Row in WpfCalendar of Flights Reservation Application in UFT


As per need, I want to select the Second Row from FlightsGrid Image shown below. Applying below Code, I am getting RowCount as 6 but not able to click on 3rd Row.

Set ODesc = Description.Create
oDesc("micclass").value = "WpfTable"
Set objchild = WpfWindow("HPMyFlightSampleApplication").WpfTable("Table_FlightsGrid")
objCount = objchild.rowcount
objCount(2).click

Image from Flight Reservation Application:

enter image description here


Solution

  • The WpfTable object is not a collection, it doesn't support indexing. Did you try using its SelectRow method?