tags:

views:

49

answers:

0

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!!

this is a thread says he has solved this problem http://rubyforge.org/pipermail/wtr-development/2009-August/001174.html

and this pulling all information together http://jira.openqa.org/browse/WTR-312