title: AttributeError: 'str' object has no attribute 'text' printing css error
body: <p>I am trying to print text of a job for.  Unfortunately, the href keeps displaying none and I keep getting errors for printing the text I get the following error: </p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/Bain3/PycharmProjects/untitled4/Bookmaker improved ALTERNATIVE.py", 
  line 155, in &lt;module&gt;
      print(bet.text)
  AttributeError: 'str' object has no attribute 'text'
  </code></pre>
  
  <p>Code below or full code <a href="http://textuploader.com/d4eja" rel="nofollow noreferrer">here</a></p>
  
  <pre><code>with open('Aperture Science.csv', 'a+', newline='\n') as file:
          writer = csv.writer(file)
          for section in sections:
              try:
                  link = section.find_element_by_css_selector("h3 a").get_attribute("href")
                  print((section.get_attribute('href')))
              except NoSuchElementException:
                  pass
              time.sleep(7)
              try:
                  team_name = section.find_element_by_css_selector(".row:nth-child(1) td:nth-child(1)").text
                  print(section.text)
              except NoSuchElementException:
                  pass
              time.sleep(7)
              try:
                  bet = section.find_element_by_css_selector(".odds .odds span").text
                  print(bet.text)
              except NoSuchElementException:
                  pass
              time.sleep(7)
              writer.writerow((bet, team_name, link))
  </code></pre>
  
  <p>I have tried variations like:</p>
  
  <pre><code>for section in sections:
      try:
          link = section.find_element_by_css_selector("h3 a").get_attribute("href")
          print((link.get_attribute('href')))
  </code></pre>
  
  <p>As well as:</p>
  
  <pre><code>team_name = section.find_element_by_css_selector(".row:nth-child(1) td:nth-child(1)").text
  print(team_name.text)
  </code></pre>
  
  <p><code>print(section.text)</code> works, though this is not the text I am wanting to print.  Any ideas?</p>