Hi,
Actually i am looking for, if any way it is possible to do a change the Adapter type in run time. Can any one suggest what are the possible solutions.
Find the code snippet below.
WebElement element = null;
string xpath=null;
element = Host.Local.FindSingle( xpath).As<(InheritedType of Adapter)>();
I want if (InheritedType of Adapter) can be modified on runtime.
instead of always in the below manner
element = Host.Local.FindSingle( xpath).As<(WebElement )>();
OR
element = Host.Local.FindSingle( xpath).As<(SpanTag)>();
or...
I want to pass global Type (T). it didn't work as it is taking only inherited Types of Adapter
Please suggest the possible solutions ...
Can we make the Adapter type dynamic in VS ?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Can we make the Adapter type dynamic in VS ?
Hi!
Please contact us via the links below and we will be more than happy to further assist you with this!
Ranorex Team
Please contact us via the links below and we will be more than happy to further assist you with this!
- Existing Customer: https://www.ranorex.com/support-query
- Evaluation Customer: https://www.ranorex.com/prices/contact/
Ranorex Team