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
dkpune
Posts : 6
Join date : 2012-03-14

Unable to handle popup Empty Unable to handle popup

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.
avatar
Sanjay S
Regular Participant
Regular Participant
Posts : 34
Join date : 2012-02-10
Age : 36
Location : Chennai

Unable to handle popup Empty Re: Unable to handle popup

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 : ...)
avatar
dkpune
Posts : 6
Join date : 2012-03-14

Unable to handle popup Empty Re: Unable to handle popup

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
avatar
jayz123
Posts : 8
Join date : 2012-11-14

Unable to handle popup Empty Re: Unable to handle popup

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 ....
Sponsored content

Unable to handle popup Empty Re: Unable to handle popup

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