B2G/QA/Automation/Style Guide/Howtos: Difference between revisions

Jump to navigation Jump to search
m
Added snippet about non-working wait.
m (Minor typos corrections)
m (Added snippet about non-working wait.)
Line 154: Line 154:
</source>
</source>
[https://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/ Here] is the informative tutorial regarding pdb.
[https://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/ Here] is the informative tutorial regarding pdb.
== Debug a non-working wait ==
When a wait raises an exception while you actually see something happening on the device, you can use a snippet like:
<source lang="python">
for i in range(0, 20)
    print i, expected_end_value, element_that_is_moving.rect["y"]
# Bugged Wait() below
<source>
Confirmed users
213

edits

Navigation menu