FAQ
Hi,

I am using internet explorer i am unable to open the pop up when clicked on
the menu option.
It is fine when i manually open in internet explorer, it is working fine
with firefox.

Thanks
Shivakumar

--
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/msg/selenium-users/-/VrVczN5aP1EJ.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Ramijunnisa Shaik at Mar 27, 2013 at 2:44 pm
    Hi Shiva,


    #Use "cssSelector" of that menu option.

    Try this Code,

    String currentWindowHandle =driver.getWindowHandle();



    driver.findElement(By.cssSelector("span.ui-menuitem-text")).click();//Use
    cssSelector of the menu option.
    java.util.Set<String> availableWindows =driver.getWindowHandles();

    int Windows = 2;//these are the total no of windows.
    if (availableWindows.size()==Windows) {
    String popUpWindowHandle = null;
    for (String windowHandle2 : availableWindows) {
    if(!availableWindows.equals(currentWindowHandle))
    popUpWindowHandle= windowHandle2;
    driver.switchTo().window(popUpWindowHandle); }
    }


    Thanks & Regards,
    Ramija.

    --
    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/msg/selenium-users/-/4yxW8XvgsGQJ.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-users @
categoriesselenium
postedMar 25, '13 at 6:15a
activeMar 27, '13 at 2:44p
posts2
users2
websiteseleniumhq.org

People

Translate

site design / logo © 2022 Grokbase