title: Where is this python object.text method comming from?
body: <p>In my learning lessons I saw this code:</p>
  
  <pre><code>def check_for_row_in_list_table(self, row_text):
      table = self.browser.find_element_by_id('id_list_table')
      rows = table.find_elements_by_tag_name('tr')
      self.assertIn(row_text, [row.text for row in rows])
  </code></pre>
  
  <p>Now Iam wondering where this text method in the last line for row is comming from?? What type is row?</p>