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
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
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
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
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
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
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
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
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;,
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
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
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!
-
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
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
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
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
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#
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:
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 =
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
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
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
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
']
(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
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
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
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
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
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
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])
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
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
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
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
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
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
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
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
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
Ž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,
...@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
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
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
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
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.
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
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
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
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'
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
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
...@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
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. (
://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
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
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
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
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
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
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
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
61 matches
Mail list logo