Re: [wtr-general] Update chromedriver

2012-08-06 Thread Felipe Knorr Kuhn
If you are using a Mac, you are probably better off using Homebrew to install and update chromedriver http://mxcl.github.com/homebrew/ brew update brew upgrade chromedriver On Mon, Aug 6, 2012 at 1:59 PM, Joe Fleck joeflec...@gmail.com wrote: Hi Željko, I was following the MAC installation

Re: [wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-20 Thread Felipe Knorr Kuhn
what kind of redirect is this? meta refresh? On Tue, Nov 16, 2010 at 10:06 AM, dimovich dimov...@gmail.com wrote: It's basically: ie.goto 'page that redirects' ie.link(:id, 'MyLink').click On IE8 the 'click' call will fail because Watir cannot find the link (redirect hasn't finished yet

Re: [wtr-general] Random value from a select list

2010-09-30 Thread Felipe Knorr Kuhn
Another option: array[rand(array.size)] On Thu, Sep 30, 2010 at 10:25 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Sep 30, 2010 at 3:15 PM, ISmellGas guard1883-goo...@yahoo.co.uk wrote: Is it possible to get the contents of the select list into an array, count how many

Re: [wtr-general] RE:Automating command line tools

2010-09-03 Thread Felipe Knorr Kuhn
Although this has nothing to do with Watir, you could use something like expect. http://debaan.blogspot.com/2007/09/simple-expect-ssh-example.html Good luck On Fri, Sep 3, 2010 at 10:04 AM, Srinidhi srinidhi...@gmail.com wrote: Hi All, Is it possible to automate command line tools like

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

2010-08-27 Thread Felipe Knorr Kuhn
did you try updating rubygems and the installed gems? gem update --system gem update On Fri, Aug 27, 2010 at 2:56 PM, Super Kevy kpe...@scholarshipamerica.orgwrote: Followed the links: http://github.com/jarib/watir-webdriver http://zeljkofilipin.com/2010/01/12/watir-on-webdriver/ Test the

Re: [wtr-general] scheduling tasks for watir suite

2010-08-26 Thread Felipe Knorr Kuhn
If you are using Windows, you could use Task Scheduler. If you are using Linux, you could use crontab. If you want to use just Ruby, check http://rufus.rubyforge.org/rufus-scheduler/ out FK On Thu, Aug 26, 2010 at 3:26 PM, nix amritd...@gmail.com wrote: Hello I've read many discussions on

Re: [wtr-general] scheduling tasks for watir suite

2010-08-26 Thread Felipe Knorr Kuhn
That's a good option as well :) Since you touched that topic, I would also recommend Hudson [1] and the Ruby Plugin [2] which allows you to run ruby code as task. [1] http://www.hudson-ci.org/ [2] http://wiki.hudson-ci.org/display/HUDSON/Ruby+Plugin FK On Thu, Aug 26, 2010 at 4:58 PM, Charley

Re: [wtr-general] Understanding Modules and Classes a little better

2010-07-27 Thread Felipe Knorr Kuhn
Hello, Jason. The Programming Ruby 1.9 book, found at pragprog.com is great and has a quite extensive chapter on classes and modules. I highly recommend you to buy it (I can send you a 40% discount code if you want :) I won't reproduce the entire chapter here, but the main difference is that

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

2010-07-12 Thread Felipe Knorr Kuhn
Hello, You have to use CKEditor via Javascript, after the component has fully rendered. I don't have a Watir script handy, but here's how I did with Selenium: selenium.waitForCondition(var x = selenium.browserbot.findElementOrNull('//t...@id=\cke_contents_userForm:userstory\]'); x != null;,

Re: [wtr-general] How to sell Watir services to non-techie customers

2010-07-06 Thread Felipe Knorr Kuhn
Hello, George You have lots of difficult questions :) I'll answer based on what I have done in my previous company, so in this case, my potential client was my manager (and his clients, as it was an outsourcing company). First, I showed him how long our tests were taking, and estimated how much

Re: [wtr-general] Issue with Watir Installation

2010-06-21 Thread Felipe Knorr Kuhn
Hello, If you are using WinXP, click on Start - Run and launch msconfig.exe Click on Services, find the Remote Procedure Call item and try to start it. FK On Mon, Jun 21, 2010 at 9:31 AM, Betsy joybe...@gmail.com wrote: Hi, I have written an script like:- 1)Open Webbrowser 2)Open

Re: [wtr-general] Re: Watir site at stackexchange.com

2010-06-18 Thread Felipe Knorr Kuhn
Z*, I have added 5 more questions. FK 2010/6/18 Željko Filipin zeljko.fili...@wa-research.ch: On Thu, Jun 17, 2010 at 5:39 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: - go to http://area51.stackexchange.com/proposals/6738/watir?referrer=cBxk1oncaoo1 - click link Follow It! -

Re: [wtr-general] uninitialized constant Watir NameError

2010-06-18 Thread Felipe Knorr Kuhn
I would guess you have to import the rubygems package as well. Can you try that? On Fri, Jun 18, 2010 at 1:48 PM, Adam xyza...@gmail.com wrote: i have a question about a REALLY weird error I'm getting using notepad++ windows 7, ruby 1.8.6, latest installation of Watir using gem install watir

Re: [wtr-general] How to read a google doc or send a google mail?

2010-06-17 Thread Felipe Knorr Kuhn
There's also ROO if you want to access Google Docs Spreadsheets http://github.com/hmcgowan/roo Might be nice to have data driven tests (somewhat) in the cloud. FK On Wed, Jun 16, 2010 at 10:20 PM, Wesley Chen cjq@gmail.com wrote: I just want to have a try on the gmail and goog doc. In

[wtr-general] Firefox 3.6.3 JSSh on Linux

2010-06-08 Thread Felipe Knorr Kuhn
Hello all, I'm trying to help a friend setup FireWatir under Linux and she's using FF 3.6.3. The wiki [1] does not have the XPI for FireFox 3.6 and I couldn't find any links in the email archives. Does anyone have the XPI handy? I would like to save my friend from the hassle of compiling

Re: [wtr-general] anyone want to do a watir version?

2010-05-25 Thread Felipe Knorr Kuhn
Very nice! Since I've been using Selenium a lot lately (don't blame me!) I might try those challenges first :) FK On Tue, May 25, 2010 at 3:13 PM, Paul Rogers paul.rog...@shaw.ca wrote: http://seleniumexamples.com/blog/examples/play-pacman-with-selenium-2/ -- Before posting, please read

Re: [wtr-general] Not able to click Enter using SENDKEY

2010-05-24 Thread Felipe Knorr Kuhn
From the Watir FAQ ( http://wiki.openqa.org/display/WTR/FAQ ) How do I fix a WIN32OLERuntimeError when I use AutoIt? In some cases, after you install Watir, the .dll file fails to get registered which gives an error similar to the following: Exception 'WIN32OLERuntimeError' at filename.rb:line#

Re: [wtr-general] how to click on the element with the id = logoutLink

2010-05-23 Thread Felipe Knorr Kuhn
Hello, Cristina, have you tried $ie.link(:text, Logout).click $ie.link(:text, Logout).fire_event(onClick) ? On Sun, May 23, 2010 at 5:29 PM, Cristina cristina.toro...@gmail.com wrote: Hi, please can one help me with that:: i do not know how to click on the logout. That is the snippet code:

Re: [wtr-general] not a frame nor form for a newbie....

2010-05-20 Thread Felipe Knorr Kuhn
Have you tried ie.attach(:title, /title/)? On Thu, May 20, 2010 at 12:44 PM, dave bitdo...@yahoo.com wrote: i'm trying to access a spawned ie window after login...that's neither a frame nor formi think i'm able to startup and login to our workorder system...with this ie =

Re: [wtr-general] not a frame nor form for a newbie....continued....

2010-05-20 Thread Felipe Knorr Kuhn
Hello, It seems that there are frames in that popup. Do a ie.show_frames after attaching to that window. If they are frames, you'll be able to access the elements via ie.frame(:name, MAINIFRAME) FK On Thu, May 20, 2010 at 3:38 PM, dave bitdo...@yahoo.com wrote: ...oka i took your advice

Re: [wtr-general] Watir calling web services

2010-05-10 Thread Felipe Knorr Kuhn
Hello, I don't know how you're supposed to test Web Services with Watir, unless you want to compare the values displayed in your web app with the web services backend. What people usually use for web services testing is SoapUI. If you are looking for a Ruby library, I think soap4r is a good

Re: [wtr-general] require watir is not recognized on a vmware

2010-05-10 Thread Felipe Knorr Kuhn
Hello Cristina, It could be because using rubygems is not default in your new install. Try adding require rubygems before require watir but keep this post in mind http://tomayko.com/writings/require-rubygems-antipattern Good luck, FK On Mon, May 10, 2010 at 4:20 PM, Cristina

Re: [wtr-general] Watir xpath navigation problem

2010-05-06 Thread Felipe Knorr Kuhn
Hello, Felipe, It sure does look like a bug. A workaround would be using the wildcard selector like this: @ie.text_field(:xpath, //*...@tabindex='4901']).set test Hopefully your tabindex property is unique to all elements :) Regards, FK On Thu, May 6, 2010 at 2:55 PM, Felipe Pedrini

Re: [wtr-general] Re: Watir xpath navigation problem

2010-05-06 Thread Felipe Knorr Kuhn
'] (Watir::Exception::UnknownObjectException) And, yes, my tabindex is unique. Do you have any other sugestion? I'm not a specialist in xpath queries. Thanks! On 6 maio, 15:42, Felipe Knorr Kuhn fkn...@gmail.com wrote: Hello, Felipe, It sure does look like a bug. A workaround would

Re: [wtr-general] Re: Watir xpath navigation problem

2010-05-06 Thread Felipe Knorr Kuhn
Knorr Kuhn fkn...@gmail.com wrote: Hello, Felipe, It sure does look like a bug. A workaround would be using the wildcard selector like this: @ie.text_field(:xpath, //*...@tabindex='4901']).set test Hopefully your tabindex property is unique to all elements :) Regards

Re: [wtr-general] Vapir

2010-05-05 Thread Felipe Knorr Kuhn
Hello, Ethan, Congratulations, it looks very promising :) Even though I understand it's a fork, what can we expect from now on? I liked most of the differences pointed in the Wiki, and I believe others will like them too, so why not make them to the main Watir project? Will there be a new user

Re: [wtr-general] time loop

2010-05-05 Thread Felipe Knorr Kuhn
http://rufus.rubyforge.org/rufus-scheduler/ On Wed, May 5, 2010 at 3:36 PM, Shlomit Gazit shlomitpatr...@gmail.comwrote: How can I create a loop for a test to run every 15 minutes? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You

Re: [wtr-general] Vapir

2010-05-05 Thread Felipe Knorr Kuhn
and this is certainly one way to do it. We're always looking for pull requests for improvements. Cheers, Charley On Wed, May 5, 2010 at 12:29 PM, Ethan notet...@gmail.com wrote: On Wed, May 5, 2010 at 14:14, Felipe Knorr Kuhn fkn...@gmail.com wrote: Hello, Ethan, Congratulations, it looks very

Re: [wtr-general] Watir connection to oracle

2010-05-04 Thread Felipe Knorr Kuhn
Hello, Ivan, I used this piece of code under Windows a while ago: require 'oci8' require 'dbi' connection = OCI8.new( 'username', 'password', 'ip:port/scheme') cursor = connection.exec('select * from table') while r = cursor.fetch_hash r.each {|key, value| puts #{key} is #{value} } end puts

Re: [wtr-general] getting data from a cell within a div based on span text value

2010-05-03 Thread Felipe Knorr Kuhn
Hello, You can use a XPath expression to get to the element you want. This worked for me, using the HTML piece of code you provided: -- require rubygems require watir @ie = Watir::IE.new @ie.goto file://c:/test.html @text = @ie.element_by_xpath(//span[contains(.,'Test 1')]/following::td[1])

Re: [wtr-general] How do I grab parameters from a dynamic URL?

2010-04-29 Thread Felipe Knorr Kuhn
Hello, John, You can use the Addressable library ( http://addressable.rubyforge.org/ or gem install addressable ) then use the following: @url = Addressable::URI.parse(@ie.url) @ticket = @url.query_values[ticket] p @ticket Hope that helps, FK On Thu, Apr 29, 2010 at 1:35 PM, John Williams

Re: [wtr-general] Re: How do I grab parameters from a dynamic URL?

2010-04-29 Thread Felipe Knorr Kuhn
jwil...@gmail.com wrote: Thanks, Felipe. I'll give that a try. I was curious if there are any native methods in Watir I could use, like xpath? Cheers, John On Apr 29, 9:57 am, Felipe Knorr Kuhn fkn...@gmail.com wrote: Hello, John, You can use the Addressable library (http

Re: [wtr-general] Saving Javascript Files

2010-04-14 Thread Felipe Knorr Kuhn
Hello, I would sugest you to use element_by_xpath to get all script and link tags and then extract the src and href attributes, but I couldn't get it to work. But fear not! This is your lucky day and I decided to take the challenge and do it with Mechanize. Below you will find the code that

Re: [wtr-general] Saving Javascript Files

2010-04-14 Thread Felipe Knorr Kuhn
tag ( something like that anyway ) Ive recently written a spider to do some similar things, and the number of gotchas is surprisingly high. Paul On Wed, Apr 14, 2010 at 2:32 PM, Felipe Knorr Kuhn fkn...@gmail.comwrote: Hello, I would sugest you to use element_by_xpath to get all script

Re: [wtr-general] Re: Answering incomplete requests

2010-03-05 Thread Felipe Knorr Kuhn
Hello, Regarding the Why isn't my question being answered? section, could you add links to the How to handle popups Wiki page in the 4th paragraph? FK On Fri, Mar 5, 2010 at 8:19 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Nov 3, 2009 at 5:49 PM, Bret Pettichord

Re: [wtr-general] Re: Answering incomplete requests

2010-03-05 Thread Felipe Knorr Kuhn
Done, I had to reset password first because I haven't logged in ages. :) FK On Fri, Mar 5, 2010 at 9:47 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Mar 5, 2010 at 1:41 PM, Felipe Knorr Kuhn fkn...@gmail.com wrote: Regarding the Why isn't my question being answered

Re: [wtr-general] Re: Question about automation Gmail with Watir

2010-02-25 Thread Felipe Knorr Kuhn
Google engineers might be using Watir to test their upcoming Gmail Labs apps! j/k :) FK On Thu, Feb 25, 2010 at 7:42 PM, Alister Scott alister.sc...@gmail.comwrote: It makes sense to get rid of the Gmail example, because why you would ever want to automated a GUI to send an email is the

Re: [wtr-general] Re: Watir ads at stackoverflow.com

2010-02-05 Thread Felipe Knorr Kuhn
Vote up requires 15 reputation :( On Fri, Feb 5, 2010 at 10:13 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Want to see Watir ads on stackoverflow.com? This answer needs five upvotes. Current status: 0/5. http://bit.ly/djPPfj Željko -- You received this message because you

Re: [wtr-general] WatiN versus WatiR

2010-01-21 Thread Felipe Knorr Kuhn
Hello, I don't know much about Watin, its development or user groups, but I would say that if your project does not REQUIRE you to use Watin, learning Ruby and Watir would be a very good thing to do :) The community support here is awesome! Currently I'm working on a project that required me to

Re: [wtr-general] Re: Please donate to the Watir project!

2010-01-13 Thread Felipe Knorr Kuhn
Željko, The donations for bugs idea is great. I remember the Mantis project having something similar for feature requests, but I don't think it ever worked. There were several donations for a multi user issue assignment feature that never got implemented. I'll donate next month :) FK On Wed,

Re: [wtr-general] Wătir

2009-12-09 Thread Felipe Knorr Kuhn
...@wa-research.ch wrote: On Wed, Dec 9, 2009 at 12:47 PM, Felipe Knorr Kuhn fkn...@gmail.com wrote: I don't know if this would work for the international community :) True. I would not know how to pronounce Wătir too. I have heard people here in Brazil pronouncing it as Wah-cheer, it's hard

[wtr-general] Re: user experience response time script.

2009-08-11 Thread Felipe Knorr Kuhn
Hello Maumita, As Tony said, you should probably stick to JMeter. But, if you really want to do that quickly with Ruby, you could try the following: t1 = Time.now Navigate through the site t2 = Time.now puts time taken: + t2-t1.to_s + seconds FK On Tue, Aug 11, 2009 at 9:25 AM, Tony

[wtr-general] Re: Pick pop-up text and oracle DB connectivity issue

2009-07-30 Thread Felipe Knorr Kuhn
Hello Dheeraj, I defined the function in the end of this message to click on button txtButton when the alert has text equal to txtWindow You call it with: @main.button(:name, CONFIRM).click_no_wait clica_window_BUTTON Are you sure do you want to confirm?, OK @ie.waitForIE The code

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread Felipe Knorr Kuhn
Hello Dheeraj, You need this library http://ruby-oci8.rubyforge.org/en/ The site explains all you need to set it up. Regards, FK On Tue, Jul 21, 2009 at 10:06 AM, Dheeraj Gambhir checktestingthi...@gmail.com wrote: Hi All, I have tried my level best to connect to oracle using ruby but

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread Felipe Knorr Kuhn
Hello Jared, I'm a software tester and my interest in Ruby started a few years ago when I found out about Watir. At some point I started a blog (in Portuguese) about How to do x in Ruby, which would be basically a repository of solutions to the problems I came across, but it never took off.

[wtr-general] Re: Firefox 3.5 compatible with FireWatir?

2009-07-03 Thread Felipe Knorr Kuhn
Hello Angrez, To build the XPI, do you have to go through the whole Firefox building process? I've seen guides to build Firefox+JSSh, but I don't know if it creates the extension file separately or not :) I could try to build it for Linux. FK On Fri, Jul 3, 2009 at 9:44 AM, Angrez Singh

[wtr-general] Re: Firewatir and HighAscii

2009-06-30 Thread Felipe Knorr Kuhn
Hello, I am using the following, found somewhere on the net (or even this list :) $KCODE = u WIN32OLE.codepage = WIN32OLE::CP_UTF8 require 'iconv' module FireWatir class DD NonControlElement TAG='DD' end class DL NonControlElement TAG='DL' end class DT NonControlElement

[wtr-general] Re: How to delete a line in a file?

2009-06-12 Thread Felipe Knorr Kuhn
Hello, I use the following in my scripts: require yaml @urls = YAML.load_file(urls.txt) @url = @urls.delete_at(0) File.open('urls.txt', 'w') do |out| YAML.dump(@urls, out) end FK 2009/6/12 Wesley Chen cjq@gmail.com Hi, Guys, I would like to read from a file, when I read a line, I

[wtr-general] Re: how to automatically save all the images from a webpage without the dialogs?

2009-06-12 Thread Felipe Knorr Kuhn
Can you run an external app like wget instead? http://users.ugent.be/~bpuype/wget/ FK 2009/6/12 Encaps encapsu...@gmail.com Hello everybody, I try to save all the images from a webpage following this guide: http://wiki.openqa.org/display/WTR/Save+All+Images+on+a+Webpage require 'watir'

[wtr-general] Re: automating application running on remote network

2009-06-09 Thread Felipe Knorr Kuhn
Have you tested interacting with the IE window launched by Citrix? I believe it spawns just like a regular IE window, so you can use AutoIT to launch Citrix and login, then launch your Watir scripts, attaching to that window. FK 2009/6/9 Rahul Ahuja mightyah...@gmail.com Hi, I am trying to

[wtr-general] Re: Checking all links on a web page

2009-06-05 Thread Felipe Knorr Kuhn
Hello, The code posted by Željko will work only if all your links are absolute. Try this: require rubygems require watir $browser = Watir::Browser.new $browser.goto http://www.google.com; $links = Array.new $browser.links.each do |l| #Relative link if (l.href.first == /) $url

[wtr-general] Re: Checking all links on a web page

2009-06-05 Thread Felipe Knorr Kuhn
...@gmail.com Thanks for that Felipe. As far as validation goes I think my only option is to check that pages visited are not error pages; maybe checking for existnce of page cannot be found text. On Jun 5, 2:48 pm, Felipe Knorr Kuhn fkn...@gmail.com wrote: Hello, The code posted by Željko

[wtr-general] Re: How to send the email by Ruby script?

2009-06-05 Thread Felipe Knorr Kuhn
Did you try the following? SMTPhttp://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/classes/Net/SMTP.htmlAuthentication The Net::SMTPhttp://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/classes/Net/SMTP.htmlclass supports three authentication schemes; PLAIN, LOGIN and CRAM MD5. (

[wtr-general] Re: How to send the email by Ruby script?

2009-06-05 Thread Felipe Knorr Kuhn
://notepad.onghu.com/2007/3/26/sending-email-with-ruby When I run the code, anything goes expected. I have searched for the results for hours, your one word gets it fixed. :), thank you again. Thanks. Wesley Chen. On Sat, Jun 6, 2009 at 12:51 AM, Felipe Knorr Kuhn fkn...@gmail.comwrote: Did you

[wtr-general] Re: xpath problems

2009-06-05 Thread Felipe Knorr Kuhn
Are you using Google in English or another language? Adding this to your code might fix it $KCODE = u WIN32OLE.codepage = WIN32OLE::CP_UTF8 (or CP1252) FK 2009/6/5 Miguel Argollo miguel.argo...@gmail.com HI, I´m just trying to start using xpath, so I decided to change the Google example

[wtr-general] Re: Towards migrating to Watir.com

2009-06-04 Thread Felipe Knorr Kuhn
Hello Alister, I particularly host my websites and SVN server on Dreamhost.com. They have a nice control panel to create and configure a lot of stuff, including SVN and Wordpress. Unfortunately, you guys seem to NEED Confluence and Jira, and they don't host J2EE applications on the $5.95/month

[wtr-general] Re: jssh (firefox) and unicode

2009-05-28 Thread Felipe Knorr Kuhn
Hello Frank, I was having the same problem with portuguese characters and your code solved all issues :) Thanks for sharing. FK 2009/5/14 Frank fschm...@web.de: Hallo, with the following code i got i working on Windows with IE and Firefox (for Linux you might need to omit or change the

[wtr-general] Re: How can I open message in gmail inbox.

2009-05-26 Thread Felipe Knorr Kuhn
Did you try the basic (HTML) view as well? It should be much easier to parse and interact with Watir. FK 2009/5/26 tknv rreedd...@gmail.com: hi et,.al. I'd like to open gmail message for test sending password is collect or not. That's why need to open message to see message body. Then I

[wtr-general] Re: I want to ask a question about test/unit frame

2009-05-14 Thread Felipe Knorr Kuhn
Try adding require test/unit/assertions include Test::Unit::Assertions 2009/5/14 jingshi.wan...@alibaba-inc.com arto...@gmail.com: Hi, all   when I run the following code require 'test/unit' class TC_Pram Test::Unit::TestCase   def initialize(name)     @name=name   end   def

[wtr-general] The return of WTR-155 :)

2009-04-28 Thread Felipe Knorr Kuhn
Hello, I have recently installed Ruby 1.8.6-26 and Watir 1.6.2 on a Windows 2000 machine at work and when I tried to run a simple script that attaches to an existing window, but I faced the same problem from 2 years ago: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:241:in

[wtr-general] Re: The return of WTR-155 :)

2009-04-28 Thread Felipe Knorr Kuhn
you are trying to do when you see this error and it is unclear to me whether this is something that any one else has seen. Thanks for your help with this. I must say that I missed your original comment, as it was attached to a closed ticket. Bret Felipe Knorr Kuhn wrote: Hello, I