Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Unable to handle popup

View previous topic View next topic Go down

Unable to handle popup

Post by dkpune on Thu Mar 15, 2012 9:42 pm

There is a popup box in the application with input box, OK and Cancel button. I am not able to click on cancel or enter user name in the input box. I got the object ids of elements but IE crashes when I do anything on any element of this popup. keyPress works on this popup but focus is not on the popup and I am not able to bring it into focus by any way. Can anyone suggest me how to bring the focus to this popup.

dkpune

Posts : 6
Join date : 2012-03-14

Back to top Go down

Re: Unable to handle popup

Post by Sanjay S on Fri Mar 16, 2012 1:00 pm

Hi..

You can use the below following commands to perform cancel or enter option in the pop up window..

chooseCancelOnNextConfirmation (or) chooseOkOnNextConfirmation

And i usually perform close option in my popup window by giving the below following commands..


click :
waitForPopUp :
windowFocus :
selectWindow : (Window's title)
close :
selectWindow : null


Last edited by Sanjay S on Fri Mar 16, 2012 1:02 pm; edited 1 time in total (Reason for editing : ...)

Sanjay S
Regular Participant
Regular Participant

Posts : 34
Join date : 2012-02-10
Age : 29
Location : Chennai

Back to top Go down

Re: Unable to handle popup

Post by dkpune on Fri Mar 16, 2012 8:51 pm

I tried above suggestions but it is not working. I tried chooseCancelOnNextConfirmation, windowFocus, selectWindow, etc.

I guess this is not working because this is a modal window. Has anyone worked on handling modal windows which is developed in java.
Any suggestions pls

dkpune

Posts : 6
Join date : 2012-03-14

Back to top Go down

Re: Unable to handle popup

Post by jayz123 on Mon Nov 19, 2012 2:45 pm

u may get the id of the button u wish to click first by using the selenium.FindElementId("id=xxxxxxxx") function... after that u may just simply selenium.Click("id=xxxxxxxx");

I used it to click button "X" for the modal dialog popup ....

jayz123

Posts : 8
Join date : 2012-11-14

Back to top Go down

Re: Unable to handle popup

Post by Sponsored content Today at 7:29 pm


Sponsored content


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