[wtr-general] Assigning Div content a Text Value

2008-11-28 Thread Anders
I need to assign a text value as the content of a Div, very similar to Watir gmail example except, I don't have an iframe, just a Div, here is the gmail example: # a body element. So, save the iframe in a var, then set the innerText # property of the iframe's body element. mail_body_frame = c

[wtr-general] button.Click_No_Wait only highlights the button, does not click

2008-11-28 Thread patrick
hi, i am using the foll versions: win xp sp2 ruby - 1.8.6 watir - 1.6.2 ie - 7.0 my code is as follows: irb require "watir" browser = Watir::IE.start('http://www.google.com') browser.text_field(:name, 'q').set('Watir') browser.button(:name, 'btnG').click_no_wait however, the "Google Search" b

[wtr-general] Re: there's something strange going on with a checkbox and radio on firewatir

2008-11-28 Thread juuser
I am still wondering, what is happening with this problem. No-one cares or is not able to verify this problem with my provided code? Is FireWatir broken or not? Anyway, I'd hope more activity on this issue, since that is one of the problems we're not running our tests on FireWatir and only on Wat

[wtr-general] Re: indexes with watir and firewatir

2008-11-28 Thread aidy lewis
Hi, An example of the problem below ['watir', 'firewatir'].each { | g | require g } ie = Watir::IE.new ff = FireWatir::Firefox.new [ie, ff].each { |b| b.goto("http://www.google.com";) } ff.table(:index, 1).rows[0].html ie.table(:index, 1).rows[0].html Aidy On 28/11/2008, aidy lewis <[EMAIL PR

[wtr-general] indexes with watir and firewatir

2008-11-28 Thread aidy lewis
Hi, Has anyone experienced index variations in Watir and FireWatir? This in FireWatir row.cell(:index, 0) Will be this in Watir row.cell(:index, 1) We think this is because Watir uses win32ole and FireWatir uses JavaScript. If this is a known and common bug, we will fix it. Aidy --~--~-

[wtr-general] Re: how to handle javascript popups problem with firewatir

2008-11-28 Thread Dave McNulla
On Nov 26, 6:42 pm, Dave McNulla <[EMAIL PROTECTED]> wrote: > On Nov 26, 1:00 am, Jarod Zhu <[EMAIL PROTECTED]> wrote: > > > I am using firewatir-1.6.2 to make a web automation tool in my > > project. > > I come to the problem that I can't click the javascript popup "OK" > > button successfully.

[wtr-general] Click_no_wait for firewatir

2008-11-28 Thread al3kc
Hi all, Does click_no_wait method exists in firewatir? I didn't found it in firewatir sorce files and it does not work in my tests. I use firewatir - 1.2.1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir Gener

[wtr-general] Re: Click_no_wait for firewatir

2008-11-28 Thread aidy lewis
On 28/11/2008, al3kc <[EMAIL PROTECTED]> wrote: > > Hi all, > > Does click_no_wait method exists in firewatir? I didn't found it in > firewatir sorce files and it does not work in my tests. > I use firewatir - 1.2.1 Try something like this: def click_no_wait(object_name) $jssh_socket.sen

[wtr-general] Unable to execute assert method through Module

2008-11-28 Thread Natasha
Hello All, I am unable to call the assert method through a Module. I am able to execute the same statement through test function. I am going to paste the code of Test function and Module. The assert statement executes successfully when called through the test function. But fails when its part of

[wtr-general] Re: Unable to execute assert method through Module

2008-11-28 Thread aidy lewis
Natasha, Try putting this include in your module include Test::Unit::Assertions Bret wrote around this topic some time ago http://www.io.com/~wazmo/blog/archives/2006_05.html#000238 Aidy On 28/11/2008, Natasha <[EMAIL PROTECTED]> wrote: > > Hello All, > > I am unable to call the assert me

[wtr-general] Re: Unable to execute assert method through Module

2008-11-28 Thread Natasha Ranney
Thanks Aidy. Somehow its started working again. I took a old version of my working test scripts and merged them. So far so good :) Regards, Natasha aidy lewis <[EMAIL PROTECTED]> wrote: Natasha, Try putting this include in your module include Test::Unit::Assertions Bret wrote

[wtr-general] Need to check for existence of value in select_list based on regular expression

2008-11-28 Thread Natasha
Hi All, I want to check for existence of value in select_list based on regular expression. I tried the following, but it didn't work out. Probably its not an acceptable input. assert($ie.select_list(:id,"ddlQuantity").includes?(/#{qty} pack/),"No option for #{qty} " + $ie.url) There are values

[wtr-general] Re: Need to check for existence of value in select_list based on regular expression

2008-11-28 Thread John Fitisoff
There's a getAllContents method for select_lists in 1.4.1 that returns an array of all of the drop-down list options. In later versions I think it's get_all_contents. So something like this maybe (includes? should actually be include?): > assert($ie.select_list(:id,"ddlQuantity")getAllContents

[wtr-general] uninitialized constant Watir::IE (NameError)

2008-11-28 Thread Gigi
Hello, I am new using Watir. I am trying to implement a Concurrent Search test but every time I run the example below I am getting the error: >ruby google.rb c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_exists': Unable to locate element, using :value, "Google Sea

[wtr-general] Re: 1.6.2: Issue with enabled_popup.rb

2008-11-28 Thread Lisa Crispin
Hi Bret, Just to clarify - So for now we have to use require 'watir\ie' in order to require 'watir\contrib\enabled_popup', but in the next version, we won't have to use require 'watir\ie', correct? My next question may be ignorant - if we want to be able to run our scripts in firewatir as well as

[wtr-general] 1.6.2 - browser.attach question

2008-11-28 Thread Lisa Crispin
Another question - on the development site you say: Watir 1.6.2 does not support Browser.attach. This will be supported in a future version. We use Browser.attach when we run our tests in a suite. What are we supposed to do instead, since Browser.attach isn't supported in 1.6.2? Or does this mean

[wtr-general] Re: how to handle javascript popups problem with firewatir

2008-11-28 Thread Paul Rogers
;-) we did talk about it a little bit. Heres some suggestions: overwrite the javascript alert method, so it displays a 'modal' div in a light box, like google calendars. ( selenium does something like this) get your web designers/developers to stop using alerts - they are a really unpleasant user

[wtr-general] Re: 1.6.2 - browser.attach question

2008-11-28 Thread Gavin Jefferies
Hi Lisa, If you want to have one browser shared among all your tests in the suite then a global variable set up in a mixin class may be what you are looking for: module MySetup def setup if $br == nil $br = Watir::Browser.new end @br = $br end end Then use this module in y

[wtr-general] Error on just_add_watir?

2008-11-28 Thread Jim Cropcho
Timeout::timeout(10)do begin @b.goto(url) rescue Timeout::Error puts 'Page took longer than 10 seconds to load' end end The proceeding code still throws the Timeout::Error exception. At least in FireWatir, this doesn't work. Rather, one must begin Timeout::timeout(10)do f