Re: [wtr-general] Issue transitioning from 2.0.4 to 3.1.0

2012-08-22 Thread Željko Filipin
On Tue, Aug 21, 2012 at 9:53 PM, enroxorz enrique.j.ma...@gmail.com wrote:
 Is there anything else I can give you that might help?

Link to the page, if it is public. Or link to the page that has the same
problem.

Željko
--
filipin.eu

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Issue transitioning from 2.0.4 to 3.1.0

2012-08-22 Thread enroxorz
Unfortunately the site hasnt been released to the public yet and is only 
internal. I am building a suite of regression scripts at this time for it 
(coinciding with the upgrade to 1.9.3 ruby and 3.1.0 WATIR).

Is there anything else I can give you? 

On Wednesday, August 22, 2012 3:08:07 AM UTC-4, Željko Filipin wrote:

 On Tue, Aug 21, 2012 at 9:53 PM, enroxorz enrique...@gmail.comjavascript: 
 wrote:
  Is there anything else I can give you that might help?

 Link to the page, if it is public. Or link to the page that has the same 
 problem.

 Željko
 --
 filipin.eu 
  

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Issue transitioning from 2.0.4 to 3.1.0

2012-08-22 Thread Željko Filipin
On Wed, Aug 22, 2012 at 2:32 PM, enroxorz enrique.j.ma...@gmail.com wrote:
 Unfortunately the site hasnt been released to the public yet and is only
internal.

Link to the page that has the same problem? Can you create a page somewhere
with the same problem?

Željko

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Watir-Classic 3.1.0 Released!

2012-08-22 Thread Željko Filipin
On Mon, Aug 20, 2012 at 1:31 PM, Jarmo jarm...@gmail.com wrote:
 I'm happy to announce that another version of Watir-Classic has just been
released - 3.1.0.

I have created a blog post:

http://watir.com/2012/08/22/watir-classic-3-1-0-released/

And linked it on a few social networks, so feel free to share. :)

https://twitter.com/watir/status/238253577544548352
https://www.facebook.com/watirproject/posts/371187636287227
https://plus.google.com/100602917593825281282/posts/RDPNtEc3Tab
http://www.linkedin.com/groups/WatirClassic-310-Released-88535.S.150609847

Željko
--
filipin.eu

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Issue transitioning from 2.0.4 to 3.1.0

2012-08-22 Thread enroxorz
The site is written in ASP.NET, so it's a bit out of my knowledge to be 
honest BUT I did find a work around that somehow doesnt blow up

@browser.select_list(:id = 
ctl00_cphWizard_Content_QuestionField0_QuestionDropDownList).when_present(60).select(/#{value}/)
 
rescue nil

The value is still set AND it doesnt blow up. I am sorry I couldnt get an 
exact error in case it needs to be patched, but at least there is a work 
around for anyone who needs it.

Thanks guys for all the help!

On Wednesday, August 22, 2012 3:08:07 AM UTC-4, Željko Filipin wrote:

 On Tue, Aug 21, 2012 at 9:53 PM, enroxorz enrique...@gmail.comjavascript: 
 wrote:
  Is there anything else I can give you that might help?

 Link to the page, if it is public. Or link to the page that has the same 
 problem.

 Željko
 --
 filipin.eu 
  

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Watir on Win7 x64 IE 9 - problems going to Yahoo

2012-08-22 Thread Jarmo Pertman
For some reason you're getting back a Fixnum with value of 4 from 
document.readyState call although it should be string. I'm using Ruby 1.9.3 
(you're on 1.9.2, maybe that makes that difference) and can get the correct 
readystate:
(rdb:1) doc.readyState
complete

complete means 4. Don't have any ideas why you're getting fixnum there.

Jarmo Pertman
-
IT does really matter - http://itreallymatters.net


On Wednesday, August 22, 2012 1:48:53 AM UTC+3, Chad Larkin wrote:

 I'm running into an interesting issue setting up a Watir env on Win7 x64 
 with IE9.  When using the goto statement in IRB to goto yahoo.com I am 
 getting an undefined method error.

 the steps in IRB are:
 require 'rubygems'
 require 'watir'
 $b=Watir::Browser.new
 $b.goto('http://www.yahoo.com')

 the error returned is:
 NoMethodError: undefined method `to_sym' for 4:Fixnum
 from 
 F:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.1.0/lib/watir-c
 lassic/ie-class.rb:542:in `block in wait'
 from F:/Ruby192/lib/ruby/1.9.1/timeout.rb:58:in `timeout'
 from 
 F:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.1.0/lib/watir-c
 lassic/ie-class.rb:520:in `wait'
 from 
 F:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.1.0/lib/watir-c
 lassic/ie-class.rb:365:in `goto'
 from (irb):4
 from F:/Ruby192/bin/irb:12:in `main'

 Any ideas?

 Thanks


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Issue transitioning from 2.0.4 to 3.1.0

2012-08-22 Thread enroxorz
Hey Jarmo, 

I ran the line of code you asked me to and it returned 1.

There are only two options in the drop down, YES and NO. I found that after 
I slapped rescue nil at the end, i was able to get passed that step. Not 
optimal, but it will suffice for now. I also found a couple of places where 
this happens, and they all have to deal with ASP.NET postbacks.

I am able to continue with the migration for now. I have run into another 
issue regarding the new Alert API. When I run old execute_script I get the 
following error:

Then /^I kill the popups$/ do
  @browser.execute_script window.confirm = function() { return true; }
  @browser.execute_script window.alert = function() { return true; }
  @browser.execute_script window.prompt = function() { return true; }
end

# features/step_definition/definition.rb:30
(in OLE method `execScript': )
OLE error code:80020101 in Unknown
  Could not complete the operation due to error 80020101.
HRESULT error code:0x80020009
  Exception occurred. (WIN32OLERuntimeError)
./features/step_definition/definition.rb:31:in `/^I kill the popups$/'
features\templates\aih-df1.feature:12:in `Then I kill the popups'

--Enrique

On Wednesday, August 22, 2012 10:20:38 AM UTC-4, Jarmo Pertman wrote:

 Is it possible that your select(/#{value}/) matches more than one option 
 element?

 The code works currently like this:
 1. finds the select element
 2. checks if it is disabled - it is not disabled in your case seeing from 
 the stacktrace
 3. finds all option elements, which match the value
 4. one-by-one checks if option is not disabled and selects it

 It might be, that you will find more than one option elements and when 
 first gets selected then others are disabled (even for some very short 
 period) and then it blows up. Could it be the case?

 Check if more than one option is found like this:

 puts @browser.select_list(:id = 
 ctl00_cphWizard_Content_QuestionField0_QuestionDropDownList).options(:value 
 = /#{value}/).size


 Jarmo Pertman
 -
 IT does really matter - http://itreallymatters.net


 On Wednesday, August 22, 2012 3:46:10 PM UTC+3, enroxorz wrote:

 The site is written in ASP.NET, so it's a bit out of my knowledge to be 
 honest BUT I did find a work around that somehow doesnt blow up

 @browser.select_list(:id = 
 ctl00_cphWizard_Content_QuestionField0_QuestionDropDownList).when_present(60).select(/#{value}/)
  
 rescue nil

 The value is still set AND it doesnt blow up. I am sorry I couldnt get an 
 exact error in case it needs to be patched, but at least there is a work 
 around for anyone who needs it.

 Thanks guys for all the help!

 On Wednesday, August 22, 2012 3:08:07 AM UTC-4, Željko Filipin wrote:

 On Tue, Aug 21, 2012 at 9:53 PM, enroxorz enrique...@gmail.com wrote:
  Is there anything else I can give you that might help?

 Link to the page, if it is public. Or link to the page that has the same 
 problem.

 Željko
 --
 filipin.eu 
  


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Watir on Win7 x64 IE 9 - problems going to Yahoo

2012-08-22 Thread Chad Larkin
Same error is returned in Ruby 1.9.3.

The error does not present itself for:
$b.goto(http://www.google.com;)
$b.goto(http://www.aol.com;)
$b.goto(http://www.msn.com;)
$b.goto(http://www.twitter.com;)

But is produced with:
$b.goto('http://www.yahoo.com')
$b.goto(http://www.facebook.com;)

This is an interesting issue when trying to run Oauth test scripts for 
yahoo and facebook in this environment.

On Wednesday, August 22, 2012 7:27:40 AM UTC-7, Jarmo Pertman wrote:

 For some reason you're getting back a Fixnum with value of 4 from 
 document.readyState call although it should be string. I'm using Ruby 1.9.3 
 (you're on 1.9.2, maybe that makes that difference) and can get the correct 
 readystate:
 (rdb:1) doc.readyState
 complete

 complete means 4. Don't have any ideas why you're getting fixnum there.

 Jarmo Pertman
 -
 IT does really matter - http://itreallymatters.net


 On Wednesday, August 22, 2012 1:48:53 AM UTC+3, Chad Larkin wrote:

 I'm running into an interesting issue setting up a Watir env on Win7 x64 
 with IE9.  When using the goto statement in IRB to goto yahoo.com I am 
 getting an undefined method error.

 the steps in IRB are:
 require 'rubygems'
 require 'watir'
 $b=Watir::Browser.new
 $b.goto('http://www.yahoo.com')

 the error returned is:
 NoMethodError: undefined method `to_sym' for 4:Fixnum
 from 
 F:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.1.0/lib/watir-c
 lassic/ie-class.rb:542:in `block in wait'
 from F:/Ruby192/lib/ruby/1.9.1/timeout.rb:58:in `timeout'
 from 
 F:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.1.0/lib/watir-c
 lassic/ie-class.rb:520:in `wait'
 from 
 F:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.1.0/lib/watir-c
 lassic/ie-class.rb:365:in `goto'
 from (irb):4
 from F:/Ruby192/bin/irb:12:in `main'

 Any ideas?

 Thanks



-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com