Page 1 of 1

How to get eValid to just focus on one window to test with

PostPosted: Mon Aug 01, 2016 9:42 am
by JulieC
Morning.

I've got this suite of tests and there are multiple windows.

How do I get the one particular window I want to drive into focus?

Thanks

Re: How to get eValid to just focus on one window to test wi

PostPosted: Tue Aug 02, 2016 11:50 am
by eValid
JulieC wrote:Morning.

I've got this suite of tests and there are multiple windows.

How do I get the one particular window I want to drive into focus?

Thanks


A good question JulieC.

Just to remind you, relative to the playback script, the windows that eValid opens are numbered as follows:

0 = parent browser (eValid browser)
1 = first window opened
2 = second window opened
etc.

During the course of your test you script may delete (close) some of these may have been closed.

The only way to get them to open up is to rerun the test.

That is to say, there is no way to force "focus" (that is, to make the window active) when the window is not there.

The command to produce focus in a window is described here:

http://www.e-valid.com/Products/Documen ... focus.html

Basically, you bring the window into focus by asking evalid to make some element of the current web page in that window into focus.

(Window focus is binary; it is either "on" or "off".)

Note that during test recording, the fact that you click on an element or type into a field automatically puts that window in focus.

eValid records its commands with the correct "wid" (Window id number) as the main browser window opens various other windows.

At playback time, eValid knows which window is which and always directs the playback command to the correct window, even if it is hidden or minimized.

-- eValid Support