Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click coordinates differs in local VM vs Azure VM where OS remains same #74

Open
koder101 opened this issue Dec 25, 2017 · 1 comment
Open

Comments

@koder101
Copy link

koder101 commented Dec 25, 2017

I am getting a weird issue that my 2nd click coordinates differ on different machines.
Common Details:

  • Using Windows Server 2012 R2
  • Using Winium.Cruciatus only without WebDriver.
  • My local laptop resolution is 1920x1080

Case 1:
When running the utility in my local VM, it runs fine and the output snippet is-

Waiting for 5 seconds
Window Found : XYZ - Installation Wizard
FindElementByUid found : buttonInstallConsoles
[10:41:37] [Info] Click on 'type: ControlType.Button, uid: buttonInstallConsoles, name: PROCEED WITH INSTALL.' element at (634, 480) ClickablePoint
Waiting for 10 seconds
Window Found : XYZ Consoles - Installation Wizard
FindElementByUid found : 92
[10:41:47] [Info] Click on 'type: ControlType.Button, uid: 92, name: Next >' element at (798, 592) ClickablePoint
Waiting for 4 seconds

Case 2:
When running the utility in my Azure VM, the coordinates of 2nd click action (uid: 92, name: Next >) changes -

Waiting for 5 seconds
Window Found : XYZ - Installation Wizard
FindElementByUid found : buttonInstallConsoles
[18:48:28] [Info] Click on 'type: ControlType.Button, uid: buttonInstallConsoles, name: PROCEED WITH INSTALL.' element at (674, 499) ClickablePoint
Waiting for 21 seconds
Window Found : XYZ - Installation Wizard
FindElementByUid found : 92
[18:48:50] [Info] Click on 'type: ControlType.Button, uid: 92, name: Next >' element at (1258, 925) ClickablePoint
Waiting for 4 seconds

Due to this my further clicks are not happening and getting null reference exception.
Though the output seems it has clicked, but the click is not happening on the button and it is clicking outside the application window due to which the actual window loses focus.

I have no clue why I am getting this issue.
I am using FindElementByUid() but I have also tried FindElementByName()

@vinuthamikkilineni
Copy link

On reason might be because the screen Resolution of your VM and in your local machine is different . I mean different DPI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants