Code review comment for lp:~veebers/stock-ticker-mobile-app/porting-autopilot-1.4

Revision history for this message
Chris Gagnon (chris.gagnon) wrote :

What happens if the target_row doesn't find an object? we should have an error message here so it's easy to diagnose the target_row is not found, and not the remove_button is not found.

43 + try:
44 + o.select_single(
45 + 'QQuickText',
46 + objectName='companyNameText',
47 + text="Google Inc."
48 + )
49 + target_row = o
50 + break
51 + except StateNotFoundError:
52 + pass
53 +
54 + remove_button = target_row.select_single(

« Back to merge proposal