title: trying to print using nth-child() in python script and selenium
body: <p>Im Using selenium and python3.
  I have a <a href="https://i.stack.imgur.com/KbulZ.png" rel="nofollow noreferrer">LIST</a> id like to loop through in my script using nth-child(1n)</p>
  <pre><code>for n in self.driver_web_browser.find_element_by_css_selector('#ctl00_ContentPlaceHolder1_Estadocombo &gt; option:nth-child({n})'):
              str.append(n.text())
              print(str)
  </code></pre>
  <p>Im getting an error please help.</p>
  <p>for n in self.driver_web_browser.find_elements_by_css_selector('#ctl00_ContentPlaceHolder1_Estadocombo &gt; option:nth-child({n})'):</p>
  <p>File &quot;/Users/ef/Desktop/MyBot/myBot/BOTS/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py&quot;, line 614, in find_elements_by_css_selector
  return self.find_elements(by=By.CSS_SELECTOR, value=css_selector)
  File &quot;/Users/ef/Desktop/MyBot/myBot/BOTS/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py&quot;, line 1007, in find_elements
  'value': value})['value'] or []
  File &quot;/Users/ef/Desktop/MyBot/myBot/BOTS/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py&quot;, line 321, in execute
  self.error_handler.check_response(response)
  File &quot;/Users/ef/Desktop/MyBot/myBot/BOTS/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py&quot;, line 242, in check_response
  raise exception_class(message, screen, stacktrace)
  selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: An invalid or illegal selector was specified
  (Session info: chrome=85.0.4183.102)</p>