Search found 10 matches

by nikivancic
Sat Oct 11, 2008 1:17 am
Forum: Automation API
Topic: Application.ShowForm =>System.InvalidOperationException
Replies: 22
Views: 11476

Confirmed

My final code is: // // Ensure that the WebBrowser control has page loaded // browser.Navigate(pageURL); // // Create the Ranorex.Control instance // IntPtr bHandle = browser.Handle; Ranorex.Control rBrowser = new Ranorex.Control(bHandle); // // Create the WebDoument instance // WebDocument webDoc =...
by nikivancic
Thu Oct 09, 2008 4:03 pm
Forum: Automation API
Topic: Application.ShowForm =>System.InvalidOperationException
Replies: 22
Views: 11476

Additional problem clarification

I may have written incorrect code, guessing how to get the Ranorex.Control object from the instance of the Microsoft's embedded browser (WebControl) instance. So my current method to get the WebDocument for a given URL is IntPtr bHandle = browser.Handle; Ranorex.Control rBrowser = new Ranorex.Contro...
by nikivancic
Wed Oct 08, 2008 1:49 am
Forum: Automation API
Topic: Application.ShowForm =>System.InvalidOperationException
Replies: 22
Views: 11476

Some more

Hello Hoping to accelerate the process of making me understand the issues related to the embedded WebBrowser control, here is a section of code which shows my current problem. I have created a Ranorex.Control instance using the handle of the original WebBrowser control, navigated it to the proper pa...
by nikivancic
Tue Oct 07, 2008 9:09 pm
Forum: Automation API
Topic: Application.ShowForm =>System.InvalidOperationException
Replies: 22
Views: 11476

Relationship between System.Windows.Forms and Ranorex object

There is a (clearly intended) name collision - my previous post about the embedded WebBrowser control is just one example of the situation I do not completely understand. While it is obvious that you had to enhance the native browser control in order to be used in the context of your Automation envi...
by nikivancic
Tue Oct 07, 2008 9:00 pm
Forum: Automation API
Topic: Application.ShowForm =>System.InvalidOperationException
Replies: 22
Views: 11476

How to associate the System.Windows.Forms.WebBrowser control

with the Ranorex.Control instance which is the expected argument to WebDocument.GetDocument(browserInstance) method? From what I gathered looking around, I expect the the answer is to find the handle of the System.Windows.Forms.WebBrowser control instance and use it as the argument to the Ranorex.Co...
by nikivancic
Tue Oct 07, 2008 6:38 pm
Forum: Automation API
Topic: Application.ShowForm =>System.InvalidOperationException
Replies: 22
Views: 11476

Thanks again for such prompt explanation.

Regards

Nik
by nikivancic
Mon Oct 06, 2008 4:03 pm
Forum: Automation API
Topic: Application.ShowForm =>System.InvalidOperationException
Replies: 22
Views: 11476

RanorexSpyPro?

Hi, Alex

You referenced the RanorexSpyPro as the solution for direct inspection of the embedded IE control - can you please get me a reference to that tool. I found RanorexSpy and RanorexWebSpy, but could not find the RanorexSpyPro.

Thanks in advance

Nik
by nikivancic
Mon Oct 06, 2008 2:58 pm
Forum: Automation API
Topic: Application.ShowForm =>System.InvalidOperationException
Replies: 22
Views: 11476

Perfect response, thank you Alex

:D :D :D

Just what I was hoping for and even sooner than I expected. This experience matches my impressions about your product - terrific.

Nik

P.S. Is there a document that describes the Ranorex API?
by nikivancic
Sun Oct 05, 2008 9:44 pm
Forum: Automation API
Topic: Application.ShowForm =>System.InvalidOperationException
Replies: 22
Views: 11476

A slightly different view of the same problem

I just posted the similar question in the context of the WebTesting (using WebSpy), so I do not believe that the answer provided here solves all problems related to the use of the Microsoft's WebBrowser control embedded in a Windows Forms application. The example shown here is rather "ugly" (meaning...
by nikivancic
Sun Oct 05, 2008 6:21 pm
Forum: Object Identification and Technologies
Topic: How to use Microsoft's WebBrowser Control
Replies: 1
Views: 3498

How to use Microsoft's WebBrowser Control

I believe that I saw some text about the embedded WebBrowser Control, but searching for it created a lot of unrelated information :cry: How can I create the instance of the WebDocument object related to the instance of the WebBrowser control? Can someone point me to the relevant information please? ...