This is a migrated thread and some comments may be shown as answers.

Tabbed browsing Automation testing

3 Answers 103 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Petrica
Top achievements
Rank 1
Petrica asked on 09 Sep 2016, 12:06 PM

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! 

3 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 13 Sep 2016, 01:54 PM
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
 
0
Petrica
Top achievements
Rank 1
answered on 15 Sep 2016, 01:18 PM

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.

 

0
Elena
Telerik team
answered on 19 Sep 2016, 12:15 PM
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
 
Tags
General Discussions
Asked by
Petrica
Top achievements
Rank 1
Answers by
Elena
Telerik team
Petrica
Top achievements
Rank 1
Share this question
or