Tabbed browsing Automation testing

4 posts, 0 answers
  1. Petrica
    Petrica avatar
    2 posts
    Member since:
    Sep 2016

    Posted 09 Sep Link to this post

    Hi there,

    I am using Telerik for a while for web testing. Up until now I was using to test only with a single tab in browser.

    Now I am facing a problem that I cannot create multiple tabs, navigate through tabs programmatic. 

    Can someone give me a simple example of how to open 1 browser, create 3 tabs and to retrieve the HtmlControls from each tab?

     

    Note: Right now the creation of the tabs and navigation i'm doing it via Hotkeys, a problem I have is that I'm not able to get the HtmlControls from the second and third tab.

    Thanks! 

  2. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    251 posts

    Posted 13 Sep Link to this post

    Hi Patricia,

    Test Studio could handle different tabs in the terms of popup windows - meaning that if you could use the recorder in a new tab if you open it, record your steps and then close it. This will return the test to the initial tab. 

    If you need to switch between the tabs I could suggest you use different browser instances and switch between them. Although this should be obtained within a coded step -  here is a sample with further details

    Please let me know if that makes sense to you and could be of use in your scenario? Thanks for the cooperation! 

    Regards,
    Elena Tsvetkova
    Telerik by Progress
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  3. Petrica
    Petrica avatar
    2 posts
    Member since:
    Sep 2016

    Posted 15 Sep in reply to Elena Tsvetkova Link to this post

    Hi Elena,

    Unfortunately I am not interested in multiple browsing.
    I only need to get the HtmlControl instance for each tab, currently I am using ArtOfTest.WebAii.dll. As I saw in other posts this framework does not support tabbed browsing. 
    Is any workaround that can help me to get the controls from each tab. Currently I am able to get only the controls from the initial (first) tab. And if I close it then I get an Exception.

     

  4. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    251 posts

    Posted 19 Sep Link to this post

    Hello Petrica,

    Multi tab in the meaning of keeping few tabs open and switch between them in the same time is currently not supported. What could be obtained as a workaround to access the DOM tree of a page except multiple browser instances is to treat each new tab as a popup window. If the case to open a tab and do all required actions in it and get back to the initial window fits your scenario you could follow the coded sample in the shared above article and give it a try. 

    On the other hand you could also add a feature request to our public feedback portal describing your needs and requirements. Thanks in advance for your understanding and the cooperation! 

    Regards,
    Elena Tsvetkova
    Telerik by Progress
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top