Hi, I tried it and it did not work. Here are the details: C:\Projects\ILoveIronRuby\ILoveIronRuby\testing\bin\Debug>ir ironrubywatin.rb ironrubywatin.rb:8: iwebBrowser2 needs to implement shdocvw.IWebBrowser2 (Argume ntError)
Thanks, Azam On Tue, Sep 22, 2009 at 10:10 AM, Shri Borde <shri.bo...@microsoft.com>wrote: > IronRuby start the main thread in STA mode as can be seen by this > command: > > > > c:\>rbx -e "puts System::Threading::Thread.CurrentThread.ApartmentState" > > STA > > > > However, new threads are created in MTA mode (the default). > > > > c:\>rbx -e "Thread.new{ puts > System::Threading::Thread.CurrentThread.ApartmentState }.join" > > MTA > > > > I doubt this is the problem as the error messages would be something else. > For C#, are all dlls next to the C# application exe? Try running the > IronRuby repro out of bin\Debug to reduce the issues that could cause > problems. If you cannot get even “require ‘Microsoft.mshtml.dll’” to work, > then you know its some basic problem unrelated to Watin. > > > > *From:* ironruby-core-boun...@rubyforge.org [mailto: > ironruby-core-boun...@rubyforge.org] *On Behalf Of *Mohammad Azam > *Sent:* Monday, September 21, 2009 7:07 PM > > *To:* ironruby-core@rubyforge.org > *Subject:* Re: [Ironruby-core] IronRuby with WatiN > > > > WatiN works in STA (Single Threaded Apartment). Maybe I am missing that? > How can I create STA threads in IronRuby. > > On Mon, Sep 21, 2009 at 7:03 PM, Mohammad Azam <azamsh...@gmail.com> > wrote: > > I created a C# application and used WatiN. It worked flawlessly and without > any configuration. For some reason IronRuby is requiring something more to > run the application. > > On Mon, Sep 21, 2009 at 3:11 PM, Jimmy Schementi < > jimmy.scheme...@microsoft.com> wrote: > > You can do "igem install" against any pure-Ruby gem; only gems with > native extensions require an IronRuby-specific gem. And "igem" is nothing > more than a bat file to call RubyGems with IronRuby; RubyGems for IronRuby > is identical to MRI's version. > > > > That being said, I don't know what type of dependencies Selenium has. > > > > *From:* ironruby-core-boun...@rubyforge.org [mailto: > ironruby-core-boun...@rubyforge.org] *On Behalf Of *Mohammad Azam > *Sent:* Monday, September 21, 2009 3:03 PM > > > *To:* ironruby-core@rubyforge.org > *Subject:* Re: [Ironruby-core] IronRuby with WatiN > > > > I will try the Selenium Client gem. But is there any igem install > selenium-client or do I have to use the Ruby version of Selenium client. > > On Mon, Sep 21, 2009 at 2:52 PM, Ivan Porto Carrero <i...@flanders.co.nz> > wrote: > > You could try the selenium client gem that may work. > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > On Mon, Sep 21, 2009 at 11:35 PM, Mohammad Azam <azamsh...@gmail.com> > wrote: > > Hi, > > > > Since, Watir is currently not supported I want to check out WatiN with > IronRuby. Yes, I know I can use it with C# but I am interested in using > IronRuby. I am getting the following exception: > > > > Here is the code: > > > > require File.dirname(__FILE__) + '/bin/Debug/WatiN.Core.dll' > > require File.dirname(__FILE__) + '/bin/Debug/Interop.SHDocVw.dll' > > require File.dirname(__FILE__) + '/bin/Debug/Microsoft.mshtml.dll' > > > > IE = WatiN::Core::IE > > > > i = IE.new() > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core@rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core@rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core@rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core@rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com
_______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core