Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
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. Empty 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
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

How to get focus on popup alert while saving the data through selenium RC with php. Empty 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:

  • 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