Hello,
I am facing the same problem. Why "SetCellData" does not work. All other objects - editFields, comboBoxes, checkBoxes, buttons, etc... works well.
When I execute the code above, UFT correctly activates wpf table cell I wish to edit / update, but then nothing happens. No error message either. So I suspect that UFT thinks everything went well. Maybe some cell property value was changed or attempt was made, but result is that I - as a user - see that nothing happened.
I tried lot of walkarounds, but the only one that works is this:
but as you see, I am using InsightObject for identification which is extremely unreliable (especially for table objects) when ANYTHING changes and in case of filling more table cells, it is unsustainable approach.
Could you please give me advice what to use in order to fill the value for real?
THANKS in advance
Lukas
I am facing the same problem. Why "SetCellData" does not work. All other objects - editFields, comboBoxes, checkBoxes, buttons, etc... works well.
Code:
WpfWindow("batchJob").WpfTable("batchJobConfig").ActivateCell 3, 1
WpfWindow("batchJob").WpfTable("batchJobConfig").SetCellData 3, 1, "1000"
When I execute the code above, UFT correctly activates wpf table cell I wish to edit / update, but then nothing happens. No error message either. So I suspect that UFT thinks everything went well. Maybe some cell property value was changed or attempt was made, but result is that I - as a user - see that nothing happened.
I tried lot of walkarounds, but the only one that works is this:
Code:
WpfWindow("batchJob").InsightObject("contractId").Click
wait 2
Set obj=CreateObject("Mercury.DeviceReplay")
obj.SendString "50000427"
but as you see, I am using InsightObject for identification which is extremely unreliable (especially for table objects) when ANYTHING changes and in case of filling more table cells, it is unsustainable approach.
Could you please give me advice what to use in order to fill the value for real?
THANKS in advance
Lukas