Grrison
unread,Sep 7, 2009, 4:52:07 AM9/7/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to selenium-users...@googlegroups.com
hay guys,
I got a problem when I use the Selenium RC Java client to develop the test scripts.
the Scenario is when I click a button, there will be a popup windows, I need to fill in data in that popup windows.
So I tried to move the focus to the popup windows. but .....
I used the selenium.getAllWindowNames(), selenium.getAllWindowsIds() and selenium.getAllWindowsTitles()
and tried to print them in the console to see the popup windows identification. I got nothing.
Even there is only the main windows info.
So I do not know how to move the focus to the popup windows.
And I looked into the javascript which open the popup windows.
it is
{code:html}window.showModalDialog(servletPath + "/change_pwd.jsp?random=" + random, window, "dialogHeight:280px; dialogWidth:430px; status:no; help:no; center:yes");{code}
using the showModalDialog to open the popup windows.
So , how can I select the popup windows?
Thanks in advance
Grrison