![]() |
Check Object Spacing - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Check Object Spacing (/Thread-Check-Object-Spacing) |
Check Object Spacing - goaliema3026 - 06-25-2015 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? |