Webdoc identification problem

Class library usage, coding and language questions.
anzacthecat
Posts: 31
Joined: Mon Jan 10, 2011 1:05 pm

Webdoc identification problem

Post by anzacthecat » Mon Jan 23, 2012 3:25 pm

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?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Webdoc identification problem

Post by Support Team » Mon Jan 23, 2012 4:29 pm

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