Fwd: Re: How to improve this code?
Thomas Lehmann
Iris-und-Thomas-Lehmann at T-Online.de
Wed Sep 16 08:07:10 EDT 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
selenium.is_element_present(ele)]
if len(missingItems) > 0:
print "missing items: %s" % (missingItems)
More information about the Python-list
mailing list