Capturing browser window geomatery

6 posts, 0 answers
  1. Vinay
    Vinay avatar
    47 posts
    Member since:
    Jan 2015

    Posted 28 Feb Link to this post

    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.

  2. Vinay
    Vinay avatar
    47 posts
    Member since:
    Jan 2015

    Posted 01 Mar in reply to Vinay Link to this post

    Any update on this?
  3. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    934 posts

    Posted 02 Mar Link to this post

    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
     
  4. Vinay
    Vinay avatar
    47 posts
    Member since:
    Jan 2015

    Posted 05 Mar in reply to Elena Tsvetkova Link to this post

    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

  5. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    934 posts

    Posted 06 Mar Link to this post

    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
     
  6. Vinay
    Vinay avatar
    47 posts
    Member since:
    Jan 2015

    Posted 09 Mar in reply to Elena Tsvetkova Link to this post

    Thanks Elena.
Back to Top