Forum Discussion
I have a few tests which check for flashing text on web sites.
The devs set the colour to change every second. So I simply poll the object for 2 seconds, checking the colours continuously, it keeps a note of all the results it gets. Which will be either 2 or 4. Background and foreground colours. If it finds two of each, that's my flashing colours. So my little function for testing this takes in whether it should be flashing or static, and which colour(s) it should find. (as RGB values)
What is it you need to test?
If you just need to click it, you should just be able to wildcard out the additional classing on the button as it flashes to get to it.
I need to verify it is flashing. We were thinking of doing something similar where we keep checking for the class to alternate between two values. I just was wondering if there was a better way.
- Colin_McCrae8 years agoCommunity Hero
Not that I found.
But there was no class indicators for me. Simply the RGB values changing. So a poll double the length of the flash interval (to be 100% sure you'll catch it) was the way to go.
Related Content
- 12 years agokirk_bottomley
- 3 years agoalengul
Recent Discussions
- 20 hours agodhundley