Contol over PopUp not having enable IE developer tool

1,189 views
Skip to first unread message

mukesh rawat

unread,
May 1, 2012, 6:57:42 AM5/1/12
to webdriver
Hi,
My application runs on IE, in my application when i select a specific
radio button then a popup window is opened. But, the popup window
opened is not having right click enabled and any type of IE developer
tool.
How can i have control over the popup window and able to find the
element properties.

Thanks,
Mukesh
mraw...@gmail.com

Peter Gale

unread,
May 1, 2012, 7:03:00 AM5/1/12
to webd...@googlegroups.com
A popup is not a web page.

Seee the online documentation for how to handle popup dialogs - here for example: http://seleniumhq.org/docs/03_webdriver.html

Peter

> Date: Tue, 1 May 2012 03:57:42 -0700
> Subject: [webdriver] Contol over PopUp not having enable IE developer tool
> From: mraw...@gmail.com
> To: webd...@googlegroups.com
> --
> You received this message because you are subscribed to the Google Groups "webdriver" group.
> To post to this group, send email to webd...@googlegroups.com.
> To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
>

mukesh rawat

unread,
May 1, 2012, 10:22:27 AM5/1/12
to webd...@googlegroups.com, peterjef...@hotmail.co.uk
Hi Peter,

I want to say how object will be identified in popup window. If it will having checkboxes, textboxes, hyperlinks etc.
Not having view source option from any where.

Thanks,
Mukesh
mraw...@gmail.com

Mike Riley

unread,
May 1, 2012, 11:50:14 AM5/1/12
to webd...@googlegroups.com, peterjef...@hotmail.co.uk
What is creating the pop-up window?  Is it done via JavaScript or what?

If the pop-up window is HTML then you simply need to switch to it and you should have access to the HTML elements in that window, assuming it is an HTML window and not something created by a Java Applet (for example).

If you shared the HTML code around that radio button it might help us help you.

Mike
> To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.

> For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
>

--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.

David

unread,
May 3, 2012, 1:31:10 PM5/3/12
to webdriver
> I want to say how object will be identified in popup window. If it will having checkboxes, textboxes, hyperlinks etc.

As OP mentioned, then it must be generated by the page/site via JS,
etc. Because standard browser popups only have text, titlebard, and
some buttons (OK/Cancel/Yes/No).

> But, the popup window opened is not having right click enabled and any type of IE developer tool. How can i have control over the popup window and able to find the element properties.

The problem for the OP as I can see is not necessarily about switching
to the popup and work with it in WebDriver. OP is developing/debugging
test in/for IE, and as such can't inspect elements in that popup using
IE tools (no Firebug) because I guess some developer decided to
disallow right-click context menu mouse option. Which is often used to
view source or inspect elements, etc.

For the OP, I suggest you look at a tool called DebugBar for IE. I
prefer it over the IE developer toolbar. Similar features but less
slow/buggy than using the native IE one. And you can inspect elements
by dragging the inspector icon on the toolbar to the element of
interest, which means you don't need right-click ability.

On May 1, 8:50 am, Mike Riley <lvskip...@cox.net> wrote:
> What is creating the pop-up window?  Is it done via JavaScript or what?
>
> If the pop-up window is HTML then you simply need to switch to it and you
> should have access to the HTML elements in that window, assuming it is an
> HTML window and not something created by a Java Applet (for example).
>
> If you shared the HTML code around that radio button it might help us help
> you.
>
> Mike
>
>
>
>
>
>
>
> On Tuesday, May 1, 2012 7:22:27 AM UTC-7, mukesh rawat wrote:
>
> > Hi Peter,
>
> > I want to say how object will be identified in popup window. If it will
> > having checkboxes, textboxes, hyperlinks etc.
> > Not having view source option from any where.
>
> > Thanks,
> > Mukesh
> > mrawat...@gmail.com
>
> > On Tue, May 1, 2012 at 11:03 AM, Peter Gale <
> > peterjeffreyg...@hotmail.co.uk> wrote:
>
> >>  A popup is not a web page.
>
> >> Seee the online documentation for how to handle popup dialogs - here for
> >> example:http://seleniumhq.org/docs/03_webdriver.html
>
> >> Peter
>
> >> > Date: Tue, 1 May 2012 03:57:42 -0700
> >> > Subject: [webdriver] Contol over PopUp not having enable IE developer
> >> tool
> >> > From: mrawat...@gmail.com
> >> > To: webd...@googlegroups.com
>
> >> > Hi,
> >> > My application runs on IE, in my application when i select a specific
> >> > radio button then a popup window is opened. But, the popup window
> >> > opened is not having right click enabled and any type of IE developer
> >> > tool.
> >> > How can i have control over the popup window and able to find the
> >> > element properties.
>
> >> > Thanks,
> >> > Mukesh
> >> > mrawat...@gmail.com
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> Groups "webdriver" group.
> >> > To post to this group, send email to webd...@googlegroups.com.
> >> > To unsubscribe from this group, send email to
> >> webdriver+...@googlegroups.com.
> >> > For more options, visit this group at
> >>http://groups.google.com/group/webdriver?hl=en.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "webdriver" group.
> >> To post to this group, send email to webd...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> webdriver+...@googlegroups.com.

Peter Gale

unread,
May 3, 2012, 1:51:45 PM5/3/12
to webd...@googlegroups.com
> > I want to say how object will be identified in popup window. If it will having checkboxes, textboxes, hyperlinks etc.
>
> As OP mentioned, then it must be generated by the page/site via JS,
> etc. Because standard browser popups only have text, titlebard, and
> some buttons (OK/Cancel/Yes/No).

So far as I can tell, the OP tells us nothing concrete about the site and/or he is testing, other than it has no view source, so seems not to be a web page simulating a popup (if that is possible), which presume is only possible as an overlay type screen. I can't believe a developer would disallow right-click specifically on such a "popup" if he didn't disallow it on the main page (if that is possible), which the OP implies he can see, and this would be pointless anyway because the source code for the "popup" would necessaily be on the main page, so could still be seen from there.
 
We can't infer anything without more clear information to go on, and the OP needs to verify that it is not just a standard popup that he can handle as first directed.
> Date: Thu, 3 May 2012 10:31:10 -0700
> Subject: [webdriver] Re: Contol over PopUp not having enable IE developer tool
> From: mang...@gmail.com
> To: webd...@googlegroups.com

Peter Gale

unread,
May 3, 2012, 1:55:18 PM5/3/12
to webd...@googlegroups.com
Oops! that should say:
 
> So far as I can tell, the OP tells us nothing concrete about the site and/or popup he is testing, ..
 
Sorry.

From: peterjef...@hotmail.co.uk
To: webd...@googlegroups.com
Subject: RE: [webdriver] Re: Contol over PopUp not having enable IE developer tool
Date: Thu, 3 May 2012 18:51:45 +0100

Maxim Vorobev

unread,
May 4, 2012, 1:38:17 AM5/4/12
to webd...@googlegroups.com
Some workaround:
1. Try to get direct url for pop-up (from link or button with js etc.) and navigate to this url from browser
2. Try press F12
3. Try to switch WebDriver to pop-up and get html source with getPageSource()

2012/5/3 Peter Gale <peterjef...@hotmail.co.uk>
Reply all
Reply to author
Forward
0 new messages