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;
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 )>();
element = Host.Local.FindSingle( xpath).As<(SpanTag)>();
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 ...
Experiences, small talk, and other automation gossip.
2 posts • Page 1 of 1
- Support Team
- Site Admin
- Posts: 12169
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA