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

Cannot locate Button inside window with hidden grids

5 Answers 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Radosław
Top achievements
Rank 1
Radosław asked on 12 Sep 2016, 01:09 PM

This is the map for the application:screenshot.

 

I tried to locate one of the buttons using "visible" and "exists".

How can I locate this buton, it seems it is hidden too deep.

What should the approach be ? (It seems the developers build a wizard here which consists from four grids).

5 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 15 Sep 2016, 06:57 AM
Hi Radoslaw,

Test Studio creates a find expression for each recorded element. It has to be unique so that the element could be located later by execution. The depth in the DOM tree shouldn't be an issue if the find expression is correctly built. Though the default one is not always the best and you might need to change it and adjust it to the application specifics. It is important to note that "visible" and "exists" are verification steps if an element exists or is visible on the page. However this element has its find expression in the "background of the test" and it is to be modified in case the step fails. 

Regards,
Elena Tsvetkova
Telerik by Progress
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Radosław
Top achievements
Rank 1
answered on 27 Sep 2016, 06:31 AM

Hi Elena,

Sorry for so late response. The problem is I couldn't reach the element neither by locating and using it nor hovering over it. The window is a kind of wizard structure with couple of RadWindows that are being hidden and visible respectively of an action. The application launches logging window first, and finding elements like buttons and textboxes work fine in this one, but after that logging window is being closed and wizard window opens, which i can't locate anyhow. Telerik TS gives me parameters of this window and its element, however using any of them does not give any effect.

0
Elena
Telerik team
answered on 29 Sep 2016, 01:25 PM
Hi Radoslaw,

Unfortunately I couldn't give any solution/advice since the application is not available for me and the issue you are facing is while recording. Would it be possible to provide your application or at least a sample of it that could reproduce the same behavior? 

Regards,
Elena Tsvetkova
Telerik by Progress
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Radosław
Top achievements
Rank 1
answered on 29 Sep 2016, 01:34 PM

Hi Elena,

I'm affraid I can't provide any code of it, but the issue has been ignored due to longlasting process of resolving anyway, so i think the topic is to close now. Thanks for your time.

Best regards,

Radoslaw

0
Elena
Telerik team
answered on 29 Sep 2016, 02:12 PM
Hi Radoslaw,

thanks for your understanding. I will mark this topic as closed but feel free to contact us again in case of any future queries. 

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
Radosław
Top achievements
Rank 1
Answers by
Elena
Telerik team
Radosław
Top achievements
Rank 1
Share this question
or