Hi,
Is there any way to detect if an animation is running on a UI element? I have a button which has an "I am working on it" animation and I would like to detect when it is done instead of just putting in a delay.
Detecting animating
Re: Detecting animating
Hi,
Unfortunately, there doesnt exist an action to detect an animation.
If there is no attribute which states that the animation is currently running, you could only try to create two screensots, one after the other and compare them. If the screenshots are different, the animation is running.
regards, qwertzu
Unfortunately, there doesnt exist an action to detect an animation.
If there is no attribute which states that the animation is currently running, you could only try to create two screensots, one after the other and compare them. If the screenshots are different, the animation is running.
regards, qwertzu
Re: Detecting animating
The screenshot capture is probably the best way to do this, as qwertzu said.
The only issue I would bring up is one of timing. Ranorex is not a performance test tool, so it isn't really setup to do some of these very timing-dependent types of things. Just be aware that there may be times when the test doesn't detect a change because of timing (for example, the updates didn't happen in the time frame of the screenshot captures, or something like that). So, you will probably want to make sure that your code accounts for those timing issues.
The only issue I would bring up is one of timing. Ranorex is not a performance test tool, so it isn't really setup to do some of these very timing-dependent types of things. Just be aware that there may be times when the test doesn't detect a change because of timing (for example, the updates didn't happen in the time frame of the screenshot captures, or something like that). So, you will probably want to make sure that your code accounts for those timing issues.
Shortcuts usually aren't...