Re: [wtr-general] Re: making old watir scripts compatiable with new watir webdriver

2011-11-13 Thread Ethan
t for 8 and up is landing shortly). more info at http://vapir.org/ -Ethan On Fri, Nov 11, 2011 at 10:21, sumanth wrote: > Hi Chuck and Jari, > >Thanks a lot for the information. I am planning to upgrade Watir > to 2.x on one testing machine and see what and all things breaks u

Re: [wtr-general] Fix for ie.close throwing NoMethodError when using ruby 1.92 & watir 1.9.2

2011-07-15 Thread Ethan
there's an open ticket - http://jira.openqa.org/browse/WTR-481 so hopefully one of the devs will get this in soon. On Fri, Jul 15, 2011 at 13:40, David Brown wrote: > I've been using ruby 1.86 and Watir for years. I've been trying to > upgrade to ruby 1.92 so that we don't have to maintain 2 ve

Re: [wtr-general] Re: string to boolean?

2011-07-07 Thread Ethan
instance_eval is a really terrible idea here. it's probably a string "true" / "false" because it's coming from somewhere less-trusted. eval is something I avoid, though it has its uses on occasion, but eval'ing external input is pretty much never good. match the strings you want to the values you w

Re: [wtr-general] Re: Managing multiple version of Watir

2011-04-04 Thread Ethan
you know, you can just choose which gem version to activate within ruby. require 'rubygems' gem 'watir', '1.6.2' require 'watir' # rubygems will only require v1.6.2. then you can have as many versions of the watir gem installed simultaneously as you want, and switch between them by changing, say,

Re: [wtr-general] Re: Watir at Facebook

2011-02-25 Thread Ethan
ruby-watir, or watir-ruby, perhaps? On Fri, Feb 25, 2011 at 10:19, sdemian wrote: > I like watircom - very simple and understandable as for me. > > Suggestions:) How about: > https://www.facebook.com/watirhome > > On Feb 25, 3:11 pm, Željko Filipin > wrote: > > On Tue, Feb 22, 2011 at 4:02 PM,

Re: [wtr-general] Getting the HTML class attribute from li element

2011-02-11 Thread Ethan
it's className on the dom. I think this is exposed as #class_name in watir, or you can do element.ole_object.className On Fri, Feb 11, 2011 at 11:15, Alastair Montgomery wrote: > I've used something like this in another case > > browser.ul(:class,"ws-context-menu").lis.each {|li| menuClass << > l

Re: [wtr-general] Hide Ruby.exe cmd window

2011-02-11 Thread Ethan
invoking rubyw instead of ruby will not create a cmd window On Fri, Feb 11, 2011 at 06:30, Željko Filipin wrote: > On Fri, Feb 11, 2011 at 12:17 PM, Saurabh Gupta > wrote: > > While execution, trying to hide the Ruby.exe command promt window. > > Minimize the command prompt window. Why do you w

Re: [wtr-general] ruby1.9.2

2010-12-23 Thread Ethan
Vapir is a fork of watir with various improvements, including compatibility with ruby 1.9.* see http://vapir.org/ -Ethan 2010/12/24 深谷 芳和 > Thank you for quick reply. > > iPhoneから送信 > > On 2010/12/24, at 13:48, Yuping Zhong wrote: > > You have better run it on ruby1.8

Re: [wtr-general] OT: WIN32OLE and Word difficulty

2010-12-11 Thread Ethan
Hi Adam, I don't have any experience with OLE stuff in Word, but since I doubt anybody else here has much either, I can make one general suggestion. I'd suggest looking for support for COM/OLE automation with Word outside of the ruby community (definitely outside the watir community - almost all an

Re: [wtr-general] Watir Console issues

2010-11-26 Thread Ethan
probably. I don't think it's useful - it is just a somewhat opinionated irb. On Fri, Nov 26, 2010 at 04:19, Željko Filipin wrote: > On Wed, Nov 24, 2010 at 9:10 PM, Ethan wrote: > > I don't think watir console is maintained or really supported. > > Shoul

Re: [wtr-general] Watir Console issues

2010-11-24 Thread Ethan
I don't think watir console is maintained or really supported. I'd recommend just using normal irb and requiring watir. On Tue, Nov 23, 2010 at 12:04, enriquem wrote: > Hey Everyone, > > I try to fire up watir-console and I get the following error: > > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.7/

Re: [wtr-general] Re: Problem clicking with element_by_xpath

2010-11-10 Thread Ethan
Hi Dave, I'm continuing to improve Vapir and release new versions, and committed to doing so for the foreseeable future. On Wed, Nov 10, 2010 at 12:56, Dave McNulla wrote: > Ethan, > > You have some really good ideas in there. How committed are you to > Vapir? Just curious.

Re: [wtr-general] Re: Entering UTF8 Characters

2010-11-10 Thread Ethan
Firewatir doesn't work with UTF8. Vapir-Firefox is a much-improved fork of firewatir which fully supports UTF8 characters. See http://vapir.org/ On Wed, Nov 10, 2010 at 09:45, Richard Wijdenes wrote: > I've also ran into this problem. I've started working on my > testscripts using IE and reading

Re: [wtr-general] How to get back to the base browser window after closing the second browser instance

2010-11-08 Thread Ethan
This appears to be a frequently-encountered issue of firewatir; it cannot handle multiple browser windows. I recommend Vapir-Firefox which is a much-improved fork of Firewatir. see http://vapir.org/ for information on this library. On Mon, Nov 8, 2010 at 02:07, Pavithra wrote: > Hi, > I am testi

Re: [wtr-general] Re: Problem clicking with element_by_xpath

2010-11-05 Thread Ethan
version of ruby > I should use Vapir. If I want move to a newer version of watir, ruby > 186 is recommended? Does Vapir work with the newest versions of ruby > and watir? > > On Nov 5, 12:03 pm, Ethan wrote: > > I don't think the mingw32 ruby version (that is, the lat

Re: [wtr-general] Problem clicking with element_by_xpath

2010-11-05 Thread Ethan
I don't think the mingw32 ruby version (that is, the latest one-click installers) are supported by watir; the older mswin32 ruby 1.8.6 is currently recommended. I recommend Vapir (http://vapir.org); it works on all versions of ruby since 1.8.6. On Fri, Nov 5, 2010 at 11:47, Reciprocity wrote: >

Re: [wtr-general] Error installing Watir on Ubuntu-64

2010-11-05 Thread Ethan
the watir gem is for IE on windows - you might want firewatir, or webdriver (as zeljko links to). or if I may recommend vapir-firefox, a much-improved version of firewatir (http://vapir.org/) On Fri, Nov 5, 2010 at 09:44, Francisco Diaz Trepat - gmail < francisco.diaztre...@gmail.com> wrote: > An

Re: [wtr-general] Re: A JQuery solution for typing in textfields. What else should I be trying?

2010-11-03 Thread Ethan
me events. this should be fixed in watir as it is in vapir; no alternative to #set is needed. the method #value= bypasses this as a faster alternative. On Wed, Nov 3, 2010 at 13:38, Chuck van der Linden wrote: > Ethan, > > I'd love to see something like that make it into Watir as an

Re: [wtr-general] A JQuery solution for typing in textfields. What else should I be trying?

2010-11-03 Thread Ethan
ound keystrokes, and have found this to be a much more reliable solution which works regardless of what javascript framework is in use. this is baked into the normal #set methods in vapir ( http://vapir.org ). -Ethan On Wed, Nov 3, 2010 at 12:39, Super Kevy wrote: > I'm working a JQuery bas

Re: [wtr-general] Re: Unclickable DIV in GWT project

2010-10-27 Thread Ethan
Vapir is a fork of Watir which, among many other improvements, correctly performs click actions including both the relevant events (mousedown, mouseup, and click) as well as setting correct information on the events such as mouse button, mouse position, etc. see http://vapir.org/ -Ethan 2010/10

Re: [wtr-general] Re: $browser.url method

2010-10-22 Thread Ethan
n > > On Oct 22, 2:30 pm, Ethan wrote: > > Yeah, there is a message about that issue here: > http://groups.google.com/group/watir-general/browse_thread/thread/6f9... > > It seems to be related to handling multiple windows, and firewatir's lack > of > > capability

Re: [wtr-general] Re: $browser.url method

2010-10-22 Thread Ethan
refox over firewatir, handling multiple windows works fine along with many other improvements. see http://vapir.org/ -Ethan On Fri, Oct 22, 2010 at 14:17, xguarder wrote: > Sorry, forgot to specify, it's firewatir. > > Even using irb...something simple as Firefox.new or Firefox.atta

Re: [wtr-general] $browser.url method

2010-10-22 Thread Ethan
I think I recall hearing of an issue like this with firewatir - are you using watir (ie) or firewatir? On Fri, Oct 22, 2010 at 12:08, xguarder wrote: > Hello, as of late, anything I run the $browser.url method, I keep > getting an empty string returned. I know for sure this used to work. > Any i

Re: [wtr-general] AutoITx3 works on one machine but not another for opening Excel files

2010-10-14 Thread Ethan
I don't think this has anything to do with AutoIt, or indeed Watir - the error is about excel, and looks like a WIN32OLE error. Is Excel actually installed on your automation box? I've seen this error on machines where Excel has not been installed. If that's not the issue, you'll need to include

Re: [wtr-general] Re: Difficulty typing into textfield

2010-10-13 Thread Ethan
vent when they did that :) > > Jarmo Pertman > ----- > IT does really matter - http://www.itreallymatters.net > > > On Oct 11, 9:31 pm, Ethan wrote: > > your onfocus event seems to do some interesting stuff. > > > > > onfocus="jQuery('#mockPasswo

Re: [wtr-general] Re: Manipulate Keystrokes on a MAC

2010-10-13 Thread Ethan
Vapir-Firefox has an API for interacting with javascript popups. See http://vapir.org/ and the modal dialogs wiki page: http://wiki.github.com/vapir/vapir/modal-dialogs -Ethan On Wed, Oct 13, 2010 at 13:55, CJ Romberger wrote: > Ozzi, you're using this on your Mac? What browser env

Re: [wtr-general] Re: Difficulty typing into textfield

2010-10-11 Thread Ethan
your onfocus event seems to do some interesting stuff. onfocus="jQuery('#mockPassword').hide();jQuery('#password').show();jQuery('#password').focus();" basically, you're not going to be able to type into the mockPassword field because when you focus it, it hides itself and gives you another field

Re: [wtr-general] Re: Manipulate Keystrokes on a MAC

2010-10-07 Thread Ethan
o. > > In fact I appreciate Ozzi's eagerness to find a solution by posting > the problem in different terms to make it more understandable by more > users, therefore increasing his (and others) chance to find a > solution. > > Come on guys, someone must have a solution out there

Re: [wtr-general] Re: Manipulate Keystrokes on a MAC

2010-10-07 Thread Ethan
uestion a bit better?... > > After all this is a forum where people help each other out... > > On Oct 7, 4:42 pm, Ethan wrote: > > stop sending the same question to the list over and over. > > > > > > > > On Thu, Oct 7, 2010 at 10:05, Ozzi wrote: > &g

Re: [wtr-general] Manipulate Keystrokes on a MAC

2010-10-07 Thread Ethan
stop sending the same question to the list over and over. On Thu, Oct 7, 2010 at 10:05, Ozzi wrote: > Hi Guys, > > If anyone knows how to manipulate keystrokes on a MAC I would be > really grateful if you can tell me how to do this. > I need to hit the ENTER and TAB keys on the keyboard. > > I k

Re: [wtr-general] Could not attach with UAC turned on

2010-10-06 Thread Ethan
Run ruby as administrator, or turn off "protected mode" in IE. On Wed, Oct 6, 2010 at 06:28, Ashok Prabhu wrote: > I have been facing the issue of not being able to attach to a ie 8 > window using the title in windows 2008 with UAC turned on. I m able to > attach to the window using title with U

Re: [wtr-general] Question on Sendkeys & XPATH

2010-10-05 Thread Ethan
1) send_keys isn't going to work with two things trying to send_keys simultaneously. 2) send_keys is almost never a good solution, in my experience, doing through the dom via watir's api is better. 3) your xpath refers to an image with class of CreateRequestComboContainerRightImageCell but the thin

Re: [wtr-general] Registering the Watir autoit .dll control without local admin?

2010-10-05 Thread Ethan
Vapir has a good api for popup handling whose only external dependency is FFI. http://vapir.org/ http://github.com/vapir/vapir/wiki/modal-dialogs On Tue, Oct 5, 2010 at 06:14, Alister Scott wrote: > Hi, > > I was wondering if anyone knows how to get Watir to work with dialog > boxes without bein

Re: [wtr-general] Object Repository gem

2010-10-04 Thread Ethan
Interesting, but.. what is it? What does it do, why is it useful? On Sun, Oct 3, 2010 at 04:58, Ivan Kabluchkov wrote: > Hi Watir community! > > I've created gem which can work with object repository. > > For more information see http://github.com/lfidnl/watir-or/wiki > > I you have any quetion

Re: [wtr-general] for editbox Fire_event("onclick") does not work in Firefox while working fine in IE

2010-09-19 Thread Ethan
"it doesn't work" is not a useful question, and unlikely to get a useful response. describe what is happening (compared to what should be happening), include code, include error messages, include a minimum needed to reproduce. On Sun, Sep 19, 2010 at 22:32, Rajiv Nanduani wrote: > > Hi All, > > I

Re: [wtr-general] The problem about UTF-8

2010-09-10 Thread Ethan
Firewatir does not support utf-8. Vapir-Firefox does, I recommend trying it. http://vapir.org/ On Fri, Sep 10, 2010 at 10:01, Keith Hughes wrote: > I tried your script and got a problem with the format of the text entered > in firefox. However it worked fine in Internet Explorer. Could this be a

Re: [wtr-general] Re: Watir on Ruby 1.9.2

2010-09-09 Thread Ethan
This is a win32-api gem issue. See the below link on how to solve it: http://groups.google.com/group/vapir/msg/10a07844050c9bd2 -Ethan On Thu, Sep 9, 2010 at 17:55, Jason wrote: > You say that, although I get the exact same error message somewhere in > the win32-api: > > require

Re: [wtr-general] Re: Watir on Ruby 1.9.2

2010-09-09 Thread Ethan
True. I think no_wait stuff is still broken on 1.8.7, but not sure. I don't recall there being anything else that doesn't work (but I haven't tested). On Thu, Sep 9, 2010 at 10:41, Jarmo Pertman wrote: > Also, rails 3 works on 1.8.7. > > 1.9.2 is not absolutely necessary :) > > Jarmo > > On Sep

Re: [wtr-general] Watir on Ruby 1.9.2

2010-09-09 Thread Ethan
Vapir does work on 1.9.2. On Thu, Sep 9, 2010 at 07:26, Željko Filipin wrote: > On Thu, Sep 9, 2010 at 6:18 AM, Jason wrote: > > I'm in a slight quandry where Rails3.0 requires ruby 1.9.2, but Watir > > only appears to run on 1.8.6 > > Until Watir supports Ruby 1.9, there are two solutions (neit

Re: [wtr-general] HTML element order different in IE8 from IE7

2010-09-03 Thread Ethan
There are several problems here. - The attributes of an html object aren't meant to be in any particular order; them changing is not really a bug. - Using a regexp to parse html is a fundamentally broken idea. - Why are you passing a third argument to #radio at all if you are just getting that val

Re: [wtr-general] Firewatir attach method doesn't work properly

2010-09-02 Thread Ethan
fixing vapir-firefox for 3.0.* is buried on my backlog, I'm afraid, and it will be some time before I am able to get to that. On Thu, Sep 2, 2010 at 14:27, Amit wrote: > Hi Ethan, > > I used VAPIR 1.7.1 for attaching two browsers. Now i'm able to work on two > instance on

Re: [wtr-general] Re: [Wtr-development] new window automation library: WinWindow

2010-09-02 Thread Ethan
> > It's great that it is nicely documented :) Thank you. I tried hard to make sure everything had a useful description for the rdoc. > From a developer's view i don't like that (almost) all the code is in > one file with 1365 lines. Why? > I could stand to split this up, that is very true. It

[wtr-general] new window automation library: WinWindow

2010-09-01 Thread Ethan
popup is gone. tl;dr version: to click on a button on ie's popup with text button_text (trying for n seconds), you can use WinWindow.new(ie.hwnd).enabled_popup.click_child_button_try_for!(button_text, n) I hope you'll give it a try and let me know what you think. -Ethan -- Before post

Re: [wtr-general] Watir Search

2010-08-27 Thread Ethan
I agree that it is a useful tool. I think that it would be a good link to have in the mailing list footer, where we currently have: Before posting, please read http://watir.com/support. In short: search before you ask, be nice. Though it is already prominently featured on that link, so maybe one

Re: [wtr-general] Re: More than one condition

2010-08-26 Thread Ethan
True. In fact I believe watir even has unit tests to make sure it works with multiple identical IDs despite that being quite invalid html. On Thu, Aug 26, 2010 at 04:50, Željko Filipin wrote: > On Wed, Aug 25, 2010 at 7:10 PM, Chuck van der Linden > wrote: > > Watir presumes valid html > > I th

Re: [wtr-general] Re: More than one condition

2010-08-25 Thread Ethan
Tricky. I would get all the links that match what you want, and then reject any of them that are inside the table. The following entirely untested code may work, or at least give you some ideas - note that it'll only work in IE due to its reliance on unique_number; if you want to use firewatir, I

Re: [wtr-general] Jssh for Firefox 4.0 beta3

2010-08-25 Thread Ethan
There are a number of other plugins which do basically the same thing a jssh, which I found researching alternatives. I never got around to doing anything with any of them, but I think it's a good time for jssh to die, compiling it for every version on every platform is a huge pain. not that I kno

Re: [wtr-general] Re: Exception when clicking on items from the 'images' collection

2010-08-24 Thread Ethan
rms a fade-out, and on fade-out the > redirection is done via this I believe: > > location.href = onhref; > > And its not over: that request will be answered with this: > HTTP/1.1 302 Found > [] > Location: > > I'm a bit at loss here. > > On Aug 24,

Re: [wtr-general] ruby 1.9.2-p0

2010-08-24 Thread Ethan
As far as I know watir only works on windows with 1.8.6p111. Vapir (fork of watir) works with all current ruby versions from 1.8.6 onward, including 1.9.2 - http://vapir.org/ On Tue, Aug 24, 2010 at 17:20, lawcab wrote: > Has anyone tried watir 1.6.5 with ruby 1.9.2-p0? > > I got this big error

Re: [wtr-general] Exception when clicking on items from the 'images' collection

2010-08-24 Thread Ethan
Looks like a Firewatir bug. I recommend Vapir-Firefox over firewatir, it is forked from firewatir and has mostly the same API, but fixes many bugs and improves a lot of functionality. see http://vapir.org/ On Tue, Aug 24, 2010 at 13:45, balexis wrote: > Hello, > I want to write a script that cl

Re: [wtr-general] Test if frame exists to avoid locate error (source code)

2010-08-20 Thread Ethan
how is this any different than ie.frame(:name, "mainFrame").exists? On Fri, Aug 20, 2010 at 04:43, pierrelebai...@gmail.com < pierrelebai...@gmail.com> wrote: > Hi, > > I write a little procedure to test if a frame exists before access a > object and have an error by locate method if the frames

Re: [wtr-general] Re: unable to find element using xpath

2010-08-19 Thread Ethan
y >> thanks, >> goutham >> >> On Thu, Aug 19, 2010 at 9:01 PM, goutham mandadi < >> goutham.mand...@gmail.com> wrote: >> >>> hai ethan thanks a lot its working now i used :href inside area bt when >>> using :xpath i am getting the

Re: [wtr-general] Re: unable to find element using xpath

2010-08-18 Thread Ethan
I don't think that you should be using element_by_xpath at all. It does not return a Watir::Element. You should use a normal element accessor with the :xpath specifier: ie.area(:xpath, "//whatever/").click On Wed, Aug 18, 2010 at 13:18, goutham mandadi wrote: > > Hai charley, > > I ahev installe

Re: [wtr-general] Re: undefined method `element_by_xpath' for # (NoMethodError)

2010-08-18 Thread Ethan
Mandadi, You need to share the code you are using, and if html is required to demonstrate an error, preferably a minimal snippet of html (do not paste several thousand lines of html into your email as some people have done). see the guidelines: http://wiki.openqa.org/display/WTR/Support On Wed, Au

Re: [wtr-general] Where does watir stores object properties

2010-08-16 Thread Ethan
27;t lose refrence of previous window? > > > > 2010/8/12 Ethan > >> Firewatir saves things in javascript variables, and reuses the same >> variables, so when you attach to a new window, it reuses the same variables >> as it does for the old window and you lose refer

Re: [wtr-general] Firewatir attach method doesn't work properly

2010-08-15 Thread Ethan
Vapir is currently broken on 3.0.*. A fix is coming, but I have a number of other higher-priority issues to fix first. You can upgrade to 3.5 or 3.6, or wait until I can get 3.0 support working. On Thu, Aug 12, 2010 at 11:50, Amit wrote: > its 3.06 > > > On Thu, Aug 12, 2010 at 8:

Re: [wtr-general] Undefined method `contains_text' using Watir-webdrive

2010-08-13 Thread Ethan
contains_text is deprecated and omitted from watir-webdriver. see http://github.com/jarib/watir-webdriver/issues/closed#issue/7 On Fri, Aug 13, 2010 at 23:43, Chan Nguyen wrote: > Hi everyone, > When I used watir with IE under Windows, everything worked fine. But > when I tried with FF under Lin

Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Ethan
There is good documentation (including examples) to be found. http://www.google.com/cse?cx=007267089725385613265:gmydx5gtw6u&q=frame On Thu, Aug 12, 2010 at 19:34, Chan Nguyen wrote: > Hi Ethan, > > Can you show me an example, I saw a Frame in Firebug. I couldn't copy the

Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Ethan
deep nesting with most elements is no issue, but there is some mention of a frame there. if it's inside a frame, then you'll need to access the frame first, then the checkbox in the frame. On Thu, Aug 12, 2010 at 18:42, Chan Nguyen wrote: > This is what I copied when using TestWise Recorder : >

Re: [wtr-general] Firewatir attach method doesn't work properly

2010-08-12 Thread Ethan
What version of firefox are you using? On Thu, Aug 12, 2010 at 06:17, Amit wrote: > Hi Ethan, > > I tried below code: > > require 'watir-vapir' > > ff = Vapir::Firefox.new > ff.start("www.google.com") > > > > After executing above code, A

Re: [wtr-general] Re: Watir script editor

2010-08-12 Thread Ethan
I recommend notepad++ http://notepad-plus-plus.org/ actually, I recommend trying a few and seeing what you like best because, as evidenced by this thread, what any particular person wants out of an editor varies widely. On Thu, Aug 12, 2010 at 03:50, Željko Filipin wrote: > On Thu, Aug 12, 2010

Re: [wtr-general] Where does watir stores object properties

2010-08-12 Thread Ethan
Firewatir saves things in javascript variables, and reuses the same variables, so when you attach to a new window, it reuses the same variables as it does for the old window and you lose references to that window. On Thu, Aug 12, 2010 at 10:36, Amit wrote: > Hi Željko, > > Actually, i was checki

Re: [wtr-general] Firewatir attach method doesn't work properly

2010-08-11 Thread Ethan
, you can do so using the "watir-vapir" require - see http://wiki.github.com/vapir/vapir/coming-from-watir for more information. On Wed, Aug 11, 2010 at 07:50, Amit wrote: > Hi Ethan, > > Can you please explain how can i integrate Vapir in my Watir framework? I > just want to

Re: [wtr-general] Re: Watir on Windows, how is it done anymore?

2010-08-09 Thread Ethan
My understanding was that the issue with quoting system arguments (which is a ruby bug on everything since 1.8.6p111) came up with the mingw32 releases for launching things in a new ruby process, which watir does for click_no_wait and other no_wait stuff. Did you test no_wait stuff? On Mon, Aug 9

Re: [wtr-general] Re: Watir on Windows, how is it done anymore?

2010-08-08 Thread Ethan
ve already made to watir - just recreating them to not rely on different improvements I have made, because nobody has time or inclination to review those improvements. So, for the moment, if people want the improvements that I have made and am continuing to make, I recommend trying out Vapir. -Etha

Re: [wtr-general] Curious browser behavior: Firefox browser won't close on some pages but will everywhere else

2010-08-03 Thread Ethan
It is true that Vapir does not have this bug. On Tue, Aug 3, 2010 at 15:01, Basim Baassiri wrote: > HI Schase, > > I had the same problem (method wasn't returning the named windows which > causes the exception) and I switched to vapir which solved my problem > > Not much of a suggestion but it i

Re: [wtr-general] Firewatir attach method doesn't work properly

2010-08-02 Thread Ethan
at 02:06, Amit Kumar wrote: > Hi Ethan, > > My whole framework has been written in Watir.. So, at this point i can't > use Vapir. > > Guys, is there any other solution to attach multiple browser at a time? > > Thank You > > > > > > On Mon, Jul 26, 201

Re: [wtr-general] Re: UTF8 encode in FireWatir under Mac

2010-08-02 Thread Ethan
exception so if it will not be found than it proceedes..but > in Vapir..it throws an exception that modal was not found. Any advice > of omitting this behavior? > > Sorry for so many questions :) > > Br, > GS > > On Jul 27, 9:58 am, gs wrote: > > Hi, > > >

Re: [wtr-general] Re: UTF8 encode in FireWatir under Mac

2010-08-02 Thread Ethan
on updating Vapir: I regularly incorporate any improvements made to Firewatir into Vapir-Firefox, and likewise with the IE version. FireWatir doesn't seem to get much activity, though, codewise these days. On Tue, Jul 27, 2010 at 03:58, gs wrote: > Hi, > > Thanks Ethan... It work

Re: [wtr-general] Firewatir attach method doesn't work properly

2010-07-26 Thread Ethan
I'd recommend Vapir-Firefox, which is a fork of FireWatir which I have updated and improved a lot. See the site for Vapir at http://vapir.org/ -Ethan On Mon, Jul 26, 2010 at 07:07, Amit Kumar wrote: > Hi All! > > I'm using Firewatir 1.6.5 > I want to test an web applicati

Re: [wtr-general] Re: UTF8 encode in FireWatir under Mac

2010-07-26 Thread Ethan
I've added a wiki page for this at: http://wiki.github.com/vapir/vapir/getting-started On Mon, Jul 26, 2010 at 05:46, gs wrote: > Hi Ethan, > > Could you provide me with script example how to user vapir? > > As I have installed it (vapir-common, vapir-firefox) and how t

Re: [wtr-general] UTF8 encode in FireWatir under Mac

2010-07-23 Thread Ethan
This is fixed in Vapir-Firefox, an improved fork of firewatir - see the page for that project at http://vapir.org/ and its wiki at http://wiki.github.com/vapir/vapir/ On Fri, Jul 23, 2010 at 11:23, gs wrote: > Hi, > > I am using Firewatir under Mac > > I've faced an issue with clicking on link:

Re: [wtr-general] Fwd: How to automate a scrollbar

2010-07-21 Thread Ethan
I don't think you need javascript events - just set the scrollTop property of the dom. assuming this is a scrollable div in a variable 'div' in ruby, something like div.ole_object.scrollTop = div.ole_object.scrollHeight On Wed, Jul 21, 2010 at 11:58, Basim Baassiri wrote: > Padma > > Perhaps a

Re: [wtr-general] Calling external javascript function from cell tag attribute

2010-07-20 Thread Ethan
the GetResultForPage function will be defined on the window object, not the document. I'm not sure if that js_eval will work, though, as I'm not sure how you refer to the window in firewatir. I recommend Vapir-Firefox, an updated fork of Firewatir. it will fire the correct javascript events when y

Re: [wtr-general] How to get the original html source code via FireWatir

2010-07-19 Thread Ethan
FireWatir has no outer_html method. I recommend Vapir-Firefox, a much-improved fork of FireWatir; it supports outer html. See the site at http://vapir.org/ and the wiki at http://wiki.github.com/vapir/vapir/ -Ethan On Mon, Jul 19, 2010 at 03:27, Will C wrote: > > > I have a quest

Re: [wtr-general] Firewatir Doesn't Wait when Page is Cached

2010-07-16 Thread Ethan
I've fixed a lot of Firewatir issues in my fork, Vapir-Firefox. I think I have improved the #wait method to work more reliably. You can give vapir a try; for more information see http://vapir.org/ and see the wiki at http://wiki.github.com/vapir/vapir/ -Ethan On Fri, Jul 16, 2010 at

Re: [wtr-general] NoMethodError: undefined method `>' for nil:NilClass when closing base browser on new window pop-up

2010-07-14 Thread Ethan
It does look like a bug in firewatir. You can open a ticket and wait for it to be fixed, maybe. You can try Vapir-Firefox, which is my much-improved fork of firewatir - see http://vapir.org/ and the wiki at http://wiki.github.com/vapir/vapir/ There's also watir-webdriver, which may be worth a try.

Re: [wtr-general] Entering International (UTF-8) text into text fields with WATIR on Firefox

2010-07-13 Thread Ethan
acter, but the end result is the same - correct unicode entered. That issue is already fixed in the code, and will be in the next release. -Ethan On Tue, Jul 13, 2010 at 07:30, Gudata wrote: > I have a problem when I am trying to enter UTF-8 international > character text into Firefox 3.

Re: [wtr-general] Watir on Windows, how is it done anymore?

2010-07-12 Thread Ethan
It's compatible with IE on windows, and Firefox on basically any operating system that runs both firefox and ruby. More info at: http://wiki.github.com/vapir/vapir/versions On Mon, Jul 12, 2010 at 15:27, Nathan Lane wrote: > Thank you Ethan. Is Vapir compatible with as many browsers

Re: [wtr-general] Watir on Windows, how is it done anymore?

2010-07-12 Thread Ethan
Watir has been locked to a very old version of ruby for a long time. Vapir, an updated fork of watir, runs on any recent version of ruby. On Mon, Jul 12, 2010 at 15:18, Željko Filipin wrote: > On Monday, July 12, 2010, Nathan Lane wrote: > > from (irb):9from C

Re: [wtr-general] How to input data to the CKEDITOR?

2010-07-12 Thread Ethan
I'd never heard of ckeditor before. I've had a look at their demo: http://ckeditor.com/demo Browsing through it a bit with developer tools, basically, that looks like complete hell to automate, and I'd stay as far away from it as possible. There aren't really any normal input / control elements, i

Re: [wtr-general] Re: Issue retrieving URL for a HTML file loaded from local file system

2010-07-11 Thread Ethan
turning off Windows User Account Control settings > (which a employer may disallow), does anyone know of a means to > configure ScITE to launch the Window's console with Administrative > rights? > > Joe > > > > On Jul 10, 10:46 pm, Ethan wrote: > > Actually, on

Re: [wtr-general] Issue retrieving URL for a HTML file loaded from local file system

2010-07-10 Thread Ethan
Actually, on second thought, this looks more like a different issue. Are you running on windows vista or 7? If so, you should run ruby as administrator. On Sun, Jul 11, 2010 at 00:44, Ethan wrote: > Make sure you have checked "Allow active content to run in files on my > compute

Re: [wtr-general] Issue retrieving URL for a HTML file loaded from local file system

2010-07-10 Thread Ethan
Make sure you have checked "Allow active content to run in files on my computer". Go to 'Internet Options' (under Tools in IE) -> Advanced -> scroll down to 'Security' heading. On Sat, Jul 10, 2010 at 19:18, joedio wrote: > # > # Watir fails to get url for a file on the local file system, but no

Re: [wtr-general] Element #visible?

2010-06-16 Thread Ethan
I agree - I've brought this up on the development mailing list before. I've also changed the behavior in vapir, my fork of watir. On Wed, Jun 16, 2010 at 15:56, chandu.tennety wrote: > Hi, > > The visible? method returns false for a disabled element that is > visible on the screen. Is this valid

Re: [wtr-general] Firefox and TinyMCE

2010-06-13 Thread Ethan
firewatir's execute_script executes in the context of the very top level exposed by jssh, which is different than the top level that's available to the web page. in jssh you can control the browser itself to a much greater extent than is possible through a page (which is how firewatir works). a top

Re: [wtr-general] Firefox 3.6.3 JSSh on Linux

2010-06-08 Thread Ethan
I think it's not up there because nobody has compiled it. If you or you friend do compile it, adding it to the wiki would be appreciated. On Tue, Jun 8, 2010 at 14:49, Felipe Knorr Kuhn wrote: > Hello all, > > I'm trying to help a friend setup FireWatir under Linux and she's > using FF 3.6.3. >

Re: [wtr-general] Getting initialize': can't convert nil into String error

2010-06-08 Thread Ethan
does this have anything to do with watir? On Tue, Jun 8, 2010 at 04:18, rrash586 wrote: > Hi All, > > When i tried to to call finishReport method. > > CLReport.class.rb:170:in `initialize': can't convert nil into String > (TypeError) >from CLReport.class.rb:170:in `open' >from CL

Re: [wtr-general] Ruby Desktop App With Embedded IE Controlled By Watir?

2010-06-04 Thread Ethan
Not at all easily. There's been discussion of this before. There's some code floating around, but the code is not easy to understand. I don't know if the author would provide any support for the code; I don't think anybody else is in a position to do so. Previous discussion: http://rubyforge.org/p

Re: [wtr-general] [ANN] Win32::Screenshot 0.0.4

2010-05-27 Thread Ethan
pir-common/lib/vapir-common/win_window.rb see methods capture_to_bmp_file, capture_to_bmp_blob, and capture_to_bmp_structs. -Ethan On Thu, May 27, 2010 at 16:23, Jarmo Pertman wrote: > Hello. > > I'm thinking that here are probably some people who would like to take > screens

Re: [wtr-general] Re: 'getWindows' is not defined - FireFox on Ubuntu

2010-05-27 Thread Ethan
> 2. > Can Vapir work with other browsers that Watir supports. I'm interested > in using Chrome to make the tests run a little faster than Firefox and > far faster than IE. > > thanks, > Michael > > On May 27, 9:50 am, Ethan wrote: > > Vapir-Firefox is a more f

Re: [wtr-general] Re: 'getWindows' is not defined - FireFox on Ubuntu

2010-05-27 Thread Ethan
Vapir-Firefox is a more featureful and stable fork of Firewatir. The API is the same, with a few exceptions. You might have a look at it. Its homepage is at http://vapir.org/ On Thu, May 27, 2010 at 06:34, Liberty1776 wrote: > Update: > This seems to happen after I close one of Firefox windows.

Re: [wtr-general] Return titles/urls of all open browser instances

2010-05-19 Thread Ethan
Watir::IE.each do |b| puts b.title end On Wed, May 19, 2010 at 19:45, George wrote: > I've been searching for an answer, but no luck. > > When I click on a link, a new browser window is supposed to open. My > job is to click the link again and make sure there that a duplicate > window doesn't

Re: [wtr-general] Enabling button in FireWatir

2010-05-18 Thread Ethan
Set the 'disabled' attribute to false. I don't recall if there is an accessor for this in watir. button.disabled = false that may not work - if it doesn't, try button.ole_object.disabled = false On Tue, May 18, 2010 at 05:57, gmile wrote: > I'm trying to enable the button manually. How do I

Re: [wtr-general] Vapir

2010-05-05 Thread Ethan
try :) > > Since there are lots of changes, perhaps we could try to check which ones > are the most important to the users, easier to merge, etc, and then start > from there. What do you think, Ethan and devs? > > From my point of view, the changes I would use the most are: > &

Re: [wtr-general] Vapir

2010-05-05 Thread Ethan
On Wed, May 5, 2010 at 14:14, Felipe Knorr Kuhn wrote: > Hello, Ethan, > > Congratulations, it looks very promising :) > > Even though I understand it's a fork, what can we expect from now on? > To start with, hopefully, improved documentation. I have a backlog of featu

[wtr-general] Vapir

2010-05-05 Thread Ethan
a great deal of changes in the codebase which make it to some degree (a small degree, hopefully) incompatible. Support will be on Vapir's mailing list at http://groups.google.com/group/vapir -Ethan -- Before posting, please read http://watir.com/support. In short: search before you ask, be

Re: [wtr-general] Re: Watir Attach and Find Methods

2010-05-04 Thread Ethan
The post said IE is run as administrator. I said to run ruby as administrator. Ruby has to have at least as high an integrity as the IE to which it is trying to attach. On Mon, May 3, 2010 at 14:19, dholcombe wrote: > Running as admin doesn't solve the issue. As noted in the original > post > > *

Re: [wtr-general] Watir Attach and Find Methods

2010-04-23 Thread Ethan
Run the ruby process as administrator. You can do this by launching the parent cmd window as administrator, or, if you're using a shortcut, modifying the shortcut to launch the process as administrator. On Fri, Apr 23, 2010 at 12:07, Zach Hayes wrote: > Windows 7 > Internet Explorer 8 > Ruby 1.8

Re: [wtr-general] Running Watir in silent mode

2010-04-22 Thread Ethan
@ie.visible can be set to false, there is some sort of options interface for setting this through watir with which I'm not very familiar. However, if the remote machine is linux, you can't run IE at all. No such option exists for firefox/firewatir as far as I know. Charley may be right; celerity so

  1   2   >