cancel
Showing results for 
Search instead for 
Did you mean: 

Focus

SOLVED
Contributor

Focus

I have an application that has another application in front of it and I want the background application to become the front application and that it is shown and has focus. I have tried using the .focus property and that has not worked for me and I have tried to just click on the application but that does not work either. I am using Javasript for my project. 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Focus

There usually is a "SetFocus" method on the form that you want brought forward.  You can also try "Activate".


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
1 REPLY 1
Highlighted
Community Hero

Re: Focus

There usually is a "SetFocus" method on the form that you want brought forward.  You can also try "Activate".


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors