cancel
Showing results for 
Search instead for 
Did you mean: 

Test Complete: Switch to a different application

SOLVED
Occasional Contributor

Re: Test Complete: Switch to a different application


@Marsha_R wrote:

Let's see the name mapping for where you are in App 1 when you want to go to App 2 and also what you want to click in App 2.


Last action from app1:

Aliases.app1.fmDBman.InhaltPanel.ObjectList.TOutlookGroupedList.Drag(5, objectYpos, dbPoint.X, dbPoint.Y-100)

 

Then I am waiting for the app2 window to show up

Aliases.app2.WaitAliasChild("fmImportTSX", 180000)

and then clicking on import button

Delay(1000)
Aliases.app2.fmImportTSX.bnImport.ClickButton()

 

Occasional Contributor

Re: Test Complete: Switch to a different application

here you are

Community Hero

Re: Test Complete: Switch to a different application

Community Hero

Re: Test Complete: Switch to a different application

What about the root app2 object and it's mapping?


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Occasional Contributor

Re: Test Complete: Switch to a different application

Hello. The SetFocus() doesn't do anything - meaning that it doesn't help. The 2nd app still cannot be found by testcomplete. 

Occasional Contributor

Re: Test Complete: Switch to a different application

 
Community Hero

Re: Test Complete: Switch to a different application

I suggest that you contact Support directly about this issue.  Here's the link:

https://support.smartbear.com/message/?prod=TestComplete

Occasional Contributor

Re: Test Complete: Switch to a different application

I contacted Support and they suggested I should use the WaitProcess Method and Checking Whether an Object Exists instead of the SetFocus method. The WaitProcess method worked perfectly. Thanks. 

View solution in original post