Hello,
How can I evaluate an element's type from code using C#? For instance for a TextBlock is it possible to get the type?
Thanks in advance
An element's type
Re: An element's type
Can't you just add the element you want to check to your repository, then run a validate.istrue against the repo item 'type'?
e.g
e.g
Code: Select all
Validate.IsTrue(repo.folder.textbox.type.equals("test"));
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: An element's type
Hello,
Do you want to get the Adapter type of your element?
You could achieve this with the following method:
Regards,
Markus (T)
Do you want to get the Adapter type of your element?
You could achieve this with the following method:
Validate.IsTrue(firstName.GetType().ToString().Equals("Ranorex.Text"));If this is not what you want, please describe which type you want to get.
Regards,
Markus (T)