[wtr-general] Browse an Image

2009-10-15 Thread Amit
In my application i want to write a watir code for browsing an image Working: 1:Click on browse button 2:Pop window opens.I click on image and click on ok 3:Image path is displayed under the browse field 4:Click on upload Now i want to write a watir code for the above. Html code is: Please

[wtr-general] Re: Browse an Image

2009-10-15 Thread Željko Filipin
On Thu, Oct 15, 2009 at 10:07 AM, Amit wrote: > name="product[photo]"/> http://wiki.openqa.org/display/WTR/File+Uploads Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir Gen

[wtr-general] Re: Capturing Java Script Errors

2009-10-15 Thread Jarmo Pertman
Hello. I've created something like this. Commented it also to make it more obvious. You should create method for saving screenshots also. Hope it helps. def save_javascript_error if $browser.is_a?(Watir::IE) && $browser.getIE.StatusText =~ /Error on page/ $autoit.AutoItSetOption("MouseCoor

[wtr-general] Disable java script of firefox through Ruby+watir

2009-10-15 Thread arihan sinha
Hi All, Is there any way to disable java script of IE/Firefox through ruby+watir? Thanks Arihan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-gene

[wtr-general] Re: Disable java script of firefox through Ruby+watir

2009-10-15 Thread aidy lewis
Using the mozilla component classes you could set javascript.enabled to equal true Aidy 2009/10/15 arihan sinha : > Hi All, > > Is there any way to disable java script of IE/Firefox through ruby+watir? > > Thanks > > Arihan > > > > > > --~--~-~--~~~---~--~~ You

[wtr-general] Re: Disable java script of firefox through Ruby+watir

2009-10-15 Thread aidy lewis
I meant false ## From Matt Ellis ## Not tested def set_bool_preference(key, value) jssh_command = "var prefs = Components.classes[\"@mozilla.org/preferences-service;1\"].getService(Components.interfaces.nsIPrefBranch);" jssh_command += " prefs.setBoolPref(\"#{key}\", #{value});" $j

[wtr-general] Re: how to get value of a span style?

2009-10-15 Thread kat
I've found the answer here: http://wiki.openqa.org/pages/viewpage.action?pageId=1119 On Oct 7, 3:51 pm, kat wrote: > Given this: > sometext > > how is it possible to get the span style "somestyle" in Watir? --~--~-~--~~~---~--~~ You received this message because

[wtr-general] reg firewatir on mac

2009-10-15 Thread ravi
Hello all, I am trying to install firewatir on mac with snowleopard os i am getting error of jssh i tired installing jssh but the error message i am getting is -jssh 0.94 is not compatiable with firefox 3.5 i even tried with firefox 3.0 still the same message can you please help me regarding this

[wtr-general] how to ALT+Shift+T ?

2009-10-15 Thread Andrew
I know this is probably easy. How do you send the key combination ALT- Shift-T to the browser? Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-g

[wtr-general] Re: how to ALT+Shift+T ?

2009-10-15 Thread Paul Rogers
you'll have to use autoit. This page has the key combinations http://www.autoitscript.com/autoit3/docs/functions/Send.htm Paul On Thu, Oct 15, 2009 at 10:36 AM, Andrew wrote: > > > I know this is probably easy. How do you send the key combination ALT- > Shift-T to the browser? > > Andy > > > -

[wtr-general] Re: how to ALT+Shift+T ?

2009-10-15 Thread aidy lewis
If you are trying to change IE options would it not be better to alter the registry settings? Aidy 2009/10/15 Paul Rogers : > you'll have to use autoit. This page has the key combinations > http://www.autoitscript.com/autoit3/docs/functions/Send.htm > > Paul > > On Thu, Oct 15, 2009 at 10:36 AM,

[wtr-general] Re: Dwatir - Can this help running watir tests on remote machines?

2009-10-15 Thread Alan Baird
Bret - I'm looking into this. I see all of the plugins for Selenium and I'm expecting to see something like, Plugin for Ruby Test::Unit or Rspec. Ultimately, Hudson has to be able to understand my test results. Is it a plugin that accomplishes that or do my tests need to emit XML? If it'

[wtr-general] Re: how to ALT+Shift+T ?

2009-10-15 Thread orde
This should do it: browser.send_keys("{SHIFT}{ALT}{T}") On Oct 15, 9:57 am, Paul Rogers wrote: > you'll have to use autoit. This page has the key > combinationshttp://www.autoitscript.com/autoit3/docs/functions/Send.htm > > Paul > > On Thu, Oct 15, 2009 at 10:36 AM, Andrew wrote: > > > I know

[wtr-general] Hudson, was Re: Dwatir - Can this help running watir tests on remote machines?

2009-10-15 Thread Bret Pettichord
Alan Baird wrote: > Bret - > > I'm looking into this. I see all of the plugins for Selenium and I'm > expecting to see something like, Plugin for Ruby Test::Unit or Rspec. > > Ultimately, Hudson has to be able to understand my test results. Is it a > plugin that accomplishes that or do my

[wtr-general] Re: watir tests are not passing on my environment

2009-10-15 Thread Shlomit Gazit
One ting I didnt mention is that the new machine is a VMFusion Windows on MAC. I sometimes success in finding the popup when I am not moving the mouse at all. How do you use wait_until? On Wed, Oct 14, 2009 at 9:18 PM, Bret Pettichord wrote: > > My guess is that this is Ajax code and that a rob

[wtr-general] Re: Check if a Print Dialog appears or not

2009-10-15 Thread orde
This thread appears to cover your scenario: http://groups.google.com/group/watir-general/browse_thread/thread/f87efefd3b4a8d7/50ff17894536549b?lnk=gst&q=%28hwnd%2C+%22Cancel%22%29#50ff17894536549b Hope that helps. On Oct 13, 1:50 am, Pallavi Sharma wrote: > Hi > I have a scenario in which ther

[wtr-general] Re: Hudson, was Re: Dwatir - Can this help running watir tests on remote machines?

2009-10-15 Thread Alan Baird
Awesome. I'll check it out and report my findings back to the list. Alan -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Bret Pettichord Sent: Thursday, October 15, 2009 12:59 PM To: watir-general@googlegroups.com Subject:

[wtr-general] Re: reg firewatir on mac

2009-10-15 Thread Željko Filipin
On Thu, Oct 15, 2009 at 6:34 PM, ravi wrote: > I am trying to install firewatir on mac with snowleopard os > i am getting error of jssh I think we do not have jssh for new Mac OS. There are instructions how to build it here on the list somewhere or on the wiki. If you can not find it, let me know

[wtr-general] Re: watir tests are not passing on my environment

2009-10-15 Thread orde
http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdealwithtimingissuesandnotusesleep%3F Hope that helps... On Oct 15, 10:55 am, Shlomit Gazit wrote: > One ting I didnt mention is that the new machine is a VMFusion Windows on > MAC. > I sometimes success in finding the popup when I am not moving

[wtr-general] Re: Capturing Java Script Errors

2009-10-15 Thread dt_nz
Hi To capture a java script error, how do you call theses methods. Do you have a separate thread that is always running save_javascript_error in a loop, or is save_javascript_error called after each action on a page? We have an existing framework that runs a lot of tests in our regression runs a