Share
Go down
avatar
Advisor
------------------------
------------------------
Posts : 383
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Different ways of getting windows identification.

on Sat Aug 15, 2009 11:14 am
hi,

In selenium we can identify windows in 3 ways:

1. storeAllWindowIds(variableName)
Returns the IDs of all windows that the browser knows about.

Returns: the IDs of all windows that the browser knows about.

2. storeAllWindowNames ( variableName )
Returns the names of all windows that the browser knows about.

Returns:
the names of all windows that the browser knows about.


3. storeAllWindowTitles ( variableName )
Returns the titles of all windows that the browser knows about.

Returns:
the titles of all windows that the browser knows about.


By using anyone of these method, you will get window property through which you can focus on you new window.

I hope this will help to solve your problem. Best Of luck.

Bye
Back to top
Permissions in this forum:
You cannot reply to topics in this forum