10-27-2016, 05:42 PM
UFT is giving a warning message when I try to synchronise on an object in myFlight (UFT SAMPLE APP).
WpfWindow("HP MyFlight Sample Application").WpfButton("FIND FLIGHTS").Click
WpfWindow("HP MyFlight Sample Application").WpfTable("flightsDataGrid").SelectCell 3,1
WpfWindow("HP MyFlight Sample Application").WpfButton("SELECT FLIGHT").Click
WpfWindow("HP MyFlight Sample Application").WpfEdit("passengerName").Set "Sam Smith"
WpfWindow("HP MyFlight Sample Application").WpfButton("ORDER").Click
WpfWindow("HP MyFlight Sample Application").WpfObject("ORDER DETAILS").WaitProperty "text", "ORDER DETAILS", 10000
WpfWindow("HP MyFlight Sample Application").WpfObject("Order completed").Check CheckPoint("CheckOrder")
WpfWindow("HP MyFlight Sample Application").WpfButton("NEW SEARCH").Click
WpfWindow("HP MyFlight Sample Application").WpfButton("FIND FLIGHTS").Click
WpfWindow("HP MyFlight Sample Application").WpfTable("flightsDataGrid").SelectCell 3,1
WpfWindow("HP MyFlight Sample Application").WpfButton("SELECT FLIGHT").Click
WpfWindow("HP MyFlight Sample Application").WpfEdit("passengerName").Set "Sam Smith"
WpfWindow("HP MyFlight Sample Application").WpfButton("ORDER").Click
WpfWindow("HP MyFlight Sample Application").WpfObject("ORDER DETAILS").WaitProperty "text", "ORDER DETAILS", 10000
WpfWindow("HP MyFlight Sample Application").WpfObject("Order completed").Check CheckPoint("CheckOrder")
WpfWindow("HP MyFlight Sample Application").WpfButton("NEW SEARCH").Click