title: WebDriver wait for iframe, identify by part of its name
body: <p>I have a problem on waiting for an iframe and switching to it when I know only part of its name. The name is unique every time the page is loaded. The pattern is "Framexxxxxxx" where "xxxxx" are random numbers.</p>
  
  <p>Is there any way to make webdriver ExpectedConditions.frameToBeAvailableAndSwitchToIt() to find that iframe?</p>
  
  <p>So far I've tried:</p>
  
  <pre><code>By.xpath(".//*[starts-with(name(),'Frame')]")
  By.xpath("iframe[starts-with(@name,'Frame')]")
  </code></pre>
  
  <p>and some other ways - no luck.</p>
  
  <p>Thanks in advance.</p>