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

Capturing browser window geomatery

5 Answers 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vinay
Top achievements
Rank 1
Vinay asked on 28 Feb 2018, 01:35 PM

Hi telerik,

I am working on a test scenario where i need to verify the browser window geomatery with different quadrants[4 qudrants -+X and -+Y axis].

Basically i want to open the browser window at specified location and then captured the quadrants. After this i will again opened the browser window at the same location and captured the quadrants again. Then compare both the captured values for equality.

My questions:

1. How to launch the browser at specified location/position?

2. How to capture the quadrants?

 

Please look into this.

5 Answers, 1 is accepted

Sort by
0
Vinay
Top achievements
Rank 1
answered on 01 Mar 2018, 12:18 PM
Any update on this?
0
Elena
Telerik team
answered on 02 Mar 2018, 04:31 PM
Hello Ranjeel,

Thank you for sharing details on your scenario. 

First of all I would like to mention that Test Studio or the Testing Framework start the browser window at its location and widnows size where it was last closed. So if you would like to open the browser at different location on screen and window size you could open an instance of the desired browser and resize and move it to the desired location. Then close it and start any test. 

In regards the quadrants you would need to capture I guess you have in mind quadrants on the desktop. And if this is so it is important to mention that Test Studio/Testing Framework is an automation tool for web applications and thus could only interact with the browsers and elements in the html. 

I hope this information will be useful to you. Though in case of any further question please let me know. 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Vinay
Top achievements
Rank 1
answered on 05 Mar 2018, 12:38 PM

Thanks Elena for clearing my doubts.

With qudrants I meant to browser coordinates. I want to get the x axis and y axis [+ve and -ve both] of the browser window.

Hope you will get my question?

 

Thanks

0
Elena
Telerik team
answered on 06 Mar 2018, 01:09 PM
Hi Ranjeet,

Thank you for the additional details. 

The Testing Framework interacts with the browser to get the displayed html. The position of any window on the desktop could be measured with coordinates relative to the desktop itself. 

This could be accomplished using the respective Windows APIs and is not part of the Testing Framework. 

Thank you for your understanding! 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Vinay
Top achievements
Rank 1
answered on 09 Mar 2018, 10:14 AM
Thanks Elena.
Tags
General Discussions
Asked by
Vinay
Top achievements
Rank 1
Answers by
Vinay
Top achievements
Rank 1
Elena
Telerik team
Share this question
or