<textarea id="value(orders21)" class="readonly" style="width: 98%;" readonly="readonly" rows="10" cols="20" name="value(orders21)">homebound reasons: needs assistance</textarea>
hey guys showed on firebug in page working on.
i wondering how make condition tell me read text box contains word "homebound reasons:"
if "homebound reasons:" in driver.page_source(): print("it's there") else: ("nope not here")
this produces error (typeerror: 'str' object not callable)
how around this?
• first find element
• find text of
• logical comparison.
element = browser.find_element_by_id('value(orders21)') if "homebound reasons:" in element.text: print("it's there") else: ("nope not here")
Comments
Post a Comment