Webdoc identification problem : Automation API

Webdoc identification problem

Class library usage, coding and language questions.

Webdoc identification problem

Postby anzacthecat » Mon Jan 23, 2012 4: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?
anzacthecat
 
Posts: 29
Joined: Mon Jan 10, 2011 2:05 pm

Re: Webdoc identification problem

Postby Support Team » Mon Jan 23, 2012 5: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
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests