Switching from one webpage tab to another and back

How to apply eValid to functional testing of web applications.

Switching from one webpage tab to another and back

Postby WDeLugo » Tue Mar 14, 2017 6:05 am

Morning.

In my scenario i'm clicking on a link which opens another tab.

In new tab, I am doing some operation and again i want to switch to first tab, do some operation on first tab again switch to new tab.

Thanks
WDeLugo
 
Posts: 1
Joined: Tue Mar 14, 2017 6:00 am

Re: Switching from one webpage tab to another and back

Postby eValid » Wed Mar 15, 2017 12:09 pm

WDeLugo wrote:Morning.

In my scenario i'm clicking on a link which opens another tab.

In new tab, I am doing some operation and again i want to switch to first tab, do some operation on first tab again switch to new tab.

Thanks


A great question WDeLugo.

As you know the "tabs" you see in your browser translate into different windows in eValid.

Same difference.

The reason eValid does this is to emphasize that child-windows are really independent, and we have found in practice that it is very valuable to have all of the windows already separated.

That's easier than stripping them off from a collection of tabs.

There is a command that will bring any window/sub-window (tab) into focus.

The command is:

Focus wid

But so will most eValid commands, where bringing the window into focus is a normal action and done will automatically.

There is also a special command that will bring a particular element into the "in focus" state:

ElementFocus wid idx "id" "visible_text" "frame-path' [NAV]

which sends an "element Focus" event to the specified HTML element.

If the NAV tag is present then eValid enters into the page navigation synchronization mode.

-- eValid Support
eValid
 
Posts: 1729
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Desktop and Mobile Device Functional Testing

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