Forum Discussion
i have no problem with using the name, however, intellisense did not seem to offer a version of the double click method that allowed using a name. Only the ClickTab method which imitates a single click. There are certain spots where the double click action is an imperative. I will continue to research, try different things, see what i can come up with and report back. Any help is welcome. Thanks!
My bad, they're not screen coordinates, they're coordinates of the actual object
Try leaving out the coordinates (that's one of the examples in the article) and see if the double click happens.
If that doesn't work, then I'd dig deeper into the the error message. Is there any machine where the test runs as expected?
- tristaanogre5 years agoEsteemed Contributor
You mentioned that the problem started happening when you shifted to the Network Suite. So, while Marsha_R suggestions are still valid, I'd look at a couple of other things as well.
ClickTab is executing a specific action on the tab that doesn't require the recognition of screen location where as DoubleClick is doing a screen location. What this seems to indicate to me is that the remote machine executing the network job MIGHT be dealing with screen resolution issues where the object may be dimensioned smaller than on the originating machine. So, while a pixel location on the object of 90,15 may work on the developer box, that might not work on the remote box. If you don't want to have to mess around with changing code around too much, you might want to see what screen resolution, scaling, etc., is implemented on that remote box.
- Marsha_R5 years agoModerator
tristaanogre fyi, the link I posted to the double click documentation actually says it's *not* screen coordinates.
- tristaanogre5 years agoEsteemed Contributor
True... but let's say that the screen resolution on the remote machine is smaller. So, the object itself is smaller, pixel wise. So 90,15 may be outside of the bounds of the object on the remote machine. It's still worth investigating... the alternative is to remove those co-ordinates from the DblClick method.... always a good practice unless you explicitly need them. But making sure resolutions match would resolve the problem, potentially, throughout the code and not just on that one line.
Related Content
- 9 years ago
- 2 years ago
Recent Discussions
- 21 minutes ago