Page 1 of 1

Ranorex.Core.Element

Posted: Thu Oct 31, 2013 9:52 am
by rkarhe
Hello,

How to use Ranorex.Core.Element?
How can I create Wrapper for Ranorex.Core.Element?

When I am trying to inherit it says, The type 'Ranorex.Core.Element' has no constructors defined.

Ex.
public class myElement : Ranorex.Core.Element //The type 'Ranorex.Core.Element' has no constructors defined.

I am new to c sharp, to me this looks like there is no public constructor for 'Ranorex.Core.Element' class.

Thanks in advance..

Re: Ranorex.Core.Element

Posted: Thu Oct 31, 2013 1:42 pm
by krstcs
Why are you trying to inherit from Element? You should probably be using an adapter that more closely matches the UI element you are trying to automate. It would give you more precise control over the actions that can be taken against the element.

From looking at the API though, I do not see a constructor, and it does say that it dynamically implements capabilities and adapters, so I would guess that there is a factory that does this, which means that you probably will not be able to implement a wrapper for this class.