Hi Team,
I used the below line of code to right click on a web element on Ranorex 5.3.2 and on migrating my scripts to Ranorex 8.3.1, I am getting an error. Please help.
Ranorex 5.3.2 code to right click on element:
Mouse.Click(repo.AccountsGLAccounting.Object.MainPage.RemindersTab.DocNo, MouseButtons.Right);
Error: The Name 'MouseButtons' does not exist in the current context (CS0103)
Regards,
Chiranth
How to right click on a web element in Ranorex 8.3.1
-
- Posts: 20
- Joined: Mon Oct 29, 2018 1:09 pm
Re: How to right click on a web element in Ranorex 8.3.1
Hi,
You can use this:
You can use this:
WinForms.MouseButtons.Right
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
-
- Posts: 20
- Joined: Mon Oct 29, 2018 1:09 pm
Re: How to right click on a web element in Ranorex 8.3.1
Worked!!
Mouse.Click(repo.AccountsGLAccounting.Object.MainPage.RemindersTab.DocNo, Winforms.MouseButtons.Right);
Thanks,
Odklizec

Mouse.Click(repo.AccountsGLAccounting.Object.MainPage.RemindersTab.DocNo, Winforms.MouseButtons.Right);
Thanks,
Odklizec