Issue in Click event

2 posts, 1 answers
  1. Ganesh
    Ganesh avatar
    4 posts
    Member since:
    Jul 2013

    Posted 25 Jul 2013 Link to this post

    • Hi Team,
      Im Using webaii framework for my automation.
      I have a page in there when we click a button it ll show one pop up. tried this scenerio in webaii with below code.
      It clicks the button as expected, but when pop up was thrown by webpage, code flow got stopped it didnt cross the above command.
      Is it any other way to click a element after click, browser should be free and it ready for next command.
  2. Answer
    Velin Koychev
    Velin Koychev avatar
    88 posts

    Posted 30 Jul 2013 Link to this post

    Hi Ganesh,

    Could you please elaborate more about your test scenario. Do you need to connect to the popup window and perform actions on it?

    If that is the case, you can use code that is similar to this sample code against a public site with a popup child window:

    //Turn on new browser tracking before the popup link is clicked
    Find.ByTagIndex<HtmlAnchor>("a", 58).Click();
    Manager.WaitForNewBrowserConnect("", true, 5000);
    //You can now turn off new browser tracking
    //Check whether the ActiveBrowser is now the popup.

    Here is a short video, which demonstrates it. 

    Hope this helps.
    Velin Koychev
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top