I have a webdocument, which I'm using to navigate to a url:
webdoc.navigate(url);
this works fine but on the next line I then try to close the browser:
webdoc.close();
and it fails with the error: Action 'close' failed on element '{WebDocument:IE}'. Invoke timed out.
What am I doing wrong?
Webdoc identification problem
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Webdoc identification problem
Hi,
Just click on your WebDocument in your repository and open the Properties Pad. Now you should see a setting named "UseCache". Set this to true if it is set to false and try it again.
Did you try to search the new webdoc in code and then close the new one? Does the close procedure work if you don't navigate to another page?
Regards,
Peter
Ranorex Team
Did you check if the property "UseCache" is enabled on your DOM Object inside your repository?anzacthecat wrote:What am I doing wrong?
Just click on your WebDocument in your repository and open the Properties Pad. Now you should see a setting named "UseCache". Set this to true if it is set to false and try it again.
Did you try to search the new webdoc in code and then close the new one? Does the close procedure work if you don't navigate to another page?
Regards,
Peter
Ranorex Team