Forum Discussion
shankar_r
Community Hero
It would be better if you post tow objects properties.
Hardy
8 years agoOccasional Contributor
It cannot input data to add dependent screen during TC playback, please refer to the attached screenshot.
- shankar_r8 years agoCommunity Hero
This looks, both widows have their unique property. But you have mapped both windows as same window.
Have you mapped both objects with below properties,
WndCaption
WndClass
- Hardy8 years agoOccasional Contributor
I use below method to SetFocus, but it will prompt the message: cannot obtain the window with the window class "ThunderRT6FormDC", window caption "MRMEMBMNT01 - Member Maintenance - Add Dependent".
def FocusOnAddDependent():
obj = Aliases.Caesar.CSR_MAIN.MDIClient.MRMEMBMNT01
winobj = obj.Window("ThunderRT6FormDC", "MRMEMBMNT01 - Member Maintenance - Add Dependent")
winobj.SetFocus()- shankar_r8 years agoCommunity Hero
Can you try below,
def FocusOnAddDependent(): obj = Aliases.Caesar.CSR_MAIN.MDIClient winobj = obj.Window("ThunderRT6FormDC", "MRMEMBMNT01 - Member Maintenance - Add Dependent") winobj.SetFocus()
Related Content
Recent Discussions
- 2 days ago