Hi,
When I give this code "Button2.PerformClick()" I am getting 'PerformClick' is not a member of 'Ranorex.Button' error. Could you please help me to solve this issue.
Thanks in advance
'PerformClick' is not a member of 'Ranorex.Button'
Re: 'PerformClick' is not a member of 'Ranorex.Button'
Try
Code: Select all
Button2.Press();
Last edited by Martin on Thu Mar 31, 2016 11:31 am, edited 1 time in total.
Re: 'PerformClick' is not a member of 'Ranorex.Button'
Hi,
I'm afraid, there is not enough info in your post regarding your problem. Please answer the following questions:
Ranorex version?
Tested technology (HTML, Java, WPF, MFC, iOS, Android, etc...)?
Please post a Ranorex snapshot (not screenshot) of the problematic element. Because you are new here, you may need to use a 3rd party storage (google drive, one drive, dropbox) and post a link without 'http' or 'www'
BTW, usually, it should be enough to select proper Adapter Type instead of letting Ranorex to select it. Just select "Button" instead of "Default" adapter type (in repository properties for given element):
I'm afraid, there is not enough info in your post regarding your problem. Please answer the following questions:
Ranorex version?
Tested technology (HTML, Java, WPF, MFC, iOS, Android, etc...)?
Please post a Ranorex snapshot (not screenshot) of the problematic element. Because you are new here, you may need to use a 3rd party storage (google drive, one drive, dropbox) and post a link without 'http' or 'www'

BTW, usually, it should be enough to select proper Adapter Type instead of letting Ranorex to select it. Just select "Button" instead of "Default" adapter type (in repository properties for given element):
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
Re: 'PerformClick' is not a member of 'Ranorex.Button'
Hi Martin,
Thank you for your reply. For button it is working fine. For combo box without moving the mouse is it possible to select a value. Could you please help me on this.
Thank you very much for your support.
Thank you for your reply. For button it is working fine. For combo box without moving the mouse is it possible to select a value. Could you please help me on this.
Thank you very much for your support.

Re: 'PerformClick' is not a member of 'Ranorex.Button'
Hi mashrino,
To select an entry of a combobox, you could use the SetValue-Action. The corresponding code for that action would be:
Best Regards,
asdf
To select an entry of a combobox, you could use the SetValue-Action. The corresponding code for that action would be:
repo.Form.ComboBox.Element.SetAttributeValue("SelectedItemText", "YourValue");I hope this helps.
Best Regards,
asdf