Hi Team,
I need help, I am getting error 'cannot implicitly convert type 'ranorex.core.rxpath' to 'ranorex.unknown' when tried to execute below code
public void Click_Button(Ranorex.Core.Repository.RepoItemInfo item,string message)
{
if(item.Exists(5000))
{
Ranorex.Unknown ele= item.AbsolutePath;
ele.Click();
}
}
Unable to click on Button
Re: Unable to click on Button
Hi,
You need to create an adapter from iteminfo element.
Just replace this line:
with this line:
You need to create an adapter from iteminfo element.
Just replace this line:
Code: Select all
Ranorex.Unknown ele= item.AbsolutePath;
Code: Select all
Ranorex.Unknown ele= item.CreateAdapter<Ranorex.Unknown>(true);
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Unable to click on Button
Thank you so much. That worked 
