I am using Ranorex 3.0. Whenever i try to get an element using the following code, the element is always null. But when i took the same rxpath and put it in spy, it is identifying that control. What can be the problem?
//My Code
Element elem=null;
string path=@"/form[@controlname='MainForm']/element[@controlname='xtraTabControl1']/container[@controlname='xtraTabTrades']/container/container/container[@controlname='panel1']/container/element/table[@accessiblename='Error message']";
Host.Local.TryFindSingle(path,30000,out elem);
//I tried giving the same path in ranorex spy( both x 86 and x 64) Both can identify that. Only the Host.Local.TryFindSingle is not working.
Any help on this?

Regards,
Siva R S