How does FindSingle method works?
Posted: Tue Oct 31, 2017 6:31 am
Hello,
i am trying to get a Container from the windows FORM using FindSingle method, but Ranorex is throwing an error message NoElement found for path
This is the Actual path for the container /form[@automationid='LoginWindow']/container[1]
Below is how i am trying to get it
public Form LoginForm
{
get
{
return DNA2UIMapsRepository.Instance.LoginWindow.Self;
}
}
public Container UserNameContainer
{
get
{
string rxPath = "/container[1]";
return LoginForm.FindSingle(rxPath,25);
}
}
Note: I have saved the LoginWindow Xpath in the repository and trying to do the find single using that path
Can someone help me here please?
i am trying to get a Container from the windows FORM using FindSingle method, but Ranorex is throwing an error message NoElement found for path
This is the Actual path for the container /form[@automationid='LoginWindow']/container[1]
Below is how i am trying to get it
public Form LoginForm
{
get
{
return DNA2UIMapsRepository.Instance.LoginWindow.Self;
}
}
public Container UserNameContainer
{
get
{
string rxPath = "/container[1]";
return LoginForm.FindSingle(rxPath,25);
}
}
Note: I have saved the LoginWindow Xpath in the repository and trying to do the find single using that path
Can someone help me here please?