cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Maximize Action Function

TanyaYatskovska
Community Manager

Re: Help with Maximize Action Function

Hi @helpdesk,

 

@BenoitB is right - you need to call Maximize or Activate function. As you are using KDT tests, you need to add the  Run Code Snippet Operation to the KDT editor and specify where the suggested call. You can find more information in the following articles:

https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/test-actions/run-code-snip...

https://support.smartbear.com/testcomplete/docs/keyword-testing/editor/test-steps/about.html

https://support.smartbear.com/testcomplete/docs/keyword-testing/editor/test-steps/working-with.html#...

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
helpdesk
Occasional Contributor

Re: Help with Maximize Action Function

Hi,

 

Thanks for the additional information, I have created a script just to see if i can maximize the window. 

 

I entered this as stated earlier and it will not let me run the script. 

 

var myApp = Sys.Process("NetHealthLite").Window("_BaseForm_UltraFormManager_Dock_Area_Top", "*", 1);
myApp.Activate(); // To be sure the Windows has the focus and accept control action
myApp.Maximize();

 

Im not sure what I am getting wrong, I also tried running the code snippit and that wouldnt work either. 

 

Thanks 

New Here?
Join us and watch the welcome video:
Announcements