Fwd: Re: How to improve this code?

Thomas Lehmann Iris-und-Thomas-Lehmann at T-Online.de
Wed Sep 16 14:07:10 CEST 2009

> otherwise. Given this, I'm just trying to write a method
> are_elements_present(aList) whose job is to return True if and only if
> all elements in aList are present in page's HTML. So here is how

missingItems = [str(ele) for ele in eleLocators if not
if len(missingItems) > 0:
   print "missing items: %s" % (missingItems)

More information about the Python-list mailing list