title: How to switchTo a frame when the body tag is hidden by style="overflow: hidden;"
body: <p>In the PeopleSoft page if I click on the lookup it pops up a new widget, I need to select one of the options. </p>
  
  <p>The DOM has been designed in a way which has "style="overflow: hidden;"" in the body tag, with the below xpath I am able to identify the frame in google chrome, however, I couldn't switch to the frame and click on the option I need to select</p>
  
  <p>HTML of the iframe:</p>
  
  <pre><code>&lt;iframe frameborder="0" id="ptModFrame_2" name="ptModFrame_2" src="https://*******:8560/psc/umcssi2/EMPLOYEE/SA/c/SSR_PROG_ENRL.SSR_APT_REQ_RUNCNT.GBL?ICType=Panel&amp;amp;ICElementNum=0&amp;amp;ICStateNum=7&amp;amp;ICResubmit=1&amp;amp;ICAJAX=1&amp;amp;" style="width: 514px; height: 350px;"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>I tried with the below xpath to switch to the frame:</p>
  
  <p>Xpath to switch to frame: <code>//div[@id='pt_modals']/div[2]/div/div[2]/iframe[contains(@src,'https://*******')]</code></p>
  
  <p>Xpath to select the option after switching:</p>
  
  <pre><code>driver.findElement(By.xpath("//table/tbody/tr[4]/td[1]")).click();
  </code></pre>
  
  <p>Note: I also tried javascript executor.</p>
  
  <pre><code>js.executeScript("arguments[0].click();",driver.findElement(By.xpath("//table/tbody/tr[4]/td[1]")));
  </code></pre>
  
  <p>I have just frame the same DOM, </p>
  
  <pre><code>&lt;body class="PSPAGE" id="ptifrmtemplate" style="overflow: hidden;"&gt;&lt;div id="ptpopupmask" style="display: none;"&gt;&amp;nbsp;&lt;/div&gt;
  </code></pre>
  
  
  
  
  <p>I expect that it should click but it is not switching to the frame in first place.</p>