Here is an example.
- but I can't say that it is working perfectly. Something is not going quite right. When the slide is open or closed the while loop is not exiting - which doesn't make any sense. I have a separate thread open on this but having gotten much joy so far:
What I am thinking of doing is moving away from a while loop and just hard coding repeating the commands 2-3 times which should be sufficient.
Doing it in the driver (as mentioned by or with the approach mentioned bu @daniel.winks) or through the wrapper is probably cleaner. But the rule works.