06-25-2015, 01:10 AM
I am still relatively new to UFT/VBScript and was wondering if there was a way to verify spacing between two objects in a web application.
Currently I am getting coordinate values of the target objects, taking the difference of their values, and comparing the differences to an expected value. I know this is inefficient and requires my script to always be run on a device set at a specific screen resolution. I would like my script to have as few assumptions/dependencies as possible and need a solution around this.
Does anyone know a way to check object spacing that is not dependent on resolution?
If this is not possible, is there a way to make my script compensate for coordinate values at different resolutions using my current method?
Currently I am getting coordinate values of the target objects, taking the difference of their values, and comparing the differences to an expected value. I know this is inefficient and requires my script to always be run on a device set at a specific screen resolution. I would like my script to have as few assumptions/dependencies as possible and need a solution around this.
Does anyone know a way to check object spacing that is not dependent on resolution?
If this is not possible, is there a way to make my script compensate for coordinate values at different resolutions using my current method?