Convert Ranorex Path to String and update the path in runtime
Posted: Fri Aug 16, 2019 3:25 pm
Hi,
I hope you can help me on my issue as I have 2 objects (container) which could be selected depending on the logic of which container you want to select.
So I added and created a repository that I can call during runtime.
However, during the first execution, I am calling the first text and it is working fine. But for the second text, it is still selecting the first text.
repo.MoveletStep=strMoveletStep;
repo.Movilizer.ClientMainObjects.txtMoveletStep.Element.Focus();
string strActualMoveletStep = repo.Movilizer.ClientMainObjects.txtMoveletStep.Element.GetAttributeValueText("text");
Report.Info(strActualMoveletStep);
Report.Screenshot();
if (strActualMoveletStep == strMoveletStep)
{
repo.Movilizer.ClientMainObjects.txtMoveletStep.Focus();
Delay.Seconds(1);
repo.Movilizer.ClientMainObjects.txtMoveletStep.Click();
Report.Success("Clicked on Movelet step: "+strMoveletStep);
}
Do you have an idea on this?
Thank you so much.
Best regards,
Jill
I hope you can help me on my issue as I have 2 objects (container) which could be selected depending on the logic of which container you want to select.
So I added and created a repository that I can call during runtime.
However, during the first execution, I am calling the first text and it is working fine. But for the second text, it is still selecting the first text.
repo.MoveletStep=strMoveletStep;
repo.Movilizer.ClientMainObjects.txtMoveletStep.Element.Focus();
string strActualMoveletStep = repo.Movilizer.ClientMainObjects.txtMoveletStep.Element.GetAttributeValueText("text");
Report.Info(strActualMoveletStep);
Report.Screenshot();
if (strActualMoveletStep == strMoveletStep)
{
repo.Movilizer.ClientMainObjects.txtMoveletStep.Focus();
Delay.Seconds(1);
repo.Movilizer.ClientMainObjects.txtMoveletStep.Click();
Report.Success("Clicked on Movelet step: "+strMoveletStep);
}
Do you have an idea on this?
Thank you so much.
Best regards,
Jill