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

How to use eValid to support regression testing.

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

Postby JulieC » Mon Aug 01, 2016 9:42 am

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
JulieC
 
Posts: 1
Joined: Mon Aug 01, 2016 9:38 am

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

Postby eValid » Tue Aug 02, 2016 11:50 am

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
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Regression Testing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons