Forum Discussion
mmkumaram
14 years agoOccasional Contributor
Hi Margaret,
Excellent, This solution works fine with minor tweaks. This is exactly what I was looking for, it is very close how the user would be doing. Also this reduces the co-ordinate issues when the script is executed in different machines/resolutions(unless the developer changes the position of Filter cell)
changes:
On Step 4. Call the Click action and use the mouse cursor's coordinates to simulate a click. For example:
gridTableControl.Click(Sys.Desktop.MouseX, Sys.Desktop.MouseY+25)--> this didn't work, it clicks on different position. using below example seems to click on correct position.
groupGrid.HoverMouseColumnHeader("Well name");
var posX = Sys.Desktop.MouseX;
var posY = Sys.Desktop.MouseY;
posY = posY + 25;
Sys.Desktop.MouseDown(1,posX,posY);
Sys.Desktop.MouseUp(1,posX,posY);
Once again thank you very much for your help.
Regards,
Muthu
Excellent, This solution works fine with minor tweaks. This is exactly what I was looking for, it is very close how the user would be doing. Also this reduces the co-ordinate issues when the script is executed in different machines/resolutions(unless the developer changes the position of Filter cell)
changes:
On Step 4. Call the Click action and use the mouse cursor's coordinates to simulate a click. For example:
gridTableControl.Click(Sys.Desktop.MouseX, Sys.Desktop.MouseY+25)--> this didn't work, it clicks on different position. using below example seems to click on correct position.
groupGrid.HoverMouseColumnHeader("Well name");
var posX = Sys.Desktop.MouseX;
var posY = Sys.Desktop.MouseY;
posY = posY + 25;
Sys.Desktop.MouseDown(1,posX,posY);
Sys.Desktop.MouseUp(1,posX,posY);
Once again thank you very much for your help.
Regards,
Muthu