How to switch to frame having HTML <div id="mydiv"> <object id="frame" data="tdreporthome.html"></object> </div> using Selenium :     <!DOCTYPE html>
    <html>
    <head>
    <body>
    <header class="masthead">
    <div id="mydiv">
    <object id="frame" data="tdreporthome.html"></object>
    </div>
    <footer class="navbar default-footer">
    </body>
    </html>

In the above html structure if i want to switch selenium control to  frame how to do so using Selenium ?
