Display results as :

Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara


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.


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


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


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


Posts : 8
Join date : 2012-11-14

Back to top Go down

Re: Unable to handle popup

Post by Sponsored content

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