uiautomationvalue
Posted: Tue Jul 26, 2016 9:38 pm
trying to create a function that takes in ranorex text, gets it's uiautomationvalue, converts it to a sting to be compared to an input string and click that text if it matches the uiautomationvalue. This is what it is intended to look like:
public void clickButton(Ranorex.Text repositoryText, string inputText){
if(repositoryText.GetAttributeValue("UIAutomationValue").ToString()==inputText){
repositoryText.click();
}
}
something along these lines but i'm having trouble accessing the UIAutomationValue.
please help
public void clickButton(Ranorex.Text repositoryText, string inputText){
if(repositoryText.GetAttributeValue("UIAutomationValue").ToString()==inputText){
repositoryText.click();
}
}
something along these lines but i'm having trouble accessing the UIAutomationValue.
please help