Hi all:

I just want to let watir attach embedded browser, and control it. I
find this topic:
http://groups.google.com/group/watir-general/browse_thread/thread/479...
and read all that reference. It seems someone has solved this problem.
But I can't let it work yet. I can't understand all those details.

My problem is as following:
  In an Eclipse RCP program, I use SWT OLE to create a browser.
  ------Java Code
                OleFrame frame = new OleFrame(parent, SWT.NONE);
                OleClientSite client = new
OleClientSite(frame,SWT.NONE,"Shell.Explorer.2");
                client.doVerb(OLE.OLEIVERB_SHOW);
                OleAutomation oa = new OleAutomation(client);
                Variant str = new Variant(“www.google.com");
                oa.invoke(104, new Variant[]{str});

  Then I want to use watir to control it.

My question is:
  1.That browser instant is a embedded browser here?
  2.Could watir be used as I has described?

Any suggestion is every appreciated!!

Regards
James
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to