Running tests on laptop screen vs monitor screen
Hello!
My team has a TestComplete project, for testing a web application, mostly comprised of keyword tests but also some scripts.
We have found that some tests are failing when ran on a laptop screen but work fine on a monitor screen. What can be done to fix this?
The projects object tree model is to set to "tree" currently. Is there a setting or way that this can be changed for all? Or do individual objects need to be modified to allow for more recognition tolerance maybe? (if that's a thing)
As an example, I attached two pictures that show the display difference of two objects on a laptop screen vs a monitor screen. On laptop screen, the test clicks the wrong object and thus fails the test.
In this case, it makes no sense that the object was zero as it is visible on both the laptop screen and monitor screen.
What I found is that by default, when you keyword record a Click event, a coordinate pair is given to the action (not sure if this is a setting that can be disabled or not). Changing the coordinates to the default value of (-1, -1) or using a script click without coordinates like obj.Click(); the item is able to be clicked on both screen resolutions