Re: [wtr-general] two buttons Search and Go

2011-01-21 Thread Emmanuel Cecchet
I would guess that you are using :name to locate the button but are 
using the value instead. That's the only difference I can see between 
the two!


Emmanuel

On 1/21/2011 11:16 AM, Aravind wrote:

Hi
I have two buttons in a page Search and Go.
I am able to click Go but not the Search, wiered
Go button
input name=Go onclick=javascript:go(this); type=button value=Go
Search button
input name=searchAccounts onclick=javascript:searchAcct(this); 
type=button value=Search

I dont find any diff in the code.
please help
thanks
aravind
--
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


Re: [wtr-general] Re: Watir virtual appliances?

2011-01-19 Thread Emmanuel Cecchet

You need to do that at large scale to be cost effective (for the provider).
Also you are not alone on the machine, multiple VMs are collocated per 
physical machine. If you want more powerful machines where you are 
almost sure of having dedicated hardware, prices rise quickly.


You can check the prices here: http://aws.amazon.com/ec2/pricing/
Note that if you want to give it a try, Amazon currently gives 750 micro 
instances hours free / month for one year to new users. Can be a good 
time for those who want to give it a try


Emmanuel
PS: I am not affiliated with Amazon, just using this platform for my 
research.


On 1/19/2011 1:42 PM, Chuck van der Linden wrote:

You really have to wonder how that business model flies..   doesn't
seem like it would even come close to paying for the hardware alone,
much less license fees for licensed OS's

On Jan 13, 11:14 pm, Dave McNullamcnu...@gmail.com  wrote:

For $.50 a day we can run a VM in the cloud? I can hear Sally
Struthers getting in on this. All around the world there are Watir
scripts that can't run and play with web pages, but for pennies a day,
you can help them find a home.

Dave

On Jan 13, 6:59 am, Emmanuel Cecchetcecc...@gmail.com  wrote:








On 1/13/2011 3:51 AM, Željko Filipin wrote:The Windows VM can be made 
available as Amazon EC2 AMIs for those

who are willing to run their VMs in the cloud.
Can they be shared?

Yes. We can make these AMIs public for anyone to use. Basically the
license price is included in the hourly rental price that is why Windows
VMs are more expensive than Linux VMs ($0.12/hour vs $0.085/hour for a
small instance). However for Watir purposes we should be able to use the
new micro instances ($0.02/hour for Linux and $0.03/hour for Windows).
I will keep you posted with my progress on this front.
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-13 Thread Emmanuel Cecchet

On 1/13/2011 3:51 AM, Željko Filipin wrote:
 The Windows VM can be made available as Amazon EC2 AMIs for those 
who are willing to run their VMs in the cloud.


Can they be shared?
Yes. We can make these AMIs public for anyone to use. Basically the 
license price is included in the hourly rental price that is why Windows 
VMs are more expensive than Linux VMs ($0.12/hour vs $0.085/hour for a 
small instance). However for Watir purposes we should be able to use the 
new micro instances ($0.02/hour for Linux and $0.03/hour for Windows).


I will keep you posted with my progress on this front.

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-12 Thread Emmanuel Cecchet

Hi Željko,

I'll make VMs available for Linux.
The Windows VM can be made available as Amazon EC2 AMIs for those who 
are willing to run their VMs in the cloud.


Emmanuel

On 1/11/2011 10:14 AM, Željko Filipin wrote:
On Tue, Jan 11, 2011 at 4:06 PM, Emmanuel Cecchet cecc...@gmail.com 
mailto:cecc...@gmail.com 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


--
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 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 http://watir.com - community manager
watirpodcast.com http://watirpodcast.com - host
testingpodcast.com http://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] Re: Timeout when setting a text_field

2011-01-04 Thread Emmanuel Cecchet
No, this is the set() operation that generates a timeout (Watir starts 
writing in the form but it takes a long time and the operation generates 
a timeout in the ruby script). I have no timeout on the server side.
I forgot to mention that I am using Watir on Webdriver. So this might be 
a timeout coming from Webdriver.


Emmanuel

On 1/4/2011 4:08 PM, jv-watir wrote:

If I understand correctly, it is a session time out, you may want to
change in the web server settings or ask some one too, if it is the
issue.

On Jan 4, 3:45 pm, manucecc...@gmail.com  wrote:

Hi all,

I am writing a pretty big chunk of text in a form and want to keep the
default typing speed in the form to emulate a real user.
So when I call:
browser.text_field(:name, 'field').set('some very long text here')

The operation stops before completion with a timeout.
Is there a way I can override the timeout in the set operation so that
it can complete?
Any other workaround you can suggest?

Thanks
manu


--
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: Timeout when setting a text_field

2011-01-04 Thread Emmanuel Cecchet
That's one of the things I mentioned, I don't want to type faster, I 
want to keep a normal typing speed but not timeout.
It looks like Webdriver has some timeout settings but I don't know how 
to access them from Watir.


manu

On 1/4/2011 4:46 PM, orde wrote:

Try 'speed=:fast'.  For example:

browser = Watir::IE.new
browser.speed=:fast

It's documented at 
http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/IE.html#M000470

Hope it helps.

orde

On Jan 4, 1:12 pm, Emmanuel Cecchetcecc...@gmail.com  wrote:

No, this is the set() operation that generates a timeout (Watir starts
writing in the form but it takes a long time and the operation generates
a timeout in the ruby script). I have no timeout on the server side.
I forgot to mention that I am using Watir on Webdriver. So this might be
a timeout coming from Webdriver.

Emmanuel

On 1/4/2011 4:08 PM, jv-watir wrote:








If I understand correctly, it is a session time out, you may want to
change in the web server settings or ask some one too, if it is the
issue.
On Jan 4, 3:45 pm, manucecc...@gmail.comwrote:

Hi all,
I am writing a pretty big chunk of text in a form and want to keep the
default typing speed in the form to emulate a real user.
So when I call:
browser.text_field(:name, 'field').set('some very long text here')
The operation stops before completion with a timeout.
Is there a way I can override the timeout in the set operation so that
it can complete?
Any other workaround you can suggest?
Thanks
manu


--
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] Timeout when setting a text_field

2011-01-04 Thread Emmanuel Cecchet

Hi all,

I was finally able to catch the stack trace of the timeout (see below). 
Even when the error occurs, the operation continues and the keystrokes 
are still sent to the browser.
I am not sure how to override the read timeout in protocol.rb, any 
suggestion?


Timeout::Error: execution expired
from C:/Ruby187/lib/ruby/1.8/timeout.rb:64:in `rbuf_fill'
from C:/Ruby187/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
from C:/Ruby187/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
from C:/Ruby187/lib/ruby/1.8/net/protocol.rb:126:in `readline'
from C:/Ruby187/lib/ruby/1.8/net/http.rb:2028:in `read_status_line'
from C:/Ruby187/lib/ruby/1.8/net/http.rb:2017:in `read_new'
from C:/Ruby187/lib/ruby/1.8/net/http.rb:1051:in `request'
from C:/Ruby187/lib/ruby/1.8/net/http.rb:1037:in `request'
from C:/Ruby187/lib/ruby/1.8/net/http.rb:543:in `start'
from C:/Ruby187/lib/ruby/1.8/net/http.rb:1035:in `request'
from 
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/remote/http/default.rb:36:in 
`request'
from 
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/remote/http/common.rb:36:in 
`call'
from 
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/remote/bridge.rb:429:in 
`raw_execute'
from 
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/remote/bridge.rb:407:in 
`execute'
from 
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/remote/bridge.rb:324:in 
`sendKeysToElement'
from 
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/common/element.rb:123:in 
`send_keys'
from 
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/common/element.rb:114:in 
`each'
from 
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/common/element.rb:114:in 
`send_keys'
from 
C:/Ruby187/lib/ruby/gems/1.8/gems/watir-webdriver-0.1.8/lib/watir-webdriver/elements/text_field.rb:17:in 
`set'

from (irb):17

Thanks
manu

On 1/4/2011 3:45 PM, manu wrote:

Hi all,

I am writing a pretty big chunk of text in a form and want to keep the
default typing speed in the form to emulate a real user.
So when I call:
browser.text_field(:name, 'field').set('some very long text here')

The operation stops before completion with a timeout.
Is there a way I can override the timeout in the set operation so that
it can complete?
Any other workaround you can suggest?

Thanks
manu



--
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] Timeout when setting a text_field

2011-01-04 Thread Emmanuel Cecchet

Excellent, this is just what I was looking for.

Thanks again for the help
manu

On 1/4/2011 6:03 PM, Jari Bakken wrote:

This is documented on the WebDriver wiki:

http://code.google.com/p/selenium/wiki/RubyBindings

Basically, you want to do something like this:

   client = Selenium::WebDriver::Remote::Http::Default.new
   client.timeout = 120 # seconds - default is 60
   driver = Selenium::WebDriver.for(:firefox, :http_client =  client)

   browser = Watir::Browser.new(driver)

On Tue, Jan 4, 2011 at 11:59 PM, Emmanuel Cecchetcecc...@gmail.com  wrote:

Hi all,

I was finally able to catch the stack trace of the timeout (see below). Even
when the error occurs, the operation continues and the keystrokes are still
sent to the browser.
I am not sure how to override the read timeout in protocol.rb, any
suggestion?

Timeout::Error: execution expired
from C:/Ruby187/lib/ruby/1.8/timeout.rb:64:in `rbuf_fill'
from C:/Ruby187/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
from C:/Ruby187/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
from C:/Ruby187/lib/ruby/1.8/net/protocol.rb:126:in `readline'
from C:/Ruby187/lib/ruby/1.8/net/http.rb:2028:in `read_status_line'
from C:/Ruby187/lib/ruby/1.8/net/http.rb:2017:in `read_new'
from C:/Ruby187/lib/ruby/1.8/net/http.rb:1051:in `request'
from C:/Ruby187/lib/ruby/1.8/net/http.rb:1037:in `request'
from C:/Ruby187/lib/ruby/1.8/net/http.rb:543:in `start'
from C:/Ruby187/lib/ruby/1.8/net/http.rb:1035:in `request'
from
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/remote/http/default.rb:36:in
`request'
from
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/remote/http/common.rb:36:in
`call'
from
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/remote/bridge.rb:429:in
`raw_execute'
from
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/remote/bridge.rb:407:in
`execute'
from
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/remote/bridge.rb:324:in
`sendKeysToElement'
from
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/common/element.rb:123:in
`send_keys'
from
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/common/element.rb:114:in
`each'
from
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.2/lib/selenium/webdriver/common/element.rb:114:in
`send_keys'
from
C:/Ruby187/lib/ruby/gems/1.8/gems/watir-webdriver-0.1.8/lib/watir-webdriver/elements/text_field.rb:17:in
`set'
from (irb):17

Thanks
manu

On 1/4/2011 3:45 PM, manu wrote:

Hi all,

I am writing a pretty big chunk of text in a form and want to keep the
default typing speed in the form to emulate a real user.
So when I call:
browser.text_field(:name, 'field').set('some very long text here')

The operation stops before completion with a timeout.
Is there a way I can override the timeout in the set operation so that
it can complete?
Any other workaround you can suggest?

Thanks
manu


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