Custom Invoke Actions from Extension Methods

Ranorex Studio, Spy, Recorder, and Driver.
Posts: 1
Joined: Tue Oct 28, 2014 10:39 am

Custom Invoke Actions from Extension Methods

Post by alex.z » Tue Oct 28, 2014 10:58 am


I have not found any forum topics or blog posts on this topic (only adding dynamic invoke actions via application code), hopefully I didn't miss anything.

From what I can tell, the only way to currently execute a custom action (extension) on a UI-object is to create a user code action and call the method like:

Code: Select all

With an extension method looking like:

Code: Select all

public static void MySelectEntry(this ComboBox cb, string entry)
    cb.Items.First(x => x.Text == entry).Click();
What I would much prefer is having this extention method available from the "Invoke Action" in the recording view (just like e.g. "Press", "Focus" or the dynamic actions).

Is that somehow already possible / something that could be added?


User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Custom Invoke Actions from Extension Methods

Post by Support Team » Fri Oct 31, 2014 3:37 pm


Unfortunately, this is currently not possible. In order to raise and discuss your feature request may I ask you to create a support ticket? We want to handle feature request via email in order to avoid misunderstandings.

Thank you in advance.