test_widget_ex_.sikuli

(Download this script)
# Open Widget_Ex app (replace with correct location/extension)
app = App.open("Widget_Ex.app")

sleep(5)

focusedWindow = App.focusedWindow()

# Pull out drawer
dragDrop(Location(focusedWindow.getX() + 10, focusedWindow.getY() + 100), Location(focusedWindow.getX() + 200, focusedWindow.getY() + 100))

#Check drawer visible
assert wait(Pattern().similar(0.50), 2)

# Throw back drawer
dragDrop(Location(focusedWindow.getX() + 200, focusedWindow.getY() + 100), Location(focusedWindow.getX() + 10, focusedWindow.getY() + 100))
#dragDrop(Pattern("1487088481738.png").exact(), Pattern("1487088581249.png").exact()) #Alternative dragDrop with images.

# Check drawer dissapeared
assert waitVanish(Pattern().similar(0.50),5)