I am trying to develop an automation framework using ranorex. I will not be using the object repo and instead i do is to store all the xpaths in a seperarte independent class file and use them in the other classes by refrencing them when ever required.Something like below
public class Objrep
public Ranorex.Text First_Name = "XPATH";
and then create the class instance in other class and access First_Name something like below.
public class CRM
Objrep x = new Objrep();
x.First_Name.TextValue = "ABC";
The problem hrer is when i try to run the scritp i get an error "Ranorex.ElementNotFoundException: No element found for path "XPATH". How can i overcome this.
Please also suggest a automation framework for my requirement.
The exception was because once the class is inatialised Ranorex will try to find all the object XPATHS from the application and assign them to variables. But at that time some of the application objects were not yet displayed and so it throws the element not found exception...