[Wtr-general] [Firewatir] Fireevent not working

2007-06-09 Thread jhun
Can you please help me. I have this code:

lis = $browser.elements_by_xpath(//li);
lis.each do |li|
   $logger.log(value:  + li.id);
   if (li.id == d.id[4..10])
  $logger.log(FOUND!!!);
  li.fireevent(ondblclick);
  break;
   end
end

It seems that the event ondblclick is not working. I tried searching on the net 
just to find an example or any implementation of the fireevent in firewatir but 
sad to say didnt find any. I hope you could help me with my problem. Thanks a 
lot!!!
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] [Firewatir] Fireevent not working

2007-06-09 Thread jhun
Thank you so much. I'll wait for that. :)
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] [firewatir] Fire_event not working in Firefox

2007-06-07 Thread jhun
I have this in my code:

lis = 
$browser.elements_by_xpath(//li);
lis.each do |li|
$logger.log(value:  + li.id);
if (li.id == d.id[4..10])
$logger.log(FOUND!!!);
*   
li.fire_event(ondblclick);*
break;
end
end

In bold text, doesnt seem to work. Can you please help me or i hope there's 
alternative to activate the ondblclick event. Thanks for the help!
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] [firewatir] Fire_event not working in Firefox

2007-06-07 Thread jhun
i hope u could help me. Im in a rush. Thanks!!!
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] problem with text_field.set

2007-03-25 Thread jhun
Hi Charley!!! THANKS FOR BIG HELP!!! It works!! :)
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] problem with text_field.set

2007-03-23 Thread jhun
My application is written on ajax and im having an error when im setting a 
value on textfield. here's the details:

my code:

def addGroup
$ie.link(:id,button_addgroup).click
$ie.text_field(:id, /grp_name_txtbox/i).set(12345)

end

error:

  1) Error:
test_addbuddy(TC_AddBuddy):
WIN32OLERuntimeError: fireEvent
OLE error code:80004005 in htmlfile
  Unspecified error.
HRESULT error code:0x80020009
  Exception occurred.
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3407:in `method_missing'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3407:in `fire_key_events'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3432:in `doKeyPress'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3427:in `each'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3427:in `doKeyPress'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3393:in `set'
C:/Program Files/Watir/examples/chikka/final/addbuddy.rb:25:in `addGroup'
C:/Program Files/Watir/examples/chikka/final/addbuddy.rb:18:in `test_addbudd
y'
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] problem with text_field.set

2007-03-23 Thread jhun
Please.. i need your help badly. Thanks in advance!
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general