Aditya
Aditya

Reputation: 505

UFT: Unable to identify Object's parent window though it is being added in Object Repository

I'm working on Calypso windows application where I have to click on a tab within a window. When I was executing the script, I see error message saying that "Cannot find the object's parent window" . I have verified that window properties don't change and no other window is opened with same title.

Please suggest how I can click the tab in the window.

call JavaWindow("Back Office Window for").Activate
JavaWindow("Back Office Window for").JavaTab("Pay Role").Select ("Postings")

THE Window Title is dynamic and keeps changing as shown below

Back Office Window for Trade 4562213 (User: polaris_bouser1)

Window is displayed and need to click Postings tab.

Object Repository

Upvotes: 0

Views: 1139

Answers (1)

Mithilesh Indurkar
Mithilesh Indurkar

Reputation: 489

Try

JavaWindow("title:=Back Office Window for Trade.*").Activate 

If this helps, use the same statement in your object repository, using the button next to the property . check the regular expression checkbox.... use this link to quickly go through how to use regular expression youtube.com/watch?v=IdIBhl0p6Fo

Upvotes: 2

Related Questions