Changes

Jump to: navigation, search

B2G/QA/Automation/Style Guide/Howtos

295 bytes added, 15:42, 12 November 2015
m
Added snippet about non-working wait.
</source>
[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>
Confirm
198
edits

Navigation menu