Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

» Selenium IDE Verify different Maps (Hybridview, Mapview etc.)
Fri Nov 25, 2016 9:56 pm by DJ87

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

View previous topic View next topic Go down

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

Post by pinaki_mfsi 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

pinaki_mfsi

Posts : 1
Join date : 2011-01-20

Back to top Go down

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

Post by Adviser 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

Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum