title: How do I select an element within a frame without an ID in Python/Selenium?
body: <p>I'm using Python 3.9, chromedriver 101 and the latest version of Selenium  I'm trying to select and click an element within a frame without an ID.  The HTML for the frame and element I want to click on are</p>
  <pre><code>&lt;iframe title=&quot;false&quot; class=&quot;k-content-frame&quot; src=&quot;https://publisher.content2classroom.com/viewer.html#viewPublisherInstitutions?winId=ManagePublisherInstitutions&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot;&gt;This page requires frames in order to show content&lt;/iframe&gt;
  ...
      &lt;span id=&quot;subpageBackTitle&quot; class=&quot;subpage-back-title&quot;&gt;&amp;lt; back&lt;/span&gt;
  </code></pre>
  <p>I have the following Python, which fails to select the element when it's visible</p>
  <pre><code>self.driver.switch_to.default_content()
      ...
  element = WebDriverWait(self.driver, 5).until(EC.element_to_be_clickable((By.CSS_SELECTOR, &quot;.subpage-back-title&quot;)))
  </code></pre>
  <p>The resulting error is</p>
  <pre><code>/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/support/wait.py:89: TimeoutException
  </code></pre>
  <p>What's the proper way to navigate to the frame and select/click on the element in question?</p>