Selenium unable to locate my elements(buttons) : <p>I want to press buttons using selenium, i faced an issue yesterday where i couldn't and simply turned out that my button is inside an iframe circling the entire webpage. this fixed it:</p>

<pre><code>from time import sleep
driver.switch_to.frame(driver.find_element_by_id("includedPage"))
sleep(10)
element = driver.find_element_by_xpath("//input[contains(@id, 'workbenchLst:j_id_id507') and @value='Add']")
element.click()
</code></pre>

<p>after clicking on it i wanted to do same with other buttons on the page after but couldn't i just keep getting <code>Unable to locate element</code> for the iframe and all other elements in the page( that page has an iframe too inside a td like this):</p>

<pre><code>&lt;td id="rightTdId"&gt;                                 
                                    &lt;iframe id="includedPage" style="width:100%;" onload="reRenderReportLOV();;tickleSession('pageNavigation:sessionLink');disableContextMenu();showHidPanelMenu('hide','leftMenuj_id_1');" name="includedPage" src=".." marginheight="0" marginwidth="0" height="531" frameborder="0"&gt;&lt;/iframe&gt;
                                &lt;/td&gt;
</code></pre>

<p>how can i get my buttons in that page and disable iframe's effect affect after locating it?</p>
