title: Access an element in an object with Selenium IDE
body: <p>Selenium IDE</p>
  
  <p>I have a problem with retrieving ID of html page which is included in another html page</p>
  
  <p>the page1.html contains:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;page1&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  ...... code
  &lt;object type="text/html" data="page2.html" width="848" height="720"&gt;&lt;/object&gt;
  ...... code
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The page2.html contains:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;page2&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  ...... code
  &lt;span&gt;&lt;input type="text" id="myID" size="6" value="val"&gt;&lt;/span&gt;
  ...... code
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Selenium code:
  i tried:</p>
  
  <pre><code>window.document.getElementById("myID").value = 'myValue';}
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>window.onload=function(){document.getElementById("myID").value = 'myValue';}
  </code></pre>
  
  <p>no one works i have this Error:</p>
  
  <pre><code>[error] Threw an exception: window.document.getElementById(...) is null
  </code></pre>
  
  <p>My objectif is:
  I want that Selenium modify value of the input.</p>
  
  <p>value="myValue" instead of value="val" </p>
  
  <p>when i test that in the page2.html with Selenium it works well but when i test that in page1.html it does not work i have error null ....
  this is an exemple of my code Selenium: </p>
  
  <pre><code>&lt;tr&gt;
  &lt;td&gt;open&lt;/td&gt;
  &lt;td&gt;file:///D:/Documents/page1.html&lt;/td&gt;
  &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;tr&gt; 
  &lt;td&gt;storeEval&lt;/td&gt; 
  &lt;td&gt;window.document.object.getElementById('myID').value = 'myValue';&lt;/td&gt; 
  &lt;td&gt;var1&lt;/td&gt; 
  &lt;/tr&gt;
  </code></pre>
  
  <p>can some one help me !</p>
  
  <p>Thanks </p>