[wtr-general] Watir on Ruby 1.9.1

2009-08-05 Thread Jari Bakken
Hello, I've made some progress getting Watir to run on Ruby 1.9.1 using the preview installer provided by the RubyInstaller guys ( http://rubyinstaller.org/downloads/). A recent benchmark comparing the various interpreters on Windows (

[wtr-general] Re: Watir on Ruby 1.9.1

2009-08-06 Thread Jari Bakken
On Thu, Aug 6, 2009 at 5:36 PM, Michael Hwee michael_h...@yahoo.com wrote: Good job, Jari. Does it work with Watir 1.6.1 or 1.6.2? Nope. At the moment you need my ruby191 branch from GitHub: http://github.com/jarib/watir/tree/ruby191 I'll make sure it get merged to master before the next

[wtr-general] [ANN] watirspec

2009-08-07 Thread Jari Bakken
I've factored out the bulk of Celerity's rspec suite to a separate project, available on GitHub at http://github.com/jarib/watirspec/tree/master The idea is to allow other implementations to use the repository as a git submodule in their projects. See the README for details. The project

[wtr-general] Re: Watir on Ruby 1.9.1

2009-08-09 Thread Jari Bakken
On Fri, Aug 7, 2009 at 2:18 AM, Jari Bakkenjari.bak...@gmail.com wrote: At the moment you need my ruby191 branch from GitHub: http://github.com/jarib/watir/tree/ruby191 I'll make sure it get merged to master before the next release of Watir - if no one has any objections. I've pushed the 1.9

[wtr-general] Re: RDoc files on rubyforge need to be updated

2009-08-10 Thread Jari Bakken
On Mon, Aug 10, 2009 at 4:46 PM, Bret Pettichordbpettich...@gmail.com wrote: They are updated to 1.6.2. Why do you say they aren't updated? Bret As a side note, It's pretty easy to get docs auto-generated on GitHub: http://docs.github.com/ http://rdoc.info/

[wtr-general] Re: :index = 0 with firewatir

2009-08-14 Thread Jari Bakken
On Fri, Aug 14, 2009 at 5:49 PM, Michael Hweemichael_h...@yahoo.com wrote: : index= 0 is not the last item. Well, that depends on how the 1-indexed Watir collections are implemented. :) The best solution for getting the last item in this case is: browser.links.select { |l| l.text ==

[wtr-general] Re: :index = 0 with firewatir

2009-08-15 Thread Jari Bakken
On Sat, Aug 15, 2009 at 8:06 AM, Michael Hweemichael_h...@yahoo.com wrote: I would rather use browser.links.length This is already 1-based. Yep, only problem is that he wants to filter by text. --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] [ANN] celerity 0.0.7 released

2009-09-03 Thread Jari Bakken
This release includes HtmlUnit 2.6 (released 2009-09-03). From now on, bleeding edge gems will be available on GitHub as jarib-celerity (using SNAPSHOT jars from HtmlUnit), and we'll only push to Rubyforge when an official minor point release of HtmlUnit is made available. Enjoy!

[wtr-general] Re: What is the current support level for Ruby in Watir?

2009-09-18 Thread Jari Bakken
On Thu, Sep 17, 2009 at 6:51 PM, karim rayani karim@gmail.com wrote: still i was unable to use Ruby 1.9.1 on windows that comfortably. I guess Watir with Ruby 1.9.1 might be on the way once we have a stable One click installer for Window, the highest priority for the ruby community right

[wtr-general] Re: adding utf-8 character to text fields

2009-10-01 Thread Jari Bakken
On Thu, Oct 1, 2009 at 4:42 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 1, 2009 at 4:30 PM, Loft_Tester aaronr...@gmail.com wrote: I do not see it appear in examples. Fixed. Actually, UTF-8 is the default in Watir since this commit:

[wtr-general] Re: adding utf-8 character to text fields

2009-10-03 Thread Jari Bakken
Jari, can you please update the page? I am not sure what to do. Željko I've updated the page with an example of how to revert to the old behaviour. Since I'm not sure what version number the next Watir version (which includes the switch to UTF-8) will have, I just put 1.X.X there for now.

[wtr-general] Re: Platforms

2009-10-05 Thread Jari Bakken
On Mon, Oct 5, 2009 at 6:48 PM, Charley Baker charley.ba...@gmail.com wrote: Watir in the github master should be working with 1.9.1. Jari made some fixes, so for Watir we should be good. Yep, both Watir and FireWatir test suites were passing (on the 1.9.1 preview from the RubyInstaller guys)

[wtr-general] Re: Working with gwt Tables

2009-10-23 Thread Jari Bakken
On Fri, Oct 23, 2009 at 9:05 PM, Dave McNulla mcnu...@gmail.com wrote: Does anybody have sample code for working with gwt Tables? I can figure out some basic stuff, but the rows in the table are really divs that have a one row table in them. It's difficult to work with the table to identify

[wtr-general] Re: Answering incomplete requests

2009-10-25 Thread Jari Bakken
On Fri, Oct 23, 2009 at 10:01 PM, Ethan notet...@gmail.com wrote: Perhaps a wiki page on what information is needed from people in order for them to get help - the initial response could just be a link to that page, and if they don't reply with information that generally conforms to what is

[wtr-general] Re: Working on Chrome watir

2009-11-07 Thread Jari Bakken
On Sat, Nov 7, 2009 at 12:14 PM, aidy lewis aidy.le...@googlemail.com wrote: Sai, Jarib, Would it not be an idea to put Chrome and Firewatir on top of WebDriver, to avoid duplication of browser access methods with all that entails? Aidy Indeed - as soon as we have an implementation of

Re: [wtr-general] select_item_in_select_list no longer working as expected

2009-11-29 Thread Jari Bakken
On Mon, Nov 23, 2009 at 9:52 PM, James jgcpal...@gmail.com wrote: What's going on?  Did something change with this method?  Is there something I need to change in my code so that it can select items in a select list based on index? You should be able to do select_list.option(:index,

Re: [wtr-general] Linux Firefox/JSSH issue

2010-01-15 Thread Jari Bakken
On Fri, Jan 15, 2010 at 9:10 PM, Aedorn Varanis aed...@gmail.com wrote: Is there a way to click javascript popup window buttons? I see no click_no_wait command, or a startClicker like in FireWatir. If there's a way to do that then I can pretty much just use this driver. For watir-webdriver,

Re: [wtr-general] Re: Problem starting watir in Ubuntu, Firefox 3, Ruby 1.8.7

2010-02-07 Thread Jari Bakken
On Sat, Feb 6, 2010 at 4:53 AM, parkurm park...@gmail.com wrote: I tried to use your recommended gem, but had the problem: superclass mismatch for class UnknownObjectException /usr/lib/ruby/gems/1.8/gems/watir-webdriver-0.0.1.dev5/lib/watir- webdriver/exception.rb:8

Re: [wtr-general] pixel tracking with Celerity

2010-05-27 Thread Jari Bakken
Hi David, On Thu, May 27, 2010 at 7:26 AM, David Beckwith thirdreplica...@gmail.com wrote: Is it possible to monitor asynchronous calls to other servers?  For example, I want to test to make sure our API is being properly implemented on a partner site: 'notify' signals are to be sent to my

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

2010-06-06 Thread Jari Bakken
On Sat, Jun 5, 2010 at 6:19 AM, dchuk darrindemc...@gmail.com wrote: Does anyone know if this is possible? The desktop app will be coded in QtRuby and will only be Windows based. Thanks in advance. If I were you, I'd look into using the browser component in Qt itself (QtWebKit). It might not

Re: [wtr-general] Re: selenium-webdriver snow leopard issur

2010-07-19 Thread Jari Bakken
On Mon, Jul 19, 2010 at 5:11 PM, Chuck van der Linden sqa...@gmail.com wrote: Your odds of getting a good answer to why you can't compile that gem would be a lot higher if you asked them in a Selenium oriented group And even higher if you ask the creators of the gem:

Re: [wtr-general] Re: Differences between Watir, FireWatir, Webdriver ?

2010-08-15 Thread Jari Bakken
On Sat, Aug 14, 2010 at 5:33 PM, Chan Nguyen atbl1...@gmail.com wrote: 1) var/lib/gems/1.8/gems/watir-webdriver-0.0.6/lib/watir-webdriver/ base_element.rb:186:in `text': undefined method `text' for #Selenium::WebDriver::Driver:0x..fb746f854 browser=:firefox (NoMethodError) This is a known

Re: [wtr-general] How to Click on ENTER keystroke in Watir-WebDriver

2010-09-09 Thread Jari Bakken
Following up on your questions from the selenium tracker: how can i see or tell if the window is created in Javascript? You'll have to either (1) read up on how JavaScript dialogs work, and look through the page's source/scripts or (2) ask a developer. It would be useful to know how it was

Re: [wtr-general] Re: How to Click on ENTER keystroke in Watir-WebDriver

2010-09-10 Thread Jari Bakken
On Fri, Sep 10, 2010 at 3:22 PM, Usman Hussain usmanhhuss...@gmail.com wrote: I tried re-installing autoit by going to: C:\ruby\lib\ruby\gems\1.8\gems\watir-webdriver\lib\watir-webdriver from the command line and then typing in: regsvr32 AutoItX3.dll but i get an error message. The AutoIt

Re: [wtr-general] Re: How to Click on ENTER keystroke in Watir-WebDriver

2010-09-10 Thread Jari Bakken
On Fri, Sep 10, 2010 at 4:31 PM, Usman Hussain usmanhhuss...@gmail.com wrote: Its a Javascript window... Its a pop up box with only an OK button... How was it created? If it's through prompt(), confirm() or alert(), then Željko's first link should work for you. -- Before posting, please read

Re: [wtr-general] Re: How to Click on ENTER keystroke in Watir-WebDriver

2010-09-13 Thread Jari Bakken
On Mon, Sep 13, 2010 at 9:46 AM, Usman Hussain usmanhhuss...@gmail.com wrote: I tried the first link but the error im getting is: no such file to load -- watir-webdriver/extensions/alerts (LoadError) It's not in a released version yet. On Stack Overflow, right before the example, it says

Re: [wtr-general] Close All browser function

2010-09-14 Thread Jari Bakken
On Tue, Sep 14, 2010 at 11:33 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Sep 14, 2010 at 11:28 AM, Usman Hussain usmanhhuss...@gmail.com wrote:  undefined method `close_all' for #Watir::Browser:0x3dcb1b0 My guess is that close_all method in not implemented in

Re: [wtr-general] Re: Speed: IE vs FF

2010-09-18 Thread Jari Bakken
On Sat, Sep 18, 2010 at 4:04 PM, marc marcbe...@gmail.com wrote: I've notice recently that my tests in IE were running a lot slower than Firefox using watir-webdriver. I was able to track it down to verifying text on a page. For example: verify(browser.div(:id=some_div).text.include?(some

Re: [wtr-general] Attach method not working with Watir-WebDriver

2010-09-23 Thread Jari Bakken
On Thu, Sep 23, 2010 at 3:30 PM, Usman Hussain usmanhhuss...@gmail.com wrote: Hi Guys im trying to access a pop up within firefox and i thought id try the Attach method. Does anyone know if this is packaged in watir-webdriver? the error im getting when runningmy script is:     undefined

Re: [wtr-general] Using AppleScript with Firefox using Watir-Wbedriver HELP!!!

2010-10-06 Thread Jari Bakken
What kind of popup? If it was created in JS (i.e. using alert(), confirm() or prompt()), watir-webdriver has an optional require for dealing with these: require watir-webdriver/extensions/alerts Den 6. okt. 2010 kl. 11:28 skrev Ozzi usmanhhuss...@gmail.com: Hi Guys, Im using Watir-WebDriver

Re: [wtr-general] Re: Using AppleScript with Firefox using Watir-Wbedriver HELP!!!

2010-10-06 Thread Jari Bakken
On Wed, Oct 6, 2010 at 12:52 PM, Ozzi usmanhhuss...@gmail.com wrote: Hi Jari, I tried the alert solution after find this on the net: http://stackoverflow.com/questions/3652582/alert-box-in-waitr-webdriver but when i run my script i keep getting the following error: no such file to load --

Re: [wtr-general] Re: Using AppleScript with Firefox using Watir-Wbedriver HELP!!!

2010-10-06 Thread Jari Bakken
On Wed, Oct 6, 2010 at 1:11 PM, Ozzi usmanhhuss...@gmail.com wrote: ahhh cool. brilliant... if you can let me know once this is done that would be brilliant... Done, just released 0.1.0. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

Re: [wtr-general] Re: Using AppleScript with Firefox using Watir-Wbedriver HELP!!!

2010-10-06 Thread Jari Bakken
failing would you know why? kind regards, usman hussain On Oct 6, 12:37 pm, Jari Bakken jari.bak...@gmail.com wrote: On Wed, Oct 6, 2010 at 1:11 PM, Ozzi usmanhhuss...@gmail.com wrote: ahhh cool. brilliant... if you can let me know once this is done that would be brilliant... Done, just

Re: [wtr-general] Re: Using AppleScript with Firefox using Watir-Wbedriver HELP!!!

2010-10-06 Thread Jari Bakken
. Up to date docs for the current master can always be found here: http://rdoc.info/github/jarib/watir-webdriver/master/frames kind regards, Usman Hussain On Oct 6, 2:53 pm, Jari Bakken jari.bak...@gmail.com wrote: Browser#cell has been removed, as part of cleaning up the table API. Instead

Re: [wtr-general] Re: Using AppleScript with Firefox using Watir-Wbedriver HELP!!!

2010-10-06 Thread Jari Bakken
:( kind regards, usman hussain On Oct 6, 3:07 pm, Jari Bakken jari.bak...@gmail.com wrote: On Wed, Oct 6, 2010 at 4:03 PM, Ozzi usmanhhuss...@gmail.com wrote: ahhh cool... it works. changed it now with the new API... is the link you provided always going to be location of where the api

Re: [wtr-general] superclass mismatch for class UnknownObjectException

2010-10-08 Thread Jari Bakken
On Sat, Oct 9, 2010 at 1:13 AM, CJ cjr...@gmail.com wrote: // BEGIN CODE require 'rubygems' require 'watir-webdriver' # the Watir controller require 'firewatir' watir-webdriver is an alternative to watir/firewatir - you can not require both libraries at the same time. -- Before posting,

Re: [wtr-general] Watir::Exception::ObjectReadOnlyException after update selenium-webdriver and watir-webdriver

2010-10-13 Thread Jari Bakken
On Wed, Oct 13, 2010 at 10:43 AM, grzegorz.smaj...@gmail.com grzegorz.smaj...@gmail.com wrote: Hi, I have updated recently watir-webdriver to 0.1.1 and selenium- webdriver to 0.0.29 and all my test failed on textboxes with: Watir::Exception::ObjectReadOnlyException It was not such a case

Re: [wtr-general] watir-webdriver fire_event('onmouseover') failing in IE

2010-11-05 Thread Jari Bakken
On Sat, Nov 6, 2010 at 1:41 AM, Michael mmcwill...@gmail.com wrote: Selenium::WebDriver::Error::UnexpectedJavascriptError: Cannot execute script (17) You're probably running into this known bug in the IE driver: http://code.google.com/p/selenium/issues/detail?id=849 (comment 5 has a failing

Re: [wtr-general] Need help on how to locate how many tags are in the select_list

2010-11-08 Thread Jari Bakken
On Mon, Nov 8, 2010 at 4:03 PM, Usman Hussain usmanhhuss...@gmail.com wrote: there are two things i need to happen here. The last option tag was added by myself. so i need to find out how many options tags there are so that i can move my new option to the top of the list. Check out the docs

Re: [wtr-general] watir-webdriver fire_event('onmouseover') failing in IE

2010-11-08 Thread Jari Bakken
On Mon, Nov 8, 2010 at 6:35 PM, Michael mmcwill...@gmail.com wrote: Yes, it does look related to that. Is there an updated build of the dll anywhere for download instead of recompiling myself with that fix in there. It still hasn't made it into a release. It's not fixed yet - the bug is still

Re: [wtr-general] Undefined Method `set' for #Watir::Input:0x102204a38 (NoMethodError)

2010-11-09 Thread Jari Bakken
Don't use element_by_xpath. If you want a text field, pass the xpath to Browser#text_field: browser.text_field(:xpath, /your/xpath).set(foo) Again, reading the docs would show you on what elements the #set method is defined (e.g. not on Watir::Input). On Tue, Nov 9, 2010 at 5:04 PM, Usman

Re: [wtr-general] How to configure rake task to run my tests on IE and firefox without specifying in the test code itself

2010-11-15 Thread Jari Bakken
Simple solution - use an environment variable: browser = Watir::Browser.new((ENV['BROWSER'] || :firefox).to_sym) On Mon, Nov 15, 2010 at 4:59 PM, Gazi gazieba...@gmail.com wrote: Hi, I am having some watir tests like below require 'rubygems' require 'watir-webdriver' require

Re: [wtr-general] Quick Question searching for text with ' in it

2010-11-18 Thread Jari Bakken
On Thu, Nov 18, 2010 at 2:56 PM, Usman Hussain usmanhhuss...@gmail.com wrote: Hi Guys, really quick question, Im using watir-webdriver on a MAC. my code is: @browser.link(:text, Mystic Meg's Wheel of Destiny).should exist But im getting an error saying: The expression is not a legal

Re: [wtr-general] Re: Quick Question searching for text with ' in it

2010-11-18 Thread Jari Bakken
On Thu, Nov 18, 2010 at 3:10 PM, Usman Hussain usmanhhuss...@gmail.com wrote: yeah it is a funny one, Its also the same if i am searching for text which has ! within the text as well. same error message. I've fixed the single quote issue and released 0.1.3. I tried with an exlamantion point

Re: [wtr-general] Handle Security warining

2010-11-19 Thread Jari Bakken
On Thu, Nov 18, 2010 at 10:13 PM, Litha K litha...@googlemail.com wrote: I am using watir-webdriver on a linux box and in one of my make payment flows I am getting a security warning with 'Cancel' and 'Continue' options. How do I click Continue in this instance. Could you provide some more

Re: [wtr-general] Re: Handle Security warining

2010-11-19 Thread Jari Bakken
On Fri, Nov 19, 2010 at 11:05 AM, Litha K litha...@googlemail.com wrote: Security warning: Although this page is encrypted, the information you have entered is to be sent over an uncrypted connection and could be easily be read by a third party. Are you sure you want to continue sending this

Re: [wtr-general] Re: watir-webdriver fire_event('onmouseover') failing in IE

2010-11-22 Thread Jari Bakken
. I'll release a new selenium-webdriver gem as soon as it's merged (or the fix is backported to the old driver). Are there any known work-a-rounds until a new version of selenium- webdriver is released? Not that I know of. Thanks :-) On Nov 5, 6:08 pm, Jari Bakken jari.bak...@gmail.com wrote

Re: [wtr-general] Watir/Cucumber with Lua

2010-12-03 Thread Jari Bakken
On Fri, Dec 3, 2010 at 3:46 PM, Usman Hussain usmanhhuss...@gmail.com wrote: Ive had a look at Rufus/Lua (on GITHub) but cannot seem to get this working. I keep getting this error when i have require 'rufus/lua' along with requiring 'rubygems' 'rspec' and 'watir-webdriver' You'll probably get

Re: [wtr-general] An intro to Watir-WebDriver

2010-12-14 Thread Jari Bakken
On Tue, Dec 14, 2010 at 1:45 PM, Alister Scott alister.sc...@gmail.com wrote: Hi, I've written a new blog post about how to use Watir-WebDriver for those who are curious: http://watirmelon.com/2010/12/14/watir-webdriver-a-detailed-introduction/ Thanks a lot for this Alister! Just a nitpick

Re: [wtr-general] Timeout when setting a text_field

2011-01-04 Thread Jari Bakken
This is documented on the WebDriver wiki: http://code.google.com/p/selenium/wiki/RubyBindings Basically, you want to do something like this: client = Selenium::WebDriver::Remote::Http::Default.new client.timeout = 120 # seconds - default is 60 driver = Selenium::WebDriver.for(:firefox,

Re: [wtr-general] testing a page that goes through multiple redirects.

2011-01-19 Thread Jari Bakken
On Wed, Jan 19, 2011 at 8:31 PM, vishnu path...@gmail.com wrote: I posted an issue on github and jarib suggested I use something like wait_until_present to make sure I'm on the page I expect to be. But I have 2 concerns. firstly, even with wait_until_present is there a likelyhood I get a

Re: [wtr-general] testing a page that goes through multiple redirects.

2011-01-20 Thread Jari Bakken
On Thu, Jan 20, 2011 at 12:06 PM, vishnu path...@gmail.com wrote: Ideally in the case of these redirects, I'd like to be able to check if watir believes the page is loaded AND if no javascript is currently executing, because I know that in this specific case, on none of my pages do I have to

Re: [wtr-general] testing a page that goes through multiple redirects.

2011-01-20 Thread Jari Bakken
On Thu, Jan 20, 2011 at 1:01 PM, vishnu path...@gmail.com wrote: Another idea I had was to in a wait block attachEventListener to document load a function of the form setTimeout(0, function(){}) and my attached function would set some element on the page and use watir to check for this

[wtr-general] Re: Problems with driving IE via watir-webdriver

2011-02-02 Thread Jari Bakken
Interesting. I turned off Protected Mode, and made all zones Medium. That actually fixed the problem in the test under VM. It would have been no biggie to turn Protected Mode off (I don't use IE much), but my Hudson server is running using non-admin account on a PC, and I can't do it there.

Re: [wtr-general] Re: Accessing file_field under div style

2011-02-13 Thread Jari Bakken
On Mon, Feb 14, 2011 at 12:00 AM, Dave McNulla mcnu...@gmail.com wrote: I had to set up watir-webdriver to test this out. Seems that it doesn't work on IE for me at all (doesn't run), but who's got time to debug that. On Chrome, the field is never found. It works with Watir (I only tried with

Re: [wtr-general] Re: CookieManager/cookie api

2011-02-21 Thread Jari Bakken
WebDriver has the capability but it's not (yet) exposed on the Watir side. You can access WebDriver's Options interface [1] through browser.driver.manage #= #Selenium::WebDriver::Options Jari [1] http://rubydoc.info/gems/selenium-webdriver/0.1.3/Selenium/WebDriver/Options On Mon, Feb 21,

Re: [wtr-general] Re: CookieManager/cookie api

2011-02-22 Thread Jari Bakken
On Tue, Feb 22, 2011 at 11:40 AM, Usman Hussain usmanhhuss...@gmail.com wrote: ahhh sorry ignore my last post the following works: @browser.driver.manage.delete_all_cookies Right. Note that WebDriver has a limitation in that it only will let you manipulate cookies for the current domain. --

Re: [wtr-general] Re: Error on running script for first time

2011-02-24 Thread Jari Bakken
On Thu, Feb 24, 2011 at 9:47 AM, Ashu ashay.n...@gmail.com wrote: Looks like it's trying to install ffi 1.0.6: Gem files will remain installed in C:/Ruby186/lib/ruby/gems/1.8/gems/ ffi-1.0.6 f or inspection. Results logged to C:/Ruby186/lib/ruby/gems/1.8/gems/ffi-1.0.6/ext/ ffi_c/gem_make

Re: [wtr-general] Interact with Javascript Pop Up

2011-03-03 Thread Jari Bakken
On Thu, Mar 3, 2011 at 2:12 PM, Usman Hussain usmanhhuss...@gmail.com wrote: Hi Guys, Im doing a test at the moment where when I enter in something into the url it brings up a Javascript pop up. Now  I do not want to turn the pop up function off by writing some Javascript and then using

Re: [wtr-general] Re: Interact with Javascript Pop Up

2011-03-07 Thread Jari Bakken
On Mon, Mar 7, 2011 at 12:04 PM, Mattias Karlsson mattiaskar...@gmail.com wrote: 1)  returned = @browser.alert do    @browser.goto('http:// www.url.com/+void(document.cookie=authorization=true)+alert(document.cookie)+')   end   returned.should == ok # Doing positive test first but it

Re: [wtr-general] double load of the same file

2011-03-11 Thread Jari Bakken
On Fri, Mar 11, 2011 at 3:59 PM, Usman Hussain usmanhhuss...@gmail.com wrote: Hi Guys, Im in a bit of a Pickle. Im using Watir-Webdriver with Cucumber but the language im coding in is RUBY. This looks like a problem not really specific to Watir - you should ask on the Cucumber mailing list.

Re: [wtr-general] get .zip by url

2011-03-13 Thread Jari Bakken
On Sun, Mar 13, 2011 at 2:01 PM, maga chat...@gmail.com wrote: So, how can I specify a path to save the archive and how to manage saving flow(something like autoit for windows)? First of all, if no JavaScript support is required, you should be able to download the file with a HTTP library

Re: [wtr-general] Firefox 4 and Firewatir

2011-03-22 Thread Jari Bakken
Den 22. mars 2011 kl. 16:57 skrev Željko Filipin zeljko.fili...@wa-research.ch: On Tue, Mar 22, 2011 at 4:53 PM, Alastair Montgomery doodl...@gmail.com wrote: Has anyone tried running Firewatir with Firefox 4? Firewatir will not work with Firefox 4 because we do not have jssh for it. I think

Re: [wtr-general] Simulate keystroke with watir-webdriver

2011-04-04 Thread Jari Bakken
On Mon, Apr 4, 2011 at 11:46 AM, Dan Claudiu Pop danclaudiu...@gmail.com wrote: Hello, Is there a way to simulate keystroke with watir-webdriver. I know that, recently Jarib pushed send_keys method. Does it simulate keystroke as well ? I've tried all kind of combinations, including ascii,

Re: [wtr-general] Re: checkbox question

2011-04-07 Thread Jari Bakken
On Thu, Apr 7, 2011 at 4:03 PM, Tiffany Fodor tcfo...@comcast.net wrote: Good luck with your Selenium project!  If you ever need Watir help, you know where to find us.  :) I haven't created a watir-webdriver list, since I think it's fine to discuss watir-webdriver issues here. I'd be happy to

Re: [wtr-general] checkbox question

2011-04-07 Thread Jari Bakken
On Thu, Apr 7, 2011 at 1:25 AM, bryan rasmussen.br...@gmail.com wrote: When I look for the label Regnskab I find it, but when I run the label.checkbox(:index, 1) I get  And I click Regnskab                                              # features/step_definitions/general_navigation.rb:61    

Re: [wtr-general] how to change value of Watir::Input?

2011-04-10 Thread Jari Bakken
On Fri, Apr 8, 2011 at 12:54 PM, bryan rasmussen.br...@gmail.com wrote: Hi, If I have an element of type Watir:Input how should I set the value - I would like to not use textfield (unless there is someway I can easily convert Watir:Input to a Watir:TextField and then do a set on it. If this

Re: [wtr-general] checkbox set but returns false for set?

2011-04-11 Thread Jari Bakken
Hi, I can't see anything obviously wrong in your code. You'll need to provide a minimal test case including the HTML, Javascript and Ruby code needed to reproduce the problem (for example, we can't guess what the toggle_alt() function in your HTML example does - we'll need a more complete example

Re: [wtr-general] Problem about watir-webdriver

2011-04-19 Thread Jari Bakken
On Tue, Apr 19, 2011 at 10:28 AM, Ekin Han nbkhic...@gmail.com wrote: Hi all, I am using watir-webdriver now. Could anybody tell me where is the online doc of waitr webdriver? API docs: http://rubydoc.info/github/jarib/watir-webdriver/master/frames Wiki:

Re: [wtr-general] Slow speed of filling of text area on watir-webdriver

2011-04-21 Thread Jari Bakken
On Thu, Apr 21, 2011 at 5:07 PM, the_zonker the.zonk...@gmail.com wrote: Environment: watir-webdriver 2.0.0 Ruby 1.9.2 Firefox 3.6, IE8 It's a good practice to always try the latest released version before reporting issues. watir-webdriver is currently at 0.2.2. I faced with a problem - I

Re: [wtr-general] Re: Slow speed of filling of text area on watir-webdriver

2011-04-21 Thread Jari Bakken
On Thu, Apr 21, 2011 at 8:33 PM, Adam Reed reed.a...@gmail.com wrote: Using text_area.value = string rather than text_area.set string has saved a significant amount of time for my scripts in massive-data- entry scenarios. Not so for watir-webdriver - they both use the same mechanism under the

Re: [wtr-general] Re: Sending single key presses to element.

2011-04-22 Thread Jari Bakken
On Thu, Apr 21, 2011 at 7:15 PM, orde ohil...@gmail.com wrote: You should able to accomplish it through either .fire_event or .send_keys methods.  Examples: fire_event: http://rdoc.info/gems/watir/1.8.1/Watir/Element#fire_event-instance_method send_keys:

Re: [wtr-general] Error opening new Firefox window with Watir-Webdriver

2011-04-25 Thread Jari Bakken
On Tue, Apr 26, 2011 at 12:55 AM, Abe Heward abe.hew...@gmail.com wrote: The script fails when trying to open the browser, with this error message: C:/Ruby191/lib/ruby/gems/1.9.1/gems/childprocess-0.1.8/lib/childprocess.rb:91:in `close_on_exec=': close_on_exec=() function is unimplemented on

Re: [wtr-general] Error opening new Firefox window with Watir-Webdriver

2011-04-26 Thread Jari Bakken
On Tue, Apr 26, 2011 at 11:03 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Apr 26, 2011 at 1:07 AM, Jari Bakken jari.bak...@gmail.com wrote: I would recommend upgrading to Ruby 1.9.2. Watir-webdriver works on ruby 1.9.2? Yes. -- Before posting, please read http

Re: [wtr-general] using drag_and_drop_on with watir-webdriver

2011-04-26 Thread Jari Bakken
Hi, On Tue, Apr 26, 2011 at 2:42 PM, marc betts marcbe...@gmail.com wrote: browser.div(:id=some_div).element.drag_and_drop_on(browser.div(:id=some_other_div).element) When you call Watir::Element#element to fetch the underlying Selenium::WebDriver::Element instance, you're using a private API

Re: [wtr-general] How to access cell or row index using watir-webdriver

2011-05-05 Thread Jari Bakken
On Thu, May 5, 2011 at 10:31 AM, Dan Claudiu Pop danclaudiu...@gmail.com wrote: And also i tried with each_with_index but didn't get the expected output. That should work. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

Re: [wtr-general] watir-webdriver works with Firefox but not with Chrome :Failed to initialize session (Selenium::WebDriver::Error::WebDriverError)

2011-05-06 Thread Jari Bakken
As mentioned on the server download page, you need a newer version of Chrome, minimum version 12.0.727.0. Den 6. mai 2011 kl. 17:47 skrev emclaus ernie...@gmail.com: I'm trying to use Watir and Chrome (Chromium version 10.0.648.205 on Ubuntu) together. I think I have watir-webdriver installed

Re: [wtr-general] IE click button issue on watir-webdriver

2011-05-17 Thread Jari Bakken
On Tue, May 17, 2011 at 2:57 PM, the_zonker the.zonk...@gmail.com wrote: Working on automation of Web application I've faced with weird IE behavior - in one particular case IE doesn't click on button. Indeed I can see that browser moves focus on the button and press it but then nothing

Re: [wtr-general] Watir for Chrome(Shut down issue)

2011-05-17 Thread Jari Bakken
On Tue, May 17, 2011 at 6:00 PM, Ashok Tulachan tulachanas...@gmail.com wrote: The weird thing is that it shuts down even after completion while it stays in the same page for IE. However when i copy the same code and run in IRB, it doesn't shut down. It's not weird at all, it's intentional

Re: [wtr-general] Interaction with Resend confirmation dialog box using Watir-Webdriver

2011-05-25 Thread Jari Bakken
On Wed, May 25, 2011 at 12:20 PM, the_zonker the.zonk...@gmail.com wrote: Hi guys, First of all my environment: watir-webdriver 0.2.3 A Web application I testing has parameters which are sent to server during page load. It causes Retry confirmation dialog in IE and Resendin FF when I

Re: [wtr-general] Re: type-ahead select lists

2011-05-26 Thread Jari Bakken
On Thu, May 26, 2011 at 7:10 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Watir can work with hidden fields: browser.hidden(how, what) [...] (This will not work in watir-webdriver.) Actually, that code will work, and you can also interact with it to some degree (e.g. getting

Re: [wtr-general] click on hidden buttons not working anymore on watir-webdriver

2011-06-04 Thread Jari Bakken
Den 3. juni 2011 kl. 21:02 skrev a b cristina.watir.toro...@gmail.com: On Firefox I have to press Enter Key after I type in some text. Do you have any example? I couldn't find any example on stackoverflow; watir google etc. element.send_keys :enter Thanks a lot. Cristina -- Before

Re: [wtr-general] watir-webdriver

2011-06-06 Thread Jari Bakken
On Mon, Jun 6, 2011 at 6:57 PM, a b cristina.watir.toro...@gmail.com wrote: For instance: That is a label : tdspan class=fontmd floatleft id=macbodypage     span string=create_user class=macstringCreatenbsp;User/span/span/td This isn't valid HTML, as the error message points out. Since the

Re: [wtr-general] watir-webdriver instead of firewatir- Showing error

2011-06-09 Thread Jari Bakken
It's a dependency issue between childprocess and selenium-webdriver. This should solve it: gem update childprocess Den 9. juni 2011 kl. 14:28 skrev Amit Bobade amit.sr...@gmail.com: Dear Željko, Thanks for your reply. I tried as you suggested but it didn't work for me. I got following error

Re: [wtr-general] Re: watir-webdriver firebug

2011-06-16 Thread Jari Bakken
On Thu, Jun 16, 2011 at 4:15 PM, joedio joe...@comcast.net wrote: Jari , Does this mean that when using webdriver: 1) If you start Firefox:          browser = Watir::Browser.new     that it runs with all addins disabled. 2) If you start Firefox:        browser =

Re: [wtr-general] href in WebDriver no longer available?

2011-06-21 Thread Jari Bakken
On Mon, Jun 20, 2011 at 9:10 PM, BillyMobilly billymobi...@gmail.com wrote: In Watir I used .href in my scripts to navigate to pages.  When I run the same script with Watir WebDriver I get an error, seems to indicate that href has been depricated, is that true?

Re: [wtr-general] Re: href in WebDriver no longer available?

2011-06-23 Thread Jari Bakken
I'd suggest it might be a good idea to perhaps add a bit more descriptive text to that error to make it a bit more friendly? I'll pass this suggestion along to Jim who maintains the IE driver. -- Before posting, please read http://watir.com/support. In short: search before you ask, be

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Jari Bakken
On Mon, Jun 27, 2011 at 10:13 PM, Abe Heward abe.hew...@gmail.com wrote: It's not an HTML page. It's a .log file, containing straight text, including the tabs. What's the purpose of using Watir for this? Why not just read the file from Ruby? -- Before posting, please read

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Jari Bakken
On Mon, Jun 27, 2011 at 11:23 PM, Abe Heward abe.hew...@gmail.com wrote: Ah. Okay. Here's why I can't do that: Because the file is on a server whose drive is not mapped locally. So, File.open(http://69.71.52.209/tmp/fb-pixels.log;, r) results in a The system cannot find the file specified.

Re: [wtr-general] Running Watir-webdriver script causes DEP shutdown.

2011-06-30 Thread Jari Bakken
On Thu, Jun 30, 2011 at 3:49 PM, Alastair Montgomery doodl...@gmail.com wrote: I've been trying to run Watir-webdriver with Firefox 5 on my XP machine, but every script I run cause Windows to shutdown Firefox due to Data Execution Prevention, even although I've set it not to apply to Firefox.

Re: [wtr-general] Object no longer attached to the DOM error on doing a exists call

2011-07-05 Thread Jari Bakken
On Tue, Jul 5, 2011 at 1:21 PM, Alastair Montgomery doodl...@gmail.com wrote: Hi, I am experiencing an intermittent issue when doing the following call in watir-webdriver; browser.div(:class = blockUI).exists? Sometimes it throws this exception;

Re: [wtr-general] OT: How do I determine Ruby/Watir version compatible with Windows Operating Systems

2011-07-14 Thread Jari Bakken
I can only speak for watir-webdriver, which should work well with any of those OSes on either 1.8.7 or 1.9.2 from rubyinstaller.org. Den 14. juli 2011 kl. 20:21 skrev Super Kevy kpe...@scholarshipamerica.org: Hey Gang, I'm having a tough time figuring out which what the windows operating

Re: [wtr-general] Re: how to select a month/day into that calendar http://calendarview.org/

2011-07-19 Thread Jari Bakken
On Tue, Jul 19, 2011 at 8:28 PM, Cristina Dumitrescu cristina.watir.toro...@gmail.com wrote: c:/ruby187/lib/ruby/gems/gems/1.8/gems/watir-webdriver-0.2.4/lib/watir-webdriver/elements/elements.rb 292: in method_missing: undefined method 'cell' for #Watir::Div  Do I have any library missing?

Re: [wtr-general] Watir 2.0.0.rc2 released

2011-07-25 Thread Jari Bakken
On Sun, Jul 24, 2011 at 11:53 PM, Jarmo jarm...@gmail.com wrote: Good news everyone! I've found some time to play with Watir and managed to release a new version - 2.0.0.rc2 (rc1 had buggy dependency, sorry)! There are some big changes including 0-based-indexing, which is enabled by default

Re: [wtr-general] Watir webdriver connection timeout

2011-07-29 Thread Jari Bakken
See the section on Internal Timeouts here: http://code.google.com/p/selenium/wiki/RubyBindings#Timeouts Den 29. juli 2011 kl. 04:54 skrev Dan dfra...@gmail.com: Is there a configuration for how long Watir-webdriver waits for a response? I'm trying to upload a rather large file and the response

Re: [wtr-general] Object no longer attached to the DOM error on doing a exists call

2011-08-01 Thread Jari Bakken
This usually happens when the element has been removed from the DOM after the element was located, and is usually an indication that you're not waiting for the page to be in the expected state before using the element. Relocating the element would also solve this problem, e.g.:

Re: [wtr-general] watir-webdriver headless browser setup

2011-08-01 Thread Jari Bakken
On Mon, Aug 1, 2011 at 5:30 PM, Dan Claudiu Pop danclaudiu...@gmail.com wrote: ... when i run my tests with Headless profile i receive the following error: The stack trace looks very much like a bug in HtmlUnit. Celerity's version of HtmlUnit may be newer than WebDriver's. However, it would

Re: [wtr-general] Re: Object no longer attached to the DOM error on doing a exists call

2011-08-01 Thread Jari Bakken
On Mon, Aug 1, 2011 at 5:41 PM, Jarmo Pertman jarm...@gmail.com wrote: In Watir the locating of the element will be done automatically - why not use the same approach in Watir-WebDriver? Is there any good reason to do that? It just sucks that i can't write code similar to this in watir-

Re: [wtr-general] Safari Watir / Webdriver - reasons for choosing watir or selenium...

2011-08-01 Thread Jari Bakken
WebDriver does not support Safari at the moment, but it does support driving the browsers on iPhone and Android, either in the simulator or on actual devices (though I haven't used either extensively, so not sure how fast or full-featured they are). WebDriver also has excellent support for Google

Re: [wtr-general] Chrome is getting closed even I do not use browser.close() method.

2011-08-02 Thread Jari Bakken
Den 2. aug. 2011 kl. 10:43 skrev Amit Bobade amit.sr...@gmail.com: Dear Željko, I am still facing this problem. Any updates? You can follow this issue: http://code.google.com/p/chromium/issues/detail?id=87676 -- Before posting, please read http://watir.com/support. In short: search before

  1   2   >