title: Get the xpath of an element inside an iFrame for RobotFramework RIDE
body: <p>I am trying to get the xpath of a 'Form' element by its id that is inside an iframe.</p>
  
  <p><a href="https://i.stack.imgur.com/MrbtJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MrbtJ.png" alt="enter image description here"></a></p>
  
  <p>In chrome xpath plugin when i query </p>
  
  <blockquote>
    <p>//iframe[contains(@id,'fraModalPopup')]</p>
  </blockquote>
  
  <p>it gets me the iframe but when i try to get anything down the hierarchy it just returns null. e.g. if i try doing </p>
  
  <blockquote>
    <p>//iframe[contains(@id,'fraModalPopup')]/html   // returns null</p>
  </blockquote>
  
  <p>or </p>
  
  <blockquote>
    <p>//iframe[contains(@id,'fraModalPopup')]/form[contains(@id='aspnetForm')]
    // not sure if it is a right xpath statement - also returns null</p>
  </blockquote>
  
  <p>would please anyone guide me how I can get hold on to the form element? I have to use this xpath inside RIDE (Robot Framework).</p>