Page 1 of 1

Switch focus from one tab to another

PostPosted: Tue Jun 06, 2017 2:45 pm
by DavHurst
Hello.

In my tests, I have a lot of tabs up on my browser...how do I switch the focus of my tests between them?

I also noticed eValid doesn't seems to have tabs, anyone for me to simulate tabs as on other browsers?

Thanks

Re: Switch focus from one tab to another

PostPosted: Wed Jun 07, 2017 3:11 pm
by eValid
DavHurst wrote:Hello.

In my tests, I have a lot of tabs up on my browser...how do I switch the focus of my tests between them?

I also noticed eValid doesn't seems to have tabs, anyone for me to simulate tabs as on other browsers?

Thanks


A good question to ask, thanks for posting DavHurst.

In eValid, the separate pages that you see as "tabs" on many browsers are all opened as separate windows.

Each window has a unique number, in sequence for that particular test.

The parent window is wid=0 and each subsequent window is numbered in order as 1, 2, 3, etc.

So to get to the window of interest all you have to do in your script is change the window number in the command.

In addition, if you feel the need to see better what's going on in your test, you can use the command: Focus wid where wid is the number of the window that you want to bring into focus.


-- eValid Support