FAQ
Hi All,
i hope all are doing good.

How to handle pop up windows using selenium webdriver
Refer Way2sms site
1) When i tried to click on register here link
2) Pop up window comes up
3) But in pop up window doen't have any buttons like OK or Cancel

how we can handle this type of pop up windows
Thanks,
Subbu

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ba8389cd-3129-4ce2-87ff-1cc296d61fe3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Mahender guggilla at Apr 15, 2015 at 7:29 am
    Hi Palla,

    There is Two types of Pop up windows are there.
    1)Static Windows
    2)Dynamic Windows.


    For Static Windows:

    String mywindow=driver.getWindowHandle();//Static Child PopUp Window
    driver.switchTo().window();

    For Dynamic Window:

    Set<String> set=driver.getWindowHandles();//It holds morethan one window n
    these window names are changing dynamically.

    Iterator iter = set.iterator();

    String window1=iter.next();
    String window2=iter.next();

    driver.switchTo().window(window1);//For Parent Window
    driver.switchTo().window(window2);



    Reg,
    Mahender



    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-users@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/95df514b-c6e3-4f0c-8187-885d0bb6a405%40googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-users @
categoriesselenium
postedApr 15, '15 at 3:27a
activeApr 15, '15 at 7:29a
posts2
users2
websiteseleniumhq.org

People

Translate

site design / logo © 2022 Grokbase