Loop through button clicks - Flex calendar dropdown
Posted: Sat Dec 01, 2012 6:03 pm
I am evaluating Ranorex to determine if we can automate the creation of some reports from a Flex application. So, far we have had some success. I have some questions regarding one of the controls we have to click on, however.
There is a calendar dropdown control where, once we have caused it to dropdown with the Ranorex recording mechanism, we then have to click an arrow button to navigate through a number of months. We are able to do that by recording each click. So far, so good.
However, we want to be able to include some type of configuration file that can tell us how many months to navigate through (how many clicks to make on that arrow button). So, I have two questions.
1) Is there a way to loop and click the same control a preset number of times? Right now the code created by recording this activity has five separate clicks on that arrow button to get us to where we want to be. I would like to have some variable that, once set, determines how many times that button is clicked within a loop.
2) Is there a way to get the Ranorex program that is created from our recording to read in a specialized configuration file which would hold, for example, that preset number of clicks to execute on the button in question.
Thanks.
There is a calendar dropdown control where, once we have caused it to dropdown with the Ranorex recording mechanism, we then have to click an arrow button to navigate through a number of months. We are able to do that by recording each click. So far, so good.
However, we want to be able to include some type of configuration file that can tell us how many months to navigate through (how many clicks to make on that arrow button). So, I have two questions.
1) Is there a way to loop and click the same control a preset number of times? Right now the code created by recording this activity has five separate clicks on that arrow button to get us to where we want to be. I would like to have some variable that, once set, determines how many times that button is clicked within a loop.
2) Is there a way to get the Ranorex program that is created from our recording to read in a specialized configuration file which would hold, for example, that preset number of clicks to execute on the button in question.
Thanks.