Unable to handle lightboxes inside frame | Selenium Forum
M
Posted on 03/02/2016
Hi Ashish;
i am unable to handle lightboxes inside frames.If manualy i am click on the box it navigate to the window related to this.
i followed steps like this:
url :makemytrip.com
lightbox coming after few seconds if tried to close it manualy by clicking on window outside it disappeared.
If manualy i click on the box it navigate to the window related to it.
I am not able to automate it.
1-i tried to locate the close button.
2-i tried to handle it thru frames as its showing that its a frame.
3--i tried to handle it thru popups
4-thru actions classes moving mouse on the box.
none of the above is working .
please help me in such scenarios
i am attaching screenshot of the lightbox.please find the below attachment. help me in such case.
Regards
Anjali

M
Replied on 03/02/2016

first of all switch to the frame and then try to find cross and click on it.

try this way first.


M
Replied on 14/03/2016

Hi Ashish,

I'm facing a similar issue on makemytrip but with a different lightbox. However, I'm unable to switch to the frame. The driver is unable to find the components of the lightbox. Could you please help me understand how exactly are we supposed to work with lightboxes? In your Module 14-->Part 1 & Part 2, you haven't explained how to handle lightboxes.

Thanks in advance for your help.

-Regards,
Ammar


M
Replied on 15/03/2016

[quote:25p67f6r]makemytrip but with a different lightbox[/quote:25p67f6r]

check for iframes.


M
Replied on 20/03/2016

[quote="qtpselenium.supp0rt@gmail.com":2f935m44][quote:2f935m44]makemytrip but with a different lightbox[/quote:2f935m44]

check for iframes.[/quote:2f935m44]

I'm sorry but I do not understand. can you elaborate or point me to one of your videos?

Thank you.


M
Replied on 21/03/2016

check if this lightbox is in an iframe.