Different ways of getting windows identification.
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
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
Permissions in this forum:
You cannot reply to topics in this forum