[wtr-general] Re: Identifying objects when browser window has no toolbar

2009-10-16 Thread Bret Pettichord

These are good suggestions. Years ago i had this same problem, and i was 
able to find a OLE method on the browser object that let me turn on the 
toolbars. Knowing, this i was able to use irb to turn it on.

Bret

Jason Trebilcock wrote:
>
> It seems like a simple solution would be to press Ctrl-N from within 
> the ‘small browser’ to open a full browser.
>
> (Idea from: 
> http://social.msdn.microsoft.com/forums/en-US/iewebdevelopment/thread/fdc9c290-7fce-413c-bdec-d1985b6b4290/
>  
> comment by Rob Adams on 1/17/2008 – gotta give credit where credit is 
> due.)
>
> (I had two other options – copying and pasting the URL into a new 
> window…or using Firefox/Firebug…but the above seems to be the easiest.)
>
> *From:* watir-general@googlegroups.com 
> [mailto:watir-gene...@googlegroups.com] *On Behalf Of *H Kogi
> *Sent:* Friday, October 16, 2009 2:44 PM
> *To:* watir-general@googlegroups.com
> *Subject:* [wtr-general] Identifying objects when browser window has 
> no toolbar
>
> I am hoping someone can point me to the right direction since I was 
> not able to find answers anywhere. My application opens a small 
> browser (almost like a popup) that has no toolbar (screenshot 
> attached). With no toolbar, I cannot use IE develper toolbar (if I 
> can, please let me know.). And the page is javascript. All I can find 
> is via irb using ie.show_all_objects that I provided below. This does 
> not provide me enough information such as items in the pulldown list, 
> etc. I have other similar window that has more objects. How can I 
> identify objects?
>
> ---Objects in page -
> text/css id=
> text/javascript id= src=/sales/javascript/ext/adapter/jquery.js
> text/javascript id= src=/sales/javascript/ext/adapter/ext-jquery-adapter
> .js
> text/javascript id= src=/sales/javascript/ext/ext-base.js
> text/javascript id= src=/sales/javascript/ext/ext-all-debug.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/nam
> espace.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/app
> /App.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/app
> /Framework.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAApplication.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAAddProductContainer.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/uti
> l/DSAProductReader.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/mod
> el/DSAProductHelper.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/mod
> el/DSAProductList.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAProductConfigContainer.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAProductConfigPanel.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSADomainConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSASEOConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSASEONATConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSATOP10Config.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAPopPPCConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAPPCAdAgentConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSADIFMCustomConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSADIFMPremiumConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAOLMBundleConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAProductListForm.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/uti
> l/DSAUIUtil.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ser
> vice/DSAServiceChannel.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAShoppingCartPanel.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAOrderPaymentContainer.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAOrderReviewPanel.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAPaymentInfoPanel.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSACreditCardPanel.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/uti
> l/DSAShoppingCartReader.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAPressReleaseConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSASLVConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAAddOnProductConfig.js
> text/javascript id= src=/sales/javascript/app/co

[wtr-general] Re: Identifying objects when browser window has no toolbar

2009-10-16 Thread Jason Trebilcock
It seems like a simple solution would be to press Ctrl-N from within the
'small browser' to open a full browser.

(Idea from:
http://social.msdn.microsoft.com/forums/en-US/iewebdevelopment/thread/fdc9c2
90-7fce-413c-bdec-d1985b6b4290/ comment by Rob Adams on 1/17/2008 - gotta
give credit where credit is due.)

 

(I had two other options - copying and pasting the URL into a new window.or
using Firefox/Firebug.but the above seems to be the easiest.)

 

From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com]
On Behalf Of H Kogi
Sent: Friday, October 16, 2009 2:44 PM
To: watir-general@googlegroups.com
Subject: [wtr-general] Identifying objects when browser window has no
toolbar

 

I am hoping someone can point me to the right direction since I was not able
to find answers anywhere.  My application opens a small browser (almost like
a popup) that has no toolbar (screenshot attached).  With no toolbar, I
cannot use IE develper toolbar (if I can, please let me know.).  And the
page is javascript.  All I can find is via irb using ie.show_all_objects
that I provided below.  This does not provide me enough information such as
items in the pulldown list, etc.  I have other similar window that has more
objects.  How can I identify objects?
 
---Objects in page -
text/css  id=
text/javascript   id=
src=/sales/javascript/ext/adapter/jquery.js
text/javascript   id=
src=/sales/javascript/ext/adapter/ext-jquery-adapter
.js
text/javascript   id= src=/sales/javascript/ext/ext-base.js
text/javascript   id=
src=/sales/javascript/ext/ext-all-debug.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/nam
espace.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/app
/App.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/app
/Framework.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAApplication.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAAddProductContainer.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/uti
l/DSAProductReader.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/mod
el/DSAProductHelper.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/mod
el/DSAProductList.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAProductConfigContainer.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAProductConfigPanel.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSADomainConfig.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSASEOConfig.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSASEONATConfig.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSATOP10Config.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAPopPPCConfig.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAPPCAdAgentConfig.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSADIFMCustomConfig.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSADIFMPremiumConfig.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAOLMBundleConfig.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAProductListForm.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/uti
l/DSAUIUtil.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ser
vice/DSAServiceChannel.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAShoppingCartPanel.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAOrderPaymentContainer.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAOrderReviewPanel.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAPaymentInfoPanel.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSACreditCardPanel.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/uti
l/DSAShoppingCartReader.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAPressReleaseConfig.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSASLVConfig.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAAddOnProductConfig.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAAddOnMinutesConfig.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAAddOnMultipleQuantityConfig.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSAEcommDesignConfig.js
text/javascript   id=
src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
DSASEVConfig.

[wtr-general] Re: Identifying objects when browser window has no toolbar

2009-10-16 Thread Željko Filipin
On Fri, Oct 16, 2009 at 9:43 PM, H Kogi  wrote:
> My application opens a small browser (almost like a popup) that has no
toolbar (screenshot attached).  With no toolbar, I cannot use IE develper
toolbar (if I can, please let me know.). How can I identify objects?

What do you want to do?

You can use collections to see only elements that you are interested in:

http://wiki.openqa.org/display/WTR/Collections+of+HTML+Elements

browser.select_lists.each { |select_list| select_list.flash }

Since the page is simple, you can use index to locate elements:

browser.select_list(:index, 1).flash

Try this: open any page in IE, activate IE dev toolbar, close IE with dev
toolbar still open. When you open IE the next time dev toolbar should be
activated.

Željko
--
http://watirpodcast.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: had to issue 3 'gem install watir' commands

2009-10-16 Thread Bret Pettichord

Chris,

Thanks for the report. I think one source of trouble is that you are 
using an older version of Rubygems. The newer version will automatically 
install dependencies without asking, and i think it might also handle 
some of your other troubles better as well.

What version of rubygems do you have? ("gem --version") -- I have 1.3.4. 
You can update to the latest by doing "gem update --system" although i 
think this can take some time, and there may be issues updating past 
1.2.0.(details: http://rubyforge.org/forum/forum.php?forum_id=28071)

My guess is that this is happening a lot to people. Is there something 
we might do to make this work better? Add a dependency on a new version 
of rubygems? Appreciate all your thoughts.

Bret

Chris McMahon wrote:
>
> hi Watir people, long time no email.  
>
> I want to use Watir for a little project. I was installing it on a 
> Vista desktop.  Because it took 3 tries to get everything, Bret 
> suggested I mention that here.  Here is the full transcript of the 
> installation, which happened to still be up in my shell: 
>
>
> C:\Users\ChrisMc>irb
> irb(main):001:0> exit
>
> C:\Users\ChrisMc>gem install watir
> Bulk updating Gem source index for: http://gems.rubyforge.org
> Install required dependency win32-process? [Yn]  Y
> Install required dependency windows-pr? [Yn]  Y
> Install required dependency windows-api? [Yn]  Y
> Install required dependency win32-api? [Yn]  Y
> Select which gem to install for your platform (i386-mswin32)
>  1. win32-api 1.4.5 (ruby)
>  2. win32-api 1.4.5 (x86-mswin32-60)
>  3. win32-api 1.4.4 (ruby)
>  4. win32-api 1.4.4 (x86-mswin32-60)
>  5. Skip this gem
>  6. Cancel installation
> > 2
> Install required dependency win32-api? [Yn]  Y
> Select which gem to install for your platform (i386-mswin32)
>  1. win32-api 1.4.5 (ruby)
>  2. win32-api 1.4.5 (x86-mswin32-60)
>  3. Skip this gem
>  4. Cancel installation
> > 1
> Install required dependency test-unit? [Yn]
> Install required dependency hoe? [Yn]  Y
> Install required dependency rubyforge? [Yn]  Y
> Install required dependency json_pure? [Yn]  Y
> Install required dependency rake? [Yn]  Y
> Building native extensions.  This could take a while...
> ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
> ERROR: Failed to build gem native extension.
>
> ruby extconf.rb install watir
> checking for strncpy_s()... no
> creating Makefile
>
> nmake
> 'nmake' is not recognized as an internal or external command,
> operable program or batch file.
>
>
> Gem files will remain installed in 
> c:/ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.
> 5 for inspection.
> Results logged to 
> c:/ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.5/ext/gem_make.ou
> t
>
> C:\Users\ChrisMc>gem install watir
> Install required dependency win32-process? [Yn]  Y
> Install required dependency windows-pr? [Yn]  Y
> Install required dependency activesupport? [Yn]  Y
> Install required dependency commonwatir? [Yn]  Y
> Install required dependency user-choices? [Yn]  Y
> Install required dependency xml-simple? [Yn]  Y
> Install required dependency s4t-utils? [Yn]  Y
> Install required dependency builder? [Yn]  Y
> Install required dependency firewatir? [Yn]  Y
> Successfully installed watir-1.6.2
> Successfully installed win32-process-0.6.1
> Successfully installed windows-pr-1.0.8
> Successfully installed activesupport-2.3.4
> Successfully installed commonwatir-1.6.2
> Successfully installed user-choices-1.1.6
> Successfully installed xml-simple-1.0.12
> Successfully installed s4t-utils-1.0.4
> Successfully installed builder-2.1.2
> Successfully installed firewatir-1.6.2
> Installing ri documentation for watir-1.6.2...
> Installing ri documentation for win32-process-0.6.1...
> Installing ri documentation for windows-pr-1.0.8...
> Installing ri documentation for activesupport-2.3.4...
> Installing ri documentation for commonwatir-1.6.2...
> Installing ri documentation for user-choices-1.1.6...
> Installing ri documentation for s4t-utils-1.0.4...
> Installing ri documentation for builder-2.1.2...
> While generating documentation for builder-2.1.2
> ... MESSAGE:   Unhandled special: Special: type=17, text=""
> ... RDOC args: --ri --op 
> c:/ruby/lib/ruby/gems/1.8/doc/builder-2.1.2/ri --title
> Builder -- Easy XML Building --main README --line-numbers --quiet lib 
> CHANGES Ra
> kefile README doc/releases/builder-1.2.4.rdoc 
> doc/releases/builder-2.0.0.rdoc do
> c/releases/builder-2.1.1.rdoc
> (continuing with the rest of the installation)
> Installing ri documentation for firewatir-1.6.2...
> Installing RDoc documentation for watir-1.6.2...
> Installing RDoc documentation for win32-process-0.6.1...
> Installing RDoc documentation for windows-pr-1.0.8...
> Installing RDoc documentation for activesupport-2.3.4...
> Installing RDoc documentation for commonwatir-1.6.2...
> Installing RDoc documentation for user-choices-1.1.6...
> Installing RDoc documentation for s4t-utils-1.0.4...
> Installing RDoc documen

[wtr-general] had to issue 3 'gem install watir' commands

2009-10-16 Thread Chris McMahon
hi Watir people, long time no email.

I want to use Watir for a little project. I was installing it on a Vista
desktop.  Because it took 3 tries to get everything, Bret suggested I
mention that here.  Here is the full transcript of the installation, which
happened to still be up in my shell:


C:\Users\ChrisMc>irb
irb(main):001:0> exit

C:\Users\ChrisMc>gem install watir
Bulk updating Gem source index for: http://gems.rubyforge.org
Install required dependency win32-process? [Yn]  Y
Install required dependency windows-pr? [Yn]  Y
Install required dependency windows-api? [Yn]  Y
Install required dependency win32-api? [Yn]  Y
Select which gem to install for your platform (i386-mswin32)
 1. win32-api 1.4.5 (ruby)
 2. win32-api 1.4.5 (x86-mswin32-60)
 3. win32-api 1.4.4 (ruby)
 4. win32-api 1.4.4 (x86-mswin32-60)
 5. Skip this gem
 6. Cancel installation
> 2
Install required dependency win32-api? [Yn]  Y
Select which gem to install for your platform (i386-mswin32)
 1. win32-api 1.4.5 (ruby)
 2. win32-api 1.4.5 (x86-mswin32-60)
 3. Skip this gem
 4. Cancel installation
> 1
Install required dependency test-unit? [Yn]
Install required dependency hoe? [Yn]  Y
Install required dependency rubyforge? [Yn]  Y
Install required dependency json_pure? [Yn]  Y
Install required dependency rake? [Yn]  Y
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install watir
checking for strncpy_s()... no
creating Makefile

nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.


Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.
5 for inspection.
Results logged to
c:/ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.5/ext/gem_make.ou
t

C:\Users\ChrisMc>gem install watir
Install required dependency win32-process? [Yn]  Y
Install required dependency windows-pr? [Yn]  Y
Install required dependency activesupport? [Yn]  Y
Install required dependency commonwatir? [Yn]  Y
Install required dependency user-choices? [Yn]  Y
Install required dependency xml-simple? [Yn]  Y
Install required dependency s4t-utils? [Yn]  Y
Install required dependency builder? [Yn]  Y
Install required dependency firewatir? [Yn]  Y
Successfully installed watir-1.6.2
Successfully installed win32-process-0.6.1
Successfully installed windows-pr-1.0.8
Successfully installed activesupport-2.3.4
Successfully installed commonwatir-1.6.2
Successfully installed user-choices-1.1.6
Successfully installed xml-simple-1.0.12
Successfully installed s4t-utils-1.0.4
Successfully installed builder-2.1.2
Successfully installed firewatir-1.6.2
Installing ri documentation for watir-1.6.2...
Installing ri documentation for win32-process-0.6.1...
Installing ri documentation for windows-pr-1.0.8...
Installing ri documentation for activesupport-2.3.4...
Installing ri documentation for commonwatir-1.6.2...
Installing ri documentation for user-choices-1.1.6...
Installing ri documentation for s4t-utils-1.0.4...
Installing ri documentation for builder-2.1.2...
While generating documentation for builder-2.1.2
... MESSAGE:   Unhandled special: Special: type=17, text=""
... RDOC args: --ri --op c:/ruby/lib/ruby/gems/1.8/doc/builder-2.1.2/ri
--title
Builder -- Easy XML Building --main README --line-numbers --quiet lib
CHANGES Ra
kefile README doc/releases/builder-1.2.4.rdoc
doc/releases/builder-2.0.0.rdoc do
c/releases/builder-2.1.1.rdoc
(continuing with the rest of the installation)
Installing ri documentation for firewatir-1.6.2...
Installing RDoc documentation for watir-1.6.2...
Installing RDoc documentation for win32-process-0.6.1...
Installing RDoc documentation for windows-pr-1.0.8...
Installing RDoc documentation for activesupport-2.3.4...
Installing RDoc documentation for commonwatir-1.6.2...
Installing RDoc documentation for user-choices-1.1.6...
Installing RDoc documentation for s4t-utils-1.0.4...
Installing RDoc documentation for builder-2.1.2...
Installing RDoc documentation for firewatir-1.6.2...

C:\Users\ChrisMc>gem install watir
Successfully installed watir-1.6.2
Installing ri documentation for watir-1.6.2...
Installing RDoc documentation for watir-1.6.2...

C:\Users\ChrisMc>gem install watir
Successfully installed watir-1.6.2
Installing ri documentation for watir-1.6.2...
Installing RDoc documentation for watir-1.6.2...

C:\Users\ChrisMc>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Hudson, was Re: Dwatir - Can this help running watir tests on remote machines?

2009-10-16 Thread Bret Pettichord

Jarmo Pertman wrote:
> I've also had some thoughts about running tests in parallel and I'm
> thinking currently that it should be relatively easy to implement your
> own system with DRb (Distributed Ruby - 
> http://www.ruby-doc.org/stdlib/libdoc/drb/rdoc/index.html).
> Maybe I don't see some issues which might come with it, but currently
> it doesn't seem so bad idea at all.
>   
Sounds like a good idea to me. Let us know how it works out.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Open and close Browser repeatedly leads to ie hanging

2009-10-16 Thread Bret Pettichord

Bill,

This is a good analysis of the problem.

The method IE.new_process was specifically designed to avoid these problems.

Personally, however, I wouldn't start and stop a browser for each test. 
This entails a lot of overhead, and really slows things down.

Bret

Bill Agee wrote:
> I faced a similar problem a long while back - intermittently, when 
> starting a new browser immediately after closing another, I would get 
> an OLE exception.
>
> I never found the root cause, but if I remember correctly, I noticed 
> that iexplore.exe continued to run for a short time after I called 
> IE#close.  So I tried doing the following, which solved the problem:
>
> - Start the browser, let its tests run, close the browser
>
> - Begin a loop that waits for iexplore.exe to exit
>
> - Don't start the next browser instance until iexplore.exe is gone
>
> This may not work for you if you need to have more than one browser 
> running.  But for me it was fine since I can only run one window at a 
> time. :)
>
> Thanks
> Bill
>
> On Fri, Oct 16, 2009 at 3:23 AM, pallavi shashidhar 
> mailto:pals.sha...@gmail.com>> wrote:
>
> Hi There,
> We have a couple of watir scripts that are run as regression suite
> on a CI server (cruise control).
> Have installed Ruby 1.8.6.26 and watir 1.6 with IE7.
> System specification ; windows server 2003 edition, 500gb, 4gb RAM
>
> All the scripts are made independent and hence we have a
> start_browser and browser.close at setup and teardown.
> After a while, i find that ie keeps hanging and am not able to
> proceed unless i close the browser manually and yet i see that the
> ie process is not being killed.
> This leads us to lot of RPC server unavailable errors:
>
> When the suite is run again, i get a lot of these errors:
>
> |failed to create WIN32OLE object from `InternetExplorer.Application'
> HRESULT error code:0x80004005
> Unspecified error (WIN32OLERuntimeError)
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
> `initialize'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
> `new'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
> `create_browser_window'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:91:in
> `_new_window_init'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:81:in
> `new_window'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:105:in
> `start_window'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:99:in
> `start'
> 
> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:71:in
> `start'|
>
> Have tried one of the 3 solutions that Bret has mentioned i.e,
> Create an additional IE. As long as this lives, the IE server will
> continue to live and you can close and create IE windows without
> worry.
>
> Inspite of having done this, i get the errors. We cannot
> completely avoid opening and closing of browsers as more and more
> scripts are added to the regression suite.
> What could be the reason for ie to hang and how can that be avoided?
>
> Regards,
> Pallavi
>
>
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Open and close Browser repeatedly leads to ie hanging

2009-10-16 Thread Bill Agee
I faced a similar problem a long while back - intermittently, when starting
a new browser immediately after closing another, I would get an OLE
exception.

I never found the root cause, but if I remember correctly, I noticed that
iexplore.exe continued to run for a short time after I called IE#close.  So
I tried doing the following, which solved the problem:

- Start the browser, let its tests run, close the browser

- Begin a loop that waits for iexplore.exe to exit

- Don't start the next browser instance until iexplore.exe is gone

This may not work for you if you need to have more than one browser
running.  But for me it was fine since I can only run one window at a time.
:)

Thanks
Bill

On Fri, Oct 16, 2009 at 3:23 AM, pallavi shashidhar
wrote:

> Hi There,
> We have a couple of watir scripts that are run as regression suite on a CI
> server (cruise control).
> Have installed Ruby 1.8.6.26 and watir 1.6 with IE7.
> System specification ; windows server 2003 edition, 500gb, 4gb RAM
>
> All the scripts are made independent and hence we have a start_browser and
> browser.close at setup and teardown.
> After a while, i find that ie keeps hanging and am not able to proceed
> unless i close the browser manually and yet i see that the ie process is not
> being killed.
> This leads us to lot of RPC server unavailable errors:
>
> When the suite is run again, i get a lot of these errors:
>
> failed to create WIN32OLE object from `InternetExplorer.Application'
> HRESULT error code:0x80004005
> Unspecified error (WIN32OLERuntimeError)
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
> `initialize'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
> `new'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
> `create_browser_window'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:91:in
> `_new_window_init'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:81:in
> `new_window'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:105:in
> `start_window'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:99:in
> `start'
> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:71:in
> `start'
>
> Have tried one of the 3 solutions that Bret has mentioned i.e,
> Create an additional IE. As long as this lives, the IE server will continue
> to live and you can close and create IE windows without worry.
>
> Inspite of having done this, i get the errors. We cannot completely avoid
> opening and closing of browsers as more and more scripts are added to the
> regression suite.
> What could be the reason for ie to hang and how can that be avoided?
>
> Regards,
> Pallavi
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Does Watir have sontainer for header tags(H1, H2, etc..)?

2009-10-16 Thread Željko Filipin
On Fri, Oct 16, 2009 at 3:45 PM, Yuriy  wrote:
> Oops, I made a mistake in the post's subject. Could you fix it please

We will have to live with it, posts can not be edited in Google Groups. :)

Željko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Does Watir have sontainer for header tags(H1, H2, etc..)?

2009-10-16 Thread Yuriy

Oops, I made a mistake in the post's subject. Could you fix it please,
cause it seems I don't have rights to do this?

On Oct 16, 3:59 pm, Željko Filipin 
wrote:
> On Fri, Oct 16, 2009 at 2:56 PM, Yuriy  wrote:
> > I didn't find any mention about header tags like H1-5.
>
> I did not find containers for header tags too:
>
> http://wiki.openqa.org/display/WTR/Collections+of+HTML+Elements
>
> Željko
> --http://watirpodcast.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: reg firewatir on mac

2009-10-16 Thread Željko Filipin
On Fri, Oct 16, 2009 at 3:04 PM, ravi pulipaka  wrote:
> I found some documentaion in wiki but i tried to do the same but still the
problem exists i have firefox 3.5 version and jssh 0.9 plugin , still the
 problem unable to connect 127.0.0.1 ...

Maybe I was not clear enough. If jssh does not work, it probably has to be
compiled for Mac OS X 10.6. I know I saw instructions somewhere on this list
or on the wiki.

Željko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: reg firewatir on mac

2009-10-16 Thread ravi pulipaka
Thanx for the reply I found some documentaion in wiki but i tried to do the
same but still the problem exists i have firefox 3.5 version and jssh 0.9
plugin , still the  problem unable to connect 127.0.0.1 ...any suggestions
to solve the problem

thanx in advance

ravi



On Thu, Oct 15, 2009 at 4:16 PM, Željko Filipin <
zeljko.fili...@wa-research.ch> wrote:

> On Thu, Oct 15, 2009 at 6:34 PM, ravi  wrote:
> > I am trying to install firewatir on mac with snowleopard os
> > i am getting error of jssh
>
> I think we do not have jssh for new Mac OS. There are instructions how to
> build it here on the list somewhere or on the wiki. If you can not find it,
> let me know.
>
> Željko
> --
> http://watirpodcast.com/
>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Does Watir have sontainer for header tags(H1, H2, etc..)?

2009-10-16 Thread Željko Filipin
On Fri, Oct 16, 2009 at 2:56 PM, Yuriy  wrote:
> I didn't find any mention about header tags like H1-5.

I did not find containers for header tags too:

http://wiki.openqa.org/display/WTR/Collections+of+HTML+Elements

Željko
--
http://watirpodcast.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Does Watir have sontainer for header tags(H1, H2, etc..)?

2009-10-16 Thread Yuriy

Watir has containers for a lot of elements: lis, buttons, divs. I
didn't find any mention about header tags like H1-5. Whoever has met
this before?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Hudson, was Re: Dwatir - Can this help running watir tests on remote machines?

2009-10-16 Thread Jarmo Pertman

I've also had some thoughts about running tests in parallel and I'm
thinking currently that it should be relatively easy to implement your
own system with DRb (Distributed Ruby - 
http://www.ruby-doc.org/stdlib/libdoc/drb/rdoc/index.html).
Maybe I don't see some issues which might come with it, but currently
it doesn't seem so bad idea at all.

Jarmo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Open and close Browser repeatedly leads to ie hanging

2009-10-16 Thread Raveendran P
Hi Pallavi,

It seems you are continuously opening and closing ie windows.

1. Try this manually -->You will face the same issue because of low - System
Capacity / Internet connection

No other reason for this issue.

Am i rit ? if wrong, I am  also expecting the answer from others

Thanks,
P.Raveendran
http://raveendran.wordpress.ocm

On Fri, Oct 16, 2009 at 3:53 PM, pallavi shashidhar
wrote:

> Hi There,
> We have a couple of watir scripts that are run as regression suite on a CI
> server (cruise control).
> Have installed Ruby 1.8.6.26 and watir 1.6 with IE7.
> System specification ; windows server 2003 edition, 500gb, 4gb RAM
>
> All the scripts are made independent and hence we have a start_browser and
> browser.close at setup and teardown.
> After a while, i find that ie keeps hanging and am not able to proceed
> unless i close the browser manually and yet i see that the ie process is not
> being killed.
> This leads us to lot of RPC server unavailable errors:
>
> When the suite is run again, i get a lot of these errors:
>
> failed to create WIN32OLE object from `InternetExplorer.Application'
> HRESULT error code:0x80004005
> Unspecified error (WIN32OLERuntimeError)
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
> `initialize'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
> `new'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
> `create_browser_window'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:91:in
> `_new_window_init'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:81:in
> `new_window'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:105:in
> `start_window'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:99:in
> `start'
> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:71:in
> `start'
>
> Have tried one of the 3 solutions that Bret has mentioned i.e,
> Create an additional IE. As long as this lives, the IE server will continue
> to live and you can close and create IE windows without worry.
>
> Inspite of having done this, i get the errors. We cannot completely avoid
> opening and closing of browsers as more and more scripts are added to the
> regression suite.
> What could be the reason for ie to hang and how can that be avoided?
>
> Regards,
> Pallavi
>
> >
>


-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Open and close Browser repeatedly leads to ie hanging

2009-10-16 Thread pallavi shashidhar
Hi There,
We have a couple of watir scripts that are run as regression suite on a CI
server (cruise control).
Have installed Ruby 1.8.6.26 and watir 1.6 with IE7.
System specification ; windows server 2003 edition, 500gb, 4gb RAM

All the scripts are made independent and hence we have a start_browser and
browser.close at setup and teardown.
After a while, i find that ie keeps hanging and am not able to proceed
unless i close the browser manually and yet i see that the ie process is not
being killed.
This leads us to lot of RPC server unavailable errors:

When the suite is run again, i get a lot of these errors:

failed to create WIN32OLE object from `InternetExplorer.Application'
HRESULT error code:0x80004005
Unspecified error (WIN32OLERuntimeError)
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
`initialize'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
`new'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
`create_browser_window'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:91:in
`_new_window_init'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:81:in
`new_window'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:105:in
`start_window'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:99:in
`start'
c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:71:in
`start'

Have tried one of the 3 solutions that Bret has mentioned i.e,
Create an additional IE. As long as this lives, the IE server will continue
to live and you can close and create IE windows without worry.

Inspite of having done this, i get the errors. We cannot completely avoid
opening and closing of browsers as more and more scripts are added to the
regression suite.
What could be the reason for ie to hang and how can that be avoided?

Regards,
Pallavi

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Capturing Java Script Errors

2009-10-16 Thread Jarmo Pertman

We are using RSpec to run our tests (http://rspec.info) and I've
created my own HTMLFormatter class which extends their
Spec::Runner::Formatter::HtmlFormatte and then using
#extra_failure_content method, which will be invoked if some test
fails by RSpec itself. So, if test fails, I'm also checking if page
had any JS errors and then make a screenshot of it. Otherwise (if test
passes) JS errors will be ignored.

Jarmo

On Oct 16, 5:30 am, dt_nz  wrote:
> Hi
> To capture a java script error, how do you call theses methods.  Do
> you have a separate thread that is always running
> save_javascript_error in a loop, or is save_javascript_error called
> after each action on a page?
>
> We have an existing framework that runs a lot of tests in our
> regression runs and am ideally looking for a solution to incorporate
> it into our existing structure.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to verify the "Success!" or "Failed" is display?

2009-10-16 Thread Qiannan Zhang
Thank you for your help, i will read the page which you send to me.



On Fri, Oct 16, 2009 at 4:18 PM, Željko Filipin <
zeljko.fili...@wa-research.ch> wrote:

> On Fri, Oct 16, 2009 at 10:06 AM, Capricorn  wrote:
> > Hi,everyone, i want to verify the "Success!" or "Failed!" text is
> > displayed after i click the "success" or "failed" button?
>
> I would recommend that you read the Watir tutorial:
>
> http://wiki.openqa.org/display/WTR/Tutorial
>
> Pay special attention when you get here:
>
> http://wiki.openqa.org/display/WTR/CSS
>
> Željko
> --
> http://watirpodcast.com/
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to verify the "Success!" or "Failed" is display?

2009-10-16 Thread Željko Filipin
On Fri, Oct 16, 2009 at 10:06 AM, Capricorn  wrote:
> Hi,everyone, i want to verify the "Success!" or "Failed!" text is
> displayed after i click the "success" or "failed" button?

I would recommend that you read the Watir tutorial:

http://wiki.openqa.org/display/WTR/Tutorial

Pay special attention when you get here:

http://wiki.openqa.org/display/WTR/CSS

Željko
--
http://watirpodcast.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] How to verify the "Success!" or "Failed" is display?

2009-10-16 Thread Capricorn

Hi,everyone, i want to verify the "Success!" or "Failed!" text is
displayed after i click the "success" or "failed" button?
can anyone tell me how to write the testing script in watir ?
The flowing is the webpage, 
http://members.shaw.ca/paul_rogers/watir_tests/cssTest.html
Thank you for your help

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---