[wtr-general] Screen Capture error

2010-03-17 Thread barb
Hi, I have written a quick little program to see how to use screen_capture and am having an error condition that I am not able to resolve. I suspect it is an easy fix.I will share the code from the program and command line error generated. Thanks in advance.

Re: [wtr-general] Re: Drop down menu

2010-03-17 Thread Mrunal
Hi In case when there is drop down arrow, the elements are set using text_field sometimes. Please try this option also. e.g. $ie.text_field(:name,'').set('') tester86 wrote: Hi I did fire a javascript event that will set the focus in the drop down list: $b.table(:index,

Re: [wtr-general] Query regarding chromewatir

2010-03-17 Thread Mrunal
Hi, when I tried to install |gem ||install| |selenium-webdriver I got following error ||selenium-webdriver requires ffi=0 Then i gave command, ||gem ||install| |ffi-0.6.3 ||I got following error. |||Building native extensions. This could take a while... ERROR: While executing gem ...

[wtr-general] Re: Drop down menu

2010-03-17 Thread tester86
Hi ( I did try text_field before but it does not work, after I set focus and execute text_field(:index, 2).set(Test) error stating index 2 has been disabled. What I am doing: I set the focus in the drop down, then set onblur(if i do $b.select_list(:value, Test).click this clicks on the default

Re: [wtr-general] Screen Capture error

2010-03-17 Thread Ethan
This is due to a change between ruby 1.8 and 1.9 in how the syntax ?x is interpreted, where x is any character. You can change the screen_capture.rb file. Every instance of ?x needs to be replaced with 'x'.getbyte(0) so the line: keybd_event.Call(vkKeyScan.Call(?F), 1, 0, 0) should become:

[wtr-general] Re: Screen Capture error

2010-03-17 Thread barb
Thanks much that worked like a charm...though I do question the advisability of having to change underlying code if I ever have to reinstall. Thanks again...on to the next task. On Mar 17, 11:01 am, Ethan notet...@gmail.com wrote: This is due to a change between ruby 1.8 and 1.9 in how the

Re: [wtr-general] Re: Screen Capture error

2010-03-17 Thread Ethan
Well, I'm not sure that watir officially supports ruby 1.9 yet. I think it does mostly. But, yes, that code should be changed in the source. On Wed, Mar 17, 2010 at 14:46, barb bfwork2h...@yahoo.com wrote: Thanks much that worked like a charm...though I do question the advisability of having

RE: [wtr-general] Query regarding chromewatir

2010-03-17 Thread Al Snow
Mrunal, You are welcome to read my trials-and-errors (Chapters 51+) on my blog (http://my-ruby-journey.blogspot.com/) dealing with me trying to get watir-webdriver and selenium-webdriver to install cleanly. I would check first that you have done a gem update to get all updates for all gems.