Quite a few changes happened since our last blog post announcing the availability of Germanium 1.9.3.
For starters, the
Box class that allows us to get coordinates of elements, and do simple math on these, also supports now getting single position properties (
So for example to get the right and left of a div we could:
positions = Box(Element('div.messages'))
A new parameter
delay is now available, that allows introducing a timed delay between each keypress.
A lot of the times, we got reports that people do a sequence of actions:
The pattern is usually, wait for the next element to appear, interact with it. With
waited this code can be rewritten such as:
waited will return
None instead of throwing, so it can also be used in
Thus writing automation code becomes yet again simpler.