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
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
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
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
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
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
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
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
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
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
> >
>
-
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,
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'
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
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
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
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
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:
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
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
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
20 matches
Mail list logo