Ask a Question

Focus

SOLVED
4m4d3u5
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 REPLY 1
tristaanogre
Esteemed Contributor

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


Robert Martin
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available
cancel
Showing results for 
Search instead for 
Did you mean: