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
uiautomationvalue
Re: uiautomationvalue
Hi,
Are you sure the UIAutomationValue is available for given repo element? If yes, try the following code...
repositoryText.Element.GetAttributeValueText("UIAutomationValue")
Are you sure the UIAutomationValue is available for given repo element? If yes, try the following code...
repositoryText.Element.GetAttributeValueText("UIAutomationValue")
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