Re: [wtr-general] Help!! please- can not work with firewatir

2011-01-11 Thread Željko Filipin
On Tue, Jan 11, 2011 at 6:25 AM, Irfan Ahmed  wrote:
> But  when I run the cucumber it shows the following error:

Show us the code that causes the error.

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
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] require 'socket'

2011-01-11 Thread Usman Hussain
Hi Guys,

Just a very quick question.
Im trying to set up an xml socket in my watir-webdriver scripts
written in Ruby.

Ive seen some examples on the net which are similar to what i need.

but they all require 'socket' at the top of their scripts.

I have been trying to find out what this gem is so that i can use it
and run an example script to see if it works or not.

and example of a script can be found here:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/54595

So if someone can tell me what i need to: gem install ..
in order to require 'socket' that would be brilliant.

I have tried gem install socket but get the following error:

ERROR:  Could not find a valid gem 'socket' (>= 0) in any repository
gl01231m:~ usman.hussain$ sudo gem install web-socket-ruby


Kind regards,
Usman Hussain

-- 
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] require 'socket'

2011-01-11 Thread Željko Filipin
On Tue, Jan 11, 2011 at 3:00 PM, Usman Hussain 
wrote:
> So if someone can tell me what i need to: gem install ..
> in order to require 'socket' that would be brilliant.

You will probably get faster and better answers on a Ruby mailing list.

I would take a look at this list of gems if I were you:

https://rubygems.org/search?query=socket

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
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] watir-webdriver with IE and Chrome

2011-01-11 Thread Emmanuel Cecchet

Hi all,

I am using watir-webdriver and have a simple script that fills forms and 
click on buttons. Everything works fine with Firefox (Linux or Windows).


1. I have problems with IE (v8.0.6001.18702) on Windows XP where 
everything works except clicking buttons. The method does not fail, I 
can ever hear the noise like if the button was clicked but the submit is 
not performed. Is there any limitation with some versions of IE?


2. I have noticed 2 issues with Chrome (8.0.552.224) on Windows. First, 
I need to call the set methods twice, the first time I call 
text_field(...).set the field is just reset but nothing is written in 
it. I need to call a second time the method for the field to be actually 
set. Second, file_field does not work at all. I read that it was a 
limitation but thought that this was fixed. Any idea if there is a 
version of watir-webdriver that supports file_field for Chrome?


Thanks for your help
Emmanuel

--
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-webdriver with IE and Chrome

2011-01-11 Thread Željko Filipin
Looks like you should report a few bugs:

https://github.com/jarib/watir-webdriver/issues

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
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-webdriver with IE and Chrome

2011-01-11 Thread Emmanuel Cecchet

Ok. Done.

Thanks

On 1/11/2011 9:22 AM, Željko Filipin wrote:

Looks like you should report a few bugs:

https://github.com/jarib/watir-webdriver/issues

Željko
--
watir.com  - community manager
watirpodcast.com  - host
testingpodcast.com  - audio podcasts on 
software testing. all of them


--
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


--
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] Watir virtual appliances?

2011-01-11 Thread Emmanuel Cecchet

Hi all,

Does anyone know if there are virtual machines available (Xen, VMWare, 
AMI, ...) with Watir and version of browsers that are known to work fine 
together?
If not, is there any plan for the dev team to build such VMs (that could 
be used for testing) and make them available? I think it would also help 
for error reporting if we could reproduce issues on these standard 
configs to quickly identify core bugs.


Any thoughts?
Emmanuel

--
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 virtual appliances?

2011-01-11 Thread Željko Filipin
On Tue, Jan 11, 2011 at 4:06 PM, Emmanuel Cecchet  wrote:
> Does anyone know if there are virtual machines available (Xen, VMWare,
AMI, ...) with Watir and version of browsers that are known to work fine
together?

No as far as I know.

> If not, is there any plan for the dev team to build such VMs (that could
be used for testing) and make them available?

No as far as I know.

Watir is open source.

Feel free to build VMs yourself. The only problem I see it that they will
have to be based only on Linux (and similar OSes), because you can not
distribute Windows or Mac virtual machines. If you build a VM(s) let us
know, maybe we will find a place to host it. Watir VM(s) sound like a good
idea to me.

Ž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


[wtr-general] Re: Firewatir, JSSh, and Firefox 3.6.13?

2011-01-11 Thread Abe Heward
Well... No real update, here. I haven't been able to figure out the
source of the problem, so for now I'm just going to have to use the
error-suppression code above and hope that someone fixes the issue at
some point.

On Jan 5, 9:55 am, Abe Heward  wrote:
> UPDATE:
>
> I let the machine (running Windows XP) with 3.6.12 update Firefox to .
> 13 and immediately started seeing the problem there.  Reverting back
> to 3.6.12 fixed the problem on that machine.
>
> HOWEVER, reverting to 12 on the other machine (running Windows 7) did
> NOT fix the problem, so obviously things aren't so simple.
>
> I've turned off auto-updaters, now. :-)
>
> If I figure this out I'll be sure to post the solution here.
>
> Abe

-- 
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] Re: Recent Stack Overflow Questions Tagged Watir

2011-01-11 Thread Željko Filipin
http://stackoverflow.com/questions/4618478/visual-analysis-of-web-pages-in-ruby
http://stackoverflow.com/questions/4629634/simple-watir-commands-in-cucumber-and-in-irb-produce-different-results
http://stackoverflow.com/questions/4643978/read-only-text-field
http://stackoverflow.com/questions/4639414/problem-with-firewatir-requiring-different-version-of-activesupport
http://stackoverflow.com/questions/4651825/using-firewatir-with-ubuntu-for-download-testing

-- 
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] Executing a javascript command in firewatir

2011-01-11 Thread xguarder
Hi, I have the following javascript (for a site that has mootools
embedded in it) that I am trying to execute...

$$('.monthly-calendar')[0].fireEvent('click', { target: $$
('.available')[0] })

The above works when I execute it from the command line console in
Firebug. Is there a way to get the above to work from my test using
firewatir?

Thanks in advance!

-- 
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] Executing a javascript command in firewatir

2011-01-11 Thread Željko Filipin
Did you try just clicking the element?

browser.element(how, what).click

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
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: Executing a javascript command in firewatir

2011-01-11 Thread xguarder
Yeah, I tried that, but all that does is "flash" the element.

Basically, it's a calendar with each date of the month as an object
(table cell). Clicking on it will cause the object to "change".

On Jan 11, 5:24 pm, Željko Filipin 
wrote:
> Did you try just clicking the element?
>
> browser.element(how, what).click
>
> Željko
> --
> watir.com - community manager
> watirpodcast.com - host
> testingpodcast.com - audio podcasts on software testing. all of them

-- 
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] Re: Executing a javascript command in firewatir

2011-01-11 Thread Željko Filipin
Did you try to fire the event?

browser.element(how, what).fire_event "onclick"

http://stackoverflow.com/questions/3787555/how-to-find-out-which-javascript-events-fired

Ž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


[wtr-general] Re: Executing a javascript command in firewatir

2011-01-11 Thread xguarder
Yep I tried that too actually. That's the way I used to do it (except
with the mousedown event). However, there was some redesign on the
calendar and any of the fire_events don't work anymore.

On Jan 11, 5:47 pm, Željko Filipin 
wrote:
> Did you try to fire the event?
>
> browser.element(how, what).fire_event "onclick"
>
> http://stackoverflow.com/questions/3787555/how-to-find-out-which-java...
>
> Ž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] Re: Executing a javascript command in firewatir

2011-01-11 Thread Željko Filipin
On Wed, Jan 12, 2011 at 12:27 AM, xguarder  wrote:
> However, there was some redesign on the
> calendar and any of the fire_events don't work anymore.

Did you take a look at the link I have posted? Did you check which events
get fired?

Ž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


[wtr-general] Re: Executing a javascript command in firewatir

2011-01-11 Thread xguarder
Thanks! I just tried them and I got a series of mousedown, mouseup,
click, and mousemove. Unfortunately, any one of them fired alone
doesn't do the trick, and not sure how to do them quickly in a
sequence.

On Jan 11, 6:29 pm, Željko Filipin 
wrote:
> On Wed, Jan 12, 2011 at 12:27 AM, xguarder  wrote:
> > However, there was some redesign on the
> > calendar and any of the fire_events don't work anymore.
>
> Did you take a look at the link I have posted? Did you check which events
> get fired?
>
> Ž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