From watirjira at gmail.com Mon Aug 1 08:18:18 2011 From: watirjira at gmail.com (zeilenleser (JIRA)) Date: Mon, 1 Aug 2011 07:18:18 -0500 (CDT) Subject: [Wtr-development] [JIRA] Commented: (WTR-484) Could not open library RAutomation's UiaDll.dll': A dynamic link library (DLL) initialization routine failed. In-Reply-To: <10616446.7.1309932937639.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> Message-ID: <12503396.3.1312201098736.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> [ http://jira.openqa.org/browse/WTR-484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20250#action_20250 ] zeilenleser commented on WTR-484: --------------------------------- Hey guys I'm getting ------------------------------------------------------------------------- UiaDll: CoCreateInstance failed. hr = 0x80040154C:/Programs/project/lib/execute/test_runner.rb:101:in `eval': Could not open library 'C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/adapter/win_ffi/ms_uia/../../../../../ext/UiaDll/Release/UiaDll.dll': A dynamic link library (DLL) initialization routine failed. (LoadError) from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/ffi-1.0.9-x86-mingw32/lib/ffi/library.rb:54:in `map' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/ffi-1.0.9-x86-mingw32/lib/ffi/library.rb:54:in `ffi_lib' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/adapter/win_ffi/ms_uia/uia_dll.rb:8:in `' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/adapter/win_ffi/ms_uia/uia_dll.rb:5:in `' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/adapter/win_ffi/ms_uia/uia_dll.rb:3:in `' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/adapter/win_ffi/ms_uia/uia_dll.rb:2:in `' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/adapter/win_ffi/ms_uia/uia_dll.rb:1:in `' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/adapter/win_ffi/functions.rb:188:in `control_hwnd' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/adapter/win_ffi/control.rb:39:in `exist?' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/adapter/win_ffi/button.rb:17:in `exist?' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/button.rb:37:in `exists?' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/button.rb:50:in `block in wait_until_exists' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/wait_helper.rb:15:in `wait_until' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/button.rb:50:in `wait_until_exists' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/button.rb:18:in `click' from C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.9.2/lib/watir/dialogs/file_field.rb:12:in `set' ... ------------------------------------------------------------------------- on a XP Professional SP3 machine (within VMWare), with Ruby 1.9.2, Watir 1.9.2, Rautomation 0.6.3 > Could not open library RAutomation's UiaDll.dll': A dynamic link library (DLL) initialization routine failed. > ------------------------------------------------------------------------------------------------------------- > > Key: WTR-484 > URL: http://jira.openqa.org/browse/WTR-484 > Project: Watir > Issue Type: Bug > Components: Other > Affects Versions: Soon > Environment: Windows XP > Reporter: Zhimin Zhan > Priority: Major > Fix For: Soon > > > I am runing a set of tests, only first one failed due to > ruby/gems/1.8/gems/rautomation-0.6.1/lib/rautomation/adapter/win_ffi/ms_uia/../../../../../ext/UiaDll/Release/UiaDll.dll': A dynamic link library (DLL) initialization routine failed -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira From watirjira at gmail.com Mon Aug 1 17:32:20 2011 From: watirjira at gmail.com (Jarmo Pertman (JIRA)) Date: Mon, 1 Aug 2011 16:32:20 -0500 (CDT) Subject: [Wtr-development] [JIRA] Commented: (WTR-484) Could not open library RAutomation's UiaDll.dll': A dynamic link library (DLL) initialization routine failed. In-Reply-To: <10616446.7.1309932937639.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> Message-ID: <21644834.8.1312234340700.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> [ http://jira.openqa.org/browse/WTR-484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20251#action_20251 ] Jarmo Pertman commented on WTR-484: ----------------------------------- Doesn't make much of a sense. Can't reproduce it either. Can you put the following "puts" statement before C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/adapter/win_ffi/button.rb:17: puts @locators.inspect Also put a "puts" right into UiaDll module on line 6 C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/adapter/win_ffi/ms_uia/uia_dll.rb: puts caller Can you reproduce it all the time? uia_dll.rb just shouldn't get loaded if using through Watir... Just in case, what's the code in your test when you call #file_field()#set? > Could not open library RAutomation's UiaDll.dll': A dynamic link library (DLL) initialization routine failed. > ------------------------------------------------------------------------------------------------------------- > > Key: WTR-484 > URL: http://jira.openqa.org/browse/WTR-484 > Project: Watir > Issue Type: Bug > Components: Other > Affects Versions: Soon > Environment: Windows XP > Reporter: Zhimin Zhan > Priority: Major > Fix For: Soon > > > I am runing a set of tests, only first one failed due to > ruby/gems/1.8/gems/rautomation-0.6.1/lib/rautomation/adapter/win_ffi/ms_uia/../../../../../ext/UiaDll/Release/UiaDll.dll': A dynamic link library (DLL) initialization routine failed -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira From watirjira at gmail.com Tue Aug 2 06:30:18 2011 From: watirjira at gmail.com (zeilenleser (JIRA)) Date: Tue, 2 Aug 2011 05:30:18 -0500 (CDT) Subject: [Wtr-development] [JIRA] Commented: (WTR-484) Could not open library RAutomation's UiaDll.dll': A dynamic link library (DLL) initialization routine failed. In-Reply-To: <10616446.7.1309932937639.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> Message-ID: <18378835.12.1312281018934.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> [ http://jira.openqa.org/browse/WTR-484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20252#action_20252 ] zeilenleser commented on WTR-484: --------------------------------- Hi Jarmo First, thanks for your work at RAutomation, it's a great tool so far. Second, back to my issue: bq.??Doesn't make much of a sense. Can't reproduce it either.?? You will. {quote} ??Can you put the following "puts" statement before C:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/rautomation-0.6.3/lib/rautomation/adapter/win_ffi/button.rb:17:?? ??puts @locators.inspect?? {quote} I didn't but the idea is totaly right. bq.??uia_dll.rb just shouldn't get loaded if using through Watir...?? That was the hint I needed to find the source of the problem. Ok, this issues needs some more background informations. I did the test on an German XP version. Therefore I needed to change the Watir::FileField to match the German dialogs and I did it like this {quote} {{def open_button}} {{  file_upload_window.button(:id => 1)}} {{end}} {{def cancel_button}} {{  file_upload_window.button(:id => 2)}} {{end}} {{def file_upload_window}} {{  @window ||= RAutomation::Window.new(:title => /^Datei (zum Hochladen )?ausw\xE4hlen$/i)}} {{end}} {quote} As you can see, I'm using the :id locator instead of the :value locator. That's the reason why uia_dll.rb is loaded (and you can reproduce it if you try). That doesn't explain why the UiaDll.dll can't be loaded but I can overcome the problem by using the :value locator instead (with the german text as far as possible, I didn't found out how to use german umlaute, but that's another problem, for the moment the ascii part of the text works). {quote} {{def open_button}} {{  file_upload_window.button(:value => /&ffnen/)}} {{end}} {{def cancel_button}} {{  file_upload_window.button(:value => 'Abbrechen')}} {{end}} {quote} Thanks for your help. > Could not open library RAutomation's UiaDll.dll': A dynamic link library (DLL) initialization routine failed. > ------------------------------------------------------------------------------------------------------------- > > Key: WTR-484 > URL: http://jira.openqa.org/browse/WTR-484 > Project: Watir > Issue Type: Bug > Components: Other > Affects Versions: Soon > Environment: Windows XP > Reporter: Zhimin Zhan > Priority: Major > Fix For: Soon > > > I am runing a set of tests, only first one failed due to > ruby/gems/1.8/gems/rautomation-0.6.1/lib/rautomation/adapter/win_ffi/ms_uia/../../../../../ext/UiaDll/Release/UiaDll.dll': A dynamic link library (DLL) initialization routine failed -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira From watirjira at gmail.com Tue Aug 2 08:41:19 2011 From: watirjira at gmail.com (Jarmo Pertman (JIRA)) Date: Tue, 2 Aug 2011 07:41:19 -0500 (CDT) Subject: [Wtr-development] [JIRA] Commented: (WTR-484) Could not open library RAutomation's UiaDll.dll': A dynamic link library (DLL) initialization routine failed. In-Reply-To: <10616446.7.1309932937639.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> Message-ID: <13943820.15.1312288879405.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> [ http://jira.openqa.org/browse/WTR-484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20253#action_20253 ] Jarmo Pertman commented on WTR-484: ----------------------------------- Using :id explains indeed. Use regexp to match against English and German as a :value would be better solution: :value => /ffnen|Open/ Something like that. > Could not open library RAutomation's UiaDll.dll': A dynamic link library (DLL) initialization routine failed. > ------------------------------------------------------------------------------------------------------------- > > Key: WTR-484 > URL: http://jira.openqa.org/browse/WTR-484 > Project: Watir > Issue Type: Bug > Components: Other > Affects Versions: Soon > Environment: Windows XP > Reporter: Zhimin Zhan > Priority: Major > Fix For: Soon > > > I am runing a set of tests, only first one failed due to > ruby/gems/1.8/gems/rautomation-0.6.1/lib/rautomation/adapter/win_ffi/ms_uia/../../../../../ext/UiaDll/Release/UiaDll.dll': A dynamic link library (DLL) initialization routine failed -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira From watirjira at gmail.com Tue Aug 2 08:43:18 2011 From: watirjira at gmail.com (Jarmo Pertman (JIRA)) Date: Tue, 2 Aug 2011 07:43:18 -0500 (CDT) Subject: [Wtr-development] [JIRA] Commented: (WTR-484) Could not open library RAutomation's UiaDll.dll': A dynamic link library (DLL) initialization routine failed. In-Reply-To: <10616446.7.1309932937639.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> Message-ID: <9296474.18.1312288998325.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> [ http://jira.openqa.org/browse/WTR-484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20254#action_20254 ] Jarmo Pertman commented on WTR-484: ----------------------------------- Oh, and the reason why UiaDll.dll loading doesn't work for you is related with some kind of a Windows Update - see the reply from Stephan above. > Could not open library RAutomation's UiaDll.dll': A dynamic link library (DLL) initialization routine failed. > ------------------------------------------------------------------------------------------------------------- > > Key: WTR-484 > URL: http://jira.openqa.org/browse/WTR-484 > Project: Watir > Issue Type: Bug > Components: Other > Affects Versions: Soon > Environment: Windows XP > Reporter: Zhimin Zhan > Priority: Major > Fix For: Soon > > > I am runing a set of tests, only first one failed due to > ruby/gems/1.8/gems/rautomation-0.6.1/lib/rautomation/adapter/win_ffi/ms_uia/../../../../../ext/UiaDll/Release/UiaDll.dll': A dynamic link library (DLL) initialization routine failed -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira From watirjira at gmail.com Tue Aug 2 14:02:18 2011 From: watirjira at gmail.com (zeilenleser (JIRA)) Date: Tue, 2 Aug 2011 13:02:18 -0500 (CDT) Subject: [Wtr-development] [JIRA] Commented: (WTR-484) Could not open library RAutomation's UiaDll.dll': A dynamic link library (DLL) initialization routine failed. In-Reply-To: <10616446.7.1309932937639.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> Message-ID: <13675242.22.1312308138102.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> [ http://jira.openqa.org/browse/WTR-484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20255#action_20255 ] zeilenleser commented on WTR-484: --------------------------------- {code:title=Jarmo Pertman wrote} Use regexp to match against English and German as a :value would be better solution: :value => /ffnen|Open/ {code} That's the only solution that works right now. The idea behind :id was to make the file dialog work out of the box for all languages without modifying/overwriting these methods (not everybody knows about this). But at least they have to do it for the title, so that's no big deal anymore. > Could not open library RAutomation's UiaDll.dll': A dynamic link library (DLL) initialization routine failed. > ------------------------------------------------------------------------------------------------------------- > > Key: WTR-484 > URL: http://jira.openqa.org/browse/WTR-484 > Project: Watir > Issue Type: Bug > Components: Other > Affects Versions: Soon > Environment: Windows XP > Reporter: Zhimin Zhan > Priority: Major > Fix For: Soon > > > I am runing a set of tests, only first one failed due to > ruby/gems/1.8/gems/rautomation-0.6.1/lib/rautomation/adapter/win_ffi/ms_uia/../../../../../ext/UiaDll/Release/UiaDll.dll': A dynamic link library (DLL) initialization routine failed -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira From watirjira at gmail.com Tue Aug 2 14:08:18 2011 From: watirjira at gmail.com (Jarmo Pertman (JIRA)) Date: Tue, 2 Aug 2011 13:08:18 -0500 (CDT) Subject: [Wtr-development] [JIRA] Commented: (WTR-484) Could not open library RAutomation's UiaDll.dll': A dynamic link library (DLL) initialization routine failed. In-Reply-To: <10616446.7.1309932937639.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> Message-ID: <789008.25.1312308498811.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> [ http://jira.openqa.org/browse/WTR-484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20256#action_20256 ] Jarmo Pertman commented on WTR-484: ----------------------------------- Agreed that the should be some better solution for non-English Windows'es, but as you just saw then using :id is not possible due to the possible missing Windows Update on Windows XP. It seems to be fine on Vista/Win7 though. It would be great if Stephan would clarify what's the exact update :) > Could not open library RAutomation's UiaDll.dll': A dynamic link library (DLL) initialization routine failed. > ------------------------------------------------------------------------------------------------------------- > > Key: WTR-484 > URL: http://jira.openqa.org/browse/WTR-484 > Project: Watir > Issue Type: Bug > Components: Other > Affects Versions: Soon > Environment: Windows XP > Reporter: Zhimin Zhan > Priority: Major > Fix For: Soon > > > I am runing a set of tests, only first one failed due to > ruby/gems/1.8/gems/rautomation-0.6.1/lib/rautomation/adapter/win_ffi/ms_uia/../../../../../ext/UiaDll/Release/UiaDll.dll': A dynamic link library (DLL) initialization routine failed -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira From notethan at gmail.com Fri Aug 5 17:11:51 2011 From: notethan at gmail.com (Ethan) Date: Fri, 5 Aug 2011 17:11:51 -0400 Subject: [Wtr-development] Vapir 1.9.0 Message-ID: Hey Watir folks, update on Vapir - 1.9.0 is out! With all the mutterings here about JSSH, I figured I'd copy the announcement over here. gem update vapir-firefox vapir-ie - MozRepl support - may JSSH die soon. (JSSH is still supported for Firefox versions < 4, though) - Support for Firefox 4, 5, 6 (beta), and 7 (alpha). Mostly, anyway - not completely, officially, because there are yet a few unit test failures, but it all works. (Firefox 8 alpha is not yet working at all. yes, there is an 8 alpha out already as a nightly) - Support for IE9. There may be some issues with UAC. All the tests pass for me, but not entirely reliably. Let me know what you run into. - Speed! MozRepl gets about 1.5? right off, and other optimizations get another 2?. Or maybe it was the other way around. - some minor bugfixes which should improve stability and reliability. - many internal code improvements To use MozRepl, you should install the extension into whatever Firefox profile you use with Vapir. The extension is available at: https://github.com/downloads/vapir/mozrepl/mozrepl_vapir_2de870.xpi Then update your configuration (this is probably in ~/.vapir_config.yaml) to add the configuration setting: firefox_extension: mozrepl See also Settings which you should set. -Ethan -------------- next part -------------- An HTML attachment was scrubbed... URL: From alister.scott at gmail.com Sun Aug 7 07:51:04 2011 From: alister.scott at gmail.com (Alister Scott) Date: Sun, 7 Aug 2011 21:51:04 +1000 Subject: [Wtr-development] Vapir 1.9.0 In-Reply-To: References: Message-ID: Does Vapir use zero or one based indexing? Does Firefox support work on Linux/Mac? Cheers, Alister Alister Scott Brisbane, Australia Watir Web Master: http://watir.com Blog: http://watirmelon.com LinkedIn: http://www.linkedin.com/in/alisterscott "There are two ways to get enough: One is to continue to accumulate more and more. The other is to desire less." *~ G. K. Chesterton* On Sat, Aug 6, 2011 at 7:11 AM, Ethan wrote: > Hey Watir folks, update on Vapir - 1.9.0 is out! With > all the mutterings here about JSSH, I figured I'd copy the announcement over > here. > > gem update vapir-firefox vapir-ie > > - MozRepl support - may JSSH die > soon. (JSSH is still supported for Firefox versions < 4, though) > - Support for Firefox 4, 5, 6 (beta), and 7 (alpha). Mostly, anyway - not > completely, officially, because there are yet a few unit test failures, but > it all works. (Firefox 8 alpha is not yet working at all. yes, there is an 8 > alpha out already as a nightly) > - Support for IE9. There may be some issues with UAC. All the tests pass > for me, but not entirely reliably. Let me know what you run into. > - Speed! MozRepl gets about 1.5? right off, and other optimizations get > another 2?. Or maybe it was the other way around. > - some minor bugfixes which should improve stability and reliability. > - many internal code improvements > > To use MozRepl, you should install the extension into whatever Firefox > profile you use with Vapir. The extension is available at: > https://github.com/downloads/vapir/mozrepl/mozrepl_vapir_2de870.xpi > Then update your configuration (this > is probably in ~/.vapir_config.yaml) to add the configuration setting: > firefox_extension: mozrepl > > See also Settings which you > should set. > > -Ethan > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From notethan at gmail.com Sun Aug 7 18:57:07 2011 From: notethan at gmail.com (Ethan) Date: Sun, 7 Aug 2011 18:57:07 -0400 Subject: [Wtr-development] Vapir 1.9.0 In-Reply-To: References: Message-ID: 1-based, still, unfortunately. I should get on fixing that. yes, works fine on windows, mac, linux. On Sun, Aug 7, 2011 at 07:51, Alister Scott wrote: > Does Vapir use zero or one based indexing? > Does Firefox support work on Linux/Mac? > > Cheers, > Alister > > > Alister Scott > Brisbane, Australia > Watir Web Master: http://watir.com > Blog: http://watirmelon.com > LinkedIn: http://www.linkedin.com/in/alisterscott > > "There are two ways to get enough: One is to continue to accumulate more > and more. The other is to desire less." *~ G. K. Chesterton* > > > On Sat, Aug 6, 2011 at 7:11 AM, Ethan wrote: > >> Hey Watir folks, update on Vapir - 1.9.0 is out! With >> all the mutterings here about JSSH, I figured I'd copy the announcement over >> here. >> >> gem update vapir-firefox vapir-ie >> >> - MozRepl support - may >> JSSH die soon. (JSSH is still >> supported for Firefox versions < 4, though) >> - Support for Firefox 4, 5, 6 (beta), and 7 (alpha). Mostly, anyway - not >> completely, officially, because there are yet a few unit test failures, but >> it all works. (Firefox 8 alpha is not yet working at all. yes, there is an 8 >> alpha out already as a nightly) >> - Support for IE9. There may be some issues with UAC. All the tests pass >> for me, but not entirely reliably. Let me know what you run into. >> - Speed! MozRepl gets about 1.5? right off, and other optimizations get >> another 2?. Or maybe it was the other way around. >> - some minor bugfixes which should improve stability and reliability. >> - many internal code improvements >> >> To use MozRepl, you should install the extension into whatever Firefox >> profile you use with Vapir. The extension is available at: >> https://github.com/downloads/vapir/mozrepl/mozrepl_vapir_2de870.xpi >> Then update your configuration (this >> is probably in ~/.vapir_config.yaml) to add the configuration setting: >> firefox_extension: mozrepl >> >> See also Settings which >> you should set. >> >> -Ethan >> >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development >> > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From notethan at gmail.com Sun Aug 7 19:42:24 2011 From: notethan at gmail.com (Ethan) Date: Sun, 7 Aug 2011 19:42:24 -0400 Subject: [Wtr-development] Vapir 1.9.0 In-Reply-To: References: Message-ID: all right, got 0-based index support in my dev branch ... needs a lot of testing, but that was easier than I thought. should be in the next release. On Sun, Aug 7, 2011 at 18:57, Ethan wrote: > 1-based, still, unfortunately. I should get on fixing that. > yes, works fine on windows, mac, linux. > > On Sun, Aug 7, 2011 at 07:51, Alister Scott wrote: > >> Does Vapir use zero or one based indexing? >> Does Firefox support work on Linux/Mac? >> >> Cheers, >> Alister >> >> >> Alister Scott >> Brisbane, Australia >> Watir Web Master: http://watir.com >> Blog: http://watirmelon.com >> LinkedIn: http://www.linkedin.com/in/alisterscott >> >> "There are two ways to get enough: One is to continue to accumulate more >> and more. The other is to desire less." *~ G. K. Chesterton* >> >> >> On Sat, Aug 6, 2011 at 7:11 AM, Ethan wrote: >> >>> Hey Watir folks, update on Vapir - 1.9.0 is out! >>> With all the mutterings here about JSSH, I figured I'd copy the announcement >>> over here. >>> >>> gem update vapir-firefox vapir-ie >>> >>> - MozRepl support - may >>> JSSH die soon. (JSSH is still >>> supported for Firefox versions < 4, though) >>> - Support for Firefox 4, 5, 6 (beta), and 7 (alpha). Mostly, anyway - not >>> completely, officially, because there are yet a few unit test failures, but >>> it all works. (Firefox 8 alpha is not yet working at all. yes, there is an 8 >>> alpha out already as a nightly) >>> - Support for IE9. There may be some issues with UAC. All the tests pass >>> for me, but not entirely reliably. Let me know what you run into. >>> - Speed! MozRepl gets about 1.5? right off, and other optimizations get >>> another 2?. Or maybe it was the other way around. >>> - some minor bugfixes which should improve stability and reliability. >>> - many internal code improvements >>> >>> To use MozRepl, you should install the extension into whatever Firefox >>> profile you use with Vapir. The extension is available at: >>> https://github.com/downloads/vapir/mozrepl/mozrepl_vapir_2de870.xpi >>> Then update your configuration (this >>> is probably in ~/.vapir_config.yaml) to add the configuration setting: >>> firefox_extension: mozrepl >>> >>> See also Settings which >>> you should set. >>> >>> -Ethan >>> >>> >>> _______________________________________________ >>> Wtr-development mailing list >>> Wtr-development at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/wtr-development >>> >> >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Wed Aug 10 11:15:05 2011 From: jarmo.p at gmail.com (Jarmo) Date: Wed, 10 Aug 2011 18:15:05 +0300 Subject: [Wtr-development] Watir 2.0 Released Message-ID: Hello! Today is the day when Watir 2.0 is released. Finally we have 0-based indexing as in Watir-WebDriver. Plan is to have better compatibility with Watir-WebDriver with each next release. Let's see how it goes. Here is the full changelog: * RIP FireWatir - there won't be any new releases due to the lack of JSSH extension for Firefox 4+ versions. * all elements are using 0-based indexing instead of old 1-based indexing: - disable it temporarily: require "watir"; Watir.options[:zero_based_indexing] = false * #radio and #checkbox methods doesn't allow 3 parameters anymore for locating with "value" - use browser.radio(:name => "something", :value => "some value") syntax instead for locating with "value" * all element methods accept now multiple-specifiers with hash syntax, for example: - browser.element(:class => "someclass", :name => "somename") * all elements are searchable by :xpath and :css now (note that it's usually slower than searching by other specifiers) * #button, #form and #frame doesn't accept single string as a specifier anymore to search by name: - use browser.frame(:name => "name") or browser.frame(:name, "name") syntax instead * :index => 0 is used as a default specifier if nothing is specified: - browser.div(:id => "id").table.tr is same as browser.div(:id => "id").table(:index => 0).tr(:index => 0) * all collection methods accept now specifiers too: - browser.divs(:class => "someclass").each {|div| puts div.class_name} # => "someclass" * removed FormElement class * added aliases: - tr => row - trs => rows - td => cell - tds => cells - a => link - as => links - img => image - imgs => images Install it with `gem install watir` and let the testing begin! (PS! Don't forget to disable 0-based-indexing temporarily until you're not too busy to fix the currently used indexes in your tests!) Jarmo -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Wed Aug 10 11:20:48 2011 From: jarmo.p at gmail.com (Jarmo) Date: Wed, 10 Aug 2011 18:20:48 +0300 Subject: [Wtr-development] about release Message-ID: I managed to run Watir 2.0 without zero-based-indexing and with zero-based-indexing against my current project's tests at my workplace and didn't notice any bugs so i made finally the release. Hopefully everyone is as pleased as i am about the new features/changes :) I'm already using 0-based indexing on my project at my workplace - i guess that makes me the first one to do that with Watir :) Congratulations to me :P I suspect that there will be some feedback at the start when people don't notice that indexing has become 0-based. Let's try to help them out then. Jarmo -------------- next part -------------- An HTML attachment was scrubbed... URL: From watirjira at gmail.com Wed Aug 10 14:25:09 2011 From: watirjira at gmail.com (Jarmo Pertman (JIRA)) Date: Wed, 10 Aug 2011 13:25:09 -0500 (CDT) Subject: [Wtr-development] [JIRA] Closed: (WTR-481) Not able to open new IE after it is closed. In-Reply-To: <31083542.38.1307636456038.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> Message-ID: <27540151.14.1313000709217.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> [ http://jira.openqa.org/browse/WTR-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jarmo Pertman closed WTR-481. ----------------------------- Resolution: Fixed Fixed in 2.0.1 > Not able to open new IE after it is closed. > ------------------------------------------- > > Key: WTR-481 > URL: http://jira.openqa.org/browse/WTR-481 > Project: Watir > Issue Type: Bug > Components: Unit Tests > Affects Versions: Soon > Environment: Windows XP running IE7 > Reporter: bhavesh > Priority: Critical > Fix For: Soon > > > Hi, > I have to close IE and open new IE again in every testcase. > I written an routine like this : > def setupnew(current_component="") > $ie.close if $ie > sleep(10) > $ie = Watir::IE.new() > sleep(10) > case current_component > when "WEB_ADMIN" > $ie.goto($adminLink) > when "WEB_REPORT" > $ie.goto($reportLink) > when "WEB_SEARCH" > $ie.goto($searchLink) > else > #puts "Setup case does not match" > end > end > This works well in Ruby 1.8 > Recently i upgrade to Ruby 1.9.2 and this routine start failing. > It closes the IE if it is open but then not opening the new IE it > just came out of script throwing error. > Error coming out as : > TestCaseNum: I18N_0001 > Description: Add AD Authentication from Webadmin, for FIGS. > E > Finished in 0.468750 seconds. > 1) Error: > test_0001(TC_I18N): > NoMethodError: unknown property or method: `name' > HRESULT error code:0x800706ba > The RPC server is unavailable. > C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.8.1/lib/watir/ie- > class.rb:319:in > `method_missing' > C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.8.1/lib/watir/ie- > class.rb:319:in > `exists?' > C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.8.1/lib/watir/ie- > class.rb:406:in > `close' > C:/IE_AUTOMATION/kazeon/qa/watir-v1_4-TIP/KazModules/I18N/ > I18N_Regression.rb > :47:in `setupnew' > C:/IE_AUTOMATION/kazeon/qa/watir-v1_4-TIP/KazModules/I18N/ > I18N_Regression.rb > :102:in `test_0001' > got the problem but not the solution. > In watir 1.6.7 which i use previously, code for ie.close is like > this : > #C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.7\lib\watir > # Closes the Browser > def close > return unless exists? > @closing = true > @ie.stop > wait rescue nil > chwnd = @ie.hwnd.to_i > @ie.quit > while Win32API.new("user32","IsWindow", 'L', 'L').Call(chwnd) == > 1 > sleep 0.3 > end > end > In watir 1.8.1 which i use now, code for ie.close is like this : > C:\Ruby192\lib\ruby\gems\1.9.1\gems\watir-1.8.1\lib\watir > # Closes the Browser > def close > return unless exists? > @ie.stop > wait rescue nil > chwnd = @ie.hwnd.to_i > @ie.quit > t = Time.now > while exists? > # just in case to avoid possible endless loop if failing to > close some > # window or tab > break if Time.now - t > 10 > sleep 0.3 > end > end > There is an change in code in 1.8.1. > If i replace the piece of code for ie.close of version 1.6.7 in 1.8.1 > file, the same routine starts working fine. > So what needs to be done now to have this working with 1.8.1 code? > Bhavesh -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira From jarmo.p at gmail.com Wed Aug 10 14:27:21 2011 From: jarmo.p at gmail.com (Jarmo) Date: Wed, 10 Aug 2011 21:27:21 +0300 Subject: [Wtr-development] Watir 2.0.1 Released Message-ID: Hello! This should be the fastest release ever! This release aims to fix critical problems with Ruby 1.9.2: * fixed Watir::IE#close for Ruby 1.9.2 - fixes http://jira.openqa.org/browse/WTR-481 * fixed locating elements on Ruby 1.9.2 `gem install watir` to enjoy it. Jarmo -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at wa-research.ch Thu Aug 11 04:42:59 2011 From: zeljko.filipin at wa-research.ch (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Thu, 11 Aug 2011 10:42:59 +0200 Subject: [Wtr-development] [wtr-general] Watir 2.0 Released In-Reply-To: References: Message-ID: On Wed, Aug 10, 2011 at 5:15 PM, Jarmo wrote: > Today is the day when Watir 2.0 is released. And if you want to link somewhere, there is a blog post too: http://watir.com/2011/08/11/watir-2-0/ Jarmo, thanks for the new release! :) ?eljko -- watir.com - community manager watir.com/book - author watirpodcast.com - host -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreastt at opera.com Tue Aug 16 09:32:55 2011 From: andreastt at opera.com (Andreas Tolf Tolfsen) Date: Tue, 16 Aug 2011 15:32:55 +0200 Subject: [Wtr-development] First Oslo Selenium Meetup this Friday Message-ID: This Friday 19 August Oslo will see its first ever Selenium and Watir meetup. The meetup will be hosted by Opera at our headquarters and is open to anyone with interest in automated web application testing or browser automation! ABOUT SELENIUM Selenium automates browsers. What you do with that power is entirely up to you. Primarily it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well. Selenium has the support of some of the largest browser vendors who have taken steps to make Selenium a native part of their browser. It is also the core technology in countless other browser automation tools, APIs and frameworks. TALKS Jari Bakken will give an introduction to what WebDriver and Watir is all about, and give you good arguments for why using these tools for testing the whole stack is the way to go. Kristian Rosenvold will give his talk ?Test First Development of Web Applications?, a fun live-coding demo he gave at Smidig 2010. SPEAKERS Jari Bakken: As a core developer on both the Watir and Selenium projects, and the founder of related projects such as Celerity and watir-webdriver, Jari has extensive experience in the web test automation space. Since late 2009 his open source efforts have been focused on Selenium 2/WebDriver, for which he wrote and maintains the official Ruby bindings. His watir-webdriver project, an implementation of Watir's API on top of the WebDriver technology, marks an important step forward in consolidating the Watir and Selenium projects on the best browser automation tech available. By day Jari works as a test engineer for Norwegian classified ads site FINN.no, where he develops automation solutions and test infrastructure. By night, he enjoys hacking on Ruby tools and making use of his degree in jazz guitar. Kristian Rosenvold: Agile pragmatic programmer in Java, javascript, C# & Web- technologies, git-nerd. Apache Maven committer, Selenium committer. Works as a consultant for Zenior AS. PRACTICALITIES * Where? Opera HQ, Waldemar Thranesgate 98 (entrance close to Sanner bridge at Alexander Kiellandsplass) * When? Friday 19 August at 15:00 CET * Who? Anyone! The event is free and open to the public. After the talks, we will head to the Opera canteen for socializing and the infamous Friday beer night. (-; From mmattera1986 at gmail.com Wed Aug 17 10:59:11 2011 From: mmattera1986 at gmail.com (Michael Mattera) Date: Wed, 17 Aug 2011 10:59:11 -0400 Subject: [Wtr-development] Questions about Watir and Frames Message-ID: Hi, I'm new to Ruby and I'm curious as to how Watir uses the WIN32OLE to connect to the DOM inside a Frame. I have been able to get the frame ReadyState by ignoring the WIN32OLERuntimeError however I can not access controls inside of that frame. All I can find online is about how to code a Watir test to see frames, but I want to know how it works behind the scenes. Being new to Ruby I only understand so much from the Watir source code, I was hoping someone could give me a good explanation on how to recreate this. Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Wed Aug 17 12:47:59 2011 From: jarmo.p at gmail.com (Jarmo) Date: Wed, 17 Aug 2011 19:47:59 +0300 Subject: [Wtr-development] Questions about Watir and Frames In-Reply-To: References: Message-ID: What is the WIN32OLERuntimeError you're getting? Is it access denied? In that case read "Why do I get an access denied error when trying to access a frame?" in wiki at http://wiki.openqa.org/display/WTR/Frames Maybe that helps. All the relevant source code is visible at https://github.com/bret/watir/blob/master/watir/lib/watir/frame.rb#L9-21 https://github.com/bret/watir/blob/master/watir/lib/watir/container.rb#L117-121 and https://github.com/bret/watir/blob/master/watir/lib/watir/locator.rb#L107-145 Jarmo On Wed, Aug 17, 2011 at 5:59 PM, Michael Mattera wrote: > Hi, > > I'm new to Ruby and I'm curious as to how Watir uses the WIN32OLE to > connect to the DOM inside a Frame. I have been able to get the frame > ReadyState by ignoring the WIN32OLERuntimeError however I can not access > controls inside of that frame. > > All I can find online is about how to code a Watir test to see frames, > but I want to know how it works behind the scenes. Being new to Ruby I only > understand so much from the Watir source code, I was hoping someone could > give me a good explanation on how to recreate this. > > Mike > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmattera1986 at gmail.com Wed Aug 17 14:14:04 2011 From: mmattera1986 at gmail.com (Michael Mattera) Date: Wed, 17 Aug 2011 14:14:04 -0400 Subject: [Wtr-development] Questions about Watir and Frames In-Reply-To: References: Message-ID: I bypass the WIN32OLERuntimeError so I'm about to access the frame's properties and the frame's name etc. However when I try to get the document it just returns me the main browser document, not the frame document. I've tried reading through those files Jarmo but like I said I'm new to ruby and I get a little confused. I'm trying to find out how given a browserObject.Document.frame I can get the browserObject.Document.frame.document so I can access those controls. I'll paste some of my personal source code to see if you guys can maybe give me a simple breakdown of what I'm missing. ["FRAME", "IFRAME"].each do |frame_tag| frames = @ie.Document.getElementsByTagName(frame_tag) frames.each do |frame| frame_document = get_frame_document(frame) control = find_control_for_document(filter_expression, frame_document) if(control != nil) return control end end end this is very similar to your loop that I found to get every frame in a DOM document. def get_frame_document(frame) document = nil begin document = frame.Document rescue WIN32OLERuntimeError => e end return document end this function returns me the frame's document. However when I try to access the DOM of that document I just get the original document's DOM not the Frame's...so I can never see the controls inside of the frame. I'm not sure how you guys wire up the frame object and the container to get around this On Wed, Aug 17, 2011 at 12:47 PM, Jarmo wrote: > What is the WIN32OLERuntimeError you're getting? Is it access denied? In > that case read "Why do I get an access denied error when trying to access a > frame?" in wiki at http://wiki.openqa.org/display/WTR/Frames Maybe that > helps. > > All the relevant source code is visible at > https://github.com/bret/watir/blob/master/watir/lib/watir/frame.rb#L9-21 > https://github.com/bret/watir/blob/master/watir/lib/watir/container.rb#L117-121 > and > https://github.com/bret/watir/blob/master/watir/lib/watir/locator.rb#L107-145 > > Jarmo > > > On Wed, Aug 17, 2011 at 5:59 PM, Michael Mattera wrote: > >> Hi, >> >> I'm new to Ruby and I'm curious as to how Watir uses the WIN32OLE to >> connect to the DOM inside a Frame. I have been able to get the frame >> ReadyState by ignoring the WIN32OLERuntimeError however I can not access >> controls inside of that frame. >> >> All I can find online is about how to code a Watir test to see frames, >> but I want to know how it works behind the scenes. Being new to Ruby I only >> understand so much from the Watir source code, I was hoping someone could >> give me a good explanation on how to recreate this. >> >> Mike >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development >> > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From notethan at gmail.com Wed Aug 17 15:09:09 2011 From: notethan at gmail.com (Ethan) Date: Wed, 17 Aug 2011 15:09:09 -0400 Subject: [Wtr-development] Questions about Watir and Frames In-Reply-To: References: Message-ID: if you have a WIN32OLE representing a or