Page 1 of 1

Webdoc identification problem

Posted: Mon Jan 23, 2012 3:25 pm
by anzacthecat
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?

Re: Webdoc identification problem

Posted: Mon Jan 23, 2012 4:29 pm
by Support Team
Hi,
anzacthecat wrote:What am I doing wrong?
Did you check if the property "UseCache" is enabled on your DOM Object inside your repository?
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