Share
Go down
pinaki_mfsi
Posts : 1
Join date : 2011-01-20

How to get focus on popup alert while saving the data through selenium RC with php.

on Thu Jan 20, 2011 3:19 pm
Hello guys,

I am working and testing on a web application using Selenium RC with phpunit. Cuurently i am unable to take focus on the popup alert while saving any editted data. While saving the data a alert pop up saying:
Message from webpage:
Would you like to save the changes. with a OK and cancel button.
So can anyone help me out by replying what would be the command or syntax used for capaturing the above described popup alert for Selenium RC with php.


So can you guys please help me how to handle this?

Thanks in advance.

Regards,
Pinaki
avatar
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: How to get focus on popup alert while saving the data through selenium RC with php.

on Fri Jan 28, 2011 7:29 pm
Hi,

Try to use the following command to get the focus on the window
selectWindow(windowID)


Selects a popup window; once a popup window has been selected, all
commands go to that window. To select the main window again, use "null"
as the target.Arguments:

  • windowID - the JavaScript window ID of the window to select

After getting focus , you can perform operation on that and after finishing all your operation you have to get back focus to your main window to proceed further.

Hope this will help you little bit. Try this and let us know. Best of luck

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