Hello everyone. I'm working on a locally hosted website that sends an email with a pdf. When you click the email icon in the web page it pulls up another page with the same URL where you can fill out the email address, add comments, fill out the body and such. What I'm trying to do is find a reference to that page so I can find child objects and fill in areas correctly and so on and so forth.
I'm having trouble finding a page reference because both pages have the same url and are practically identical. I've tried using this code and it seems that the index of the web pages switch from time to time. Sometimes the previous page will have an index of one and the new page will have the original one!
<font class="small">Code:</font><hr /><pre>
var assignPage = Sys.Process("iexplore").WaitPage("*OilAnalysisCont rolPanel.aspx",1,10000);
 sorry, i forgot to mention that WaitPage function is just something we've created in our common library that gets the page, and waits for it to load.
You can try to identify the needed page by using Name Mapping. If the pages have different sets of children, the needed page can be recognized by using this difference (see the "Name Mapping" and "Specifying Child Objects Required for Mapped Object Identification" help topics).