- 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.
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
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
Re: How to get focus on popup alert while saving the data through selenium RC with php.
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:
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
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
- Unable to set focus on some popup using Selenium RC
- How to get focus to a new popup window which doesnt have name,id or unique title.
- urgent- please give me one example of data driven data program in selenium rc using java language
- Selenium Web driver switch to alert pop ups
- popup PhPUnit -pass data onto main window
Permissions in this forum:
You cannot reply to topics in this forum