You may try this:
levelone_dropdown = 'Accounts'
$browser.element_by_xpath("//dl/dt[contains(text
(),'#{levelone_dropdown}')]").click
Thanks.
Wesley Chen.
On Fri, Feb 13, 2009 at 12:52 PM, Jason wrote:
>
> I seem to get myself stuck every Friday evening with seemingly trivial
> Watir / Ruby p
I seem to get myself stuck every Friday evening with seemingly trivial
Watir / Ruby problems. Here's this week's problem.
I'm struggling to match by XPath with a variable inside the xpath
syntax.
The following works perfectly:
$browser.element_by_xpath("//dl/dt[contains(text
(),'Accounts')]").
Try
require File.dirname(__FILE__)+'/../***.rb
Thanks.
Wesley Chen.
On Fri, Feb 13, 2009 at 12:46 PM, malar wrote:
>
> Hi,
> I have to include a ruby program inside another ruby program.
> i used the following command,
>
> require ' logintest.rb'
>
> But i am getting an error,
>
>
Hi,
I have to include a ruby program inside another ruby program.
i used the following command,
require ' logintest.rb'
But i am getting an error,
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/
core_ext/module/introspection.rb:70:in `const_get': no such fil
I ran into a similar issue and was able to work around it by calling
click! instead of click or click_no_wait. We're not using SproutCore
so this may not be relevant to your issue.
## snip
# Click on the Export button then Save the file as an
artifact
export = browser.button
The whole condition, with the OR, goes in the block. Like this:
Watir::Waiter.wait_until{ ie.p(:id,'savewarning').exists? ||
ie.p(:id,'saveconfirm').exists? }
Richard
--
Richard Lawrence
Certified Scrum Coach
Founder and Principal Consultant, Humanizing Work, LLC
303-895-7688
rich...@humanizingw
how about Washington DC? or someplace off GREEN BELT turnpike in
Reston Virginia
bring the show to the east PLEASE
On Feb 12, 5:57 pm, Pete Dignan wrote:
> The first public training class on Watir (including the new WatirCraft
> framework) is March 25-26 in Austin TX. We're discussing where to
I'm trying to figure out how to use an OR statement between two
wait_unti{exist?}
Steps/Scenario is as follows:
1. Page with Link
2. Click Link
3 Opens Confirmation
4. Click button in popup
5. Page does a postback in javascript.
At this point I need to wait until the page is re-reendered w
The first public training class on Watir (including the new WatirCraft
framework) is March 25-26 in Austin TX. We're discussing where to
hold additional public classes after that. Portland OR has been
mentioned. Bay Area? Chicagoland? We're looking for suggestions
based on need.
Pete
--~--~-
Yeah, that blocking behavior is a common problem. It seems at the
moment the easiest way to get around that is to execute the code to
handle the popup in a separate process.
To experiment with this you can put the popup handling code in its own
script, verify that it works as expected when run o
Thanks, autoit is definitely something I will begin to utilize. My issue now
is that script that causes the popup to prompted, stops whenever the popup is
prompted, so the code after if(the autoit code) is not executed until the popup
is canceled. I can elaborate if necessary. Thanks in adva
Al and Marekj, thanks for the links!
On Thu, Feb 12, 2009 at 1:01 PM, marekj wrote:
>
> I updated 2 concepts in the latest intro slides.
> 1) git config and autocrlf
> - point to path/to/etc/gitconfig as the global and the defualt
> autocrlf = true setting
> - point to ~/.gitconfig as a 'user co
The AutoIt function name "WinGetText" should be a good keyword to
google to see some useful example code. Here's a Watir list thread
from earlier this year about it:
http://groups.google.com/group/watir-general/browse_thread/thread/5b6f529b16616bbc?pli=1
And a Watir wiki page that shows a littl
I have searched through the archives, but have not been able to find any
examples of what I am looking for. I have never used autoit, so are there any
ways to do this without it? I am willing to learn it if necessary. Thanks in
advance.
- Shelton> Date: Thu, 12 Feb 2009 12:54:20 -0800> Sub
Hello everyone,
I'm having problems with using
require 'roo'
ss = OpenOffice.new('myspeadsheetlocation')
ss.default_sheet = ss.sheets.first
ss.set_value(2, 'G', value = $ie.div(:id, 'divid'))
I get this error:
NoMethodError: private method "set_value" called for #
I have the latest roo gem
I updated 2 concepts in the latest intro slides.
1) git config and autocrlf
- point to path/to/etc/gitconfig as the global and the defualt
autocrlf = true setting
- point to ~/.gitconfig as a 'user config file' (no need to set
autocrlf there unless you need = input setting or = false for stroing
C
Hi,
There should be some examples of how to do this in the list archives.
There are several different ways to get the text of a dialog, but the
easiest thing to do is probably to use autoit. Please reply back if
you have questions about it.
Bill
On Thu, Feb 12, 2009 at 12:24 PM, Jason Shelton
Hi All,
If you are interested about starting with Git and you are on Windows
go look at the slides I made
Git For Windows, Plain Introduciton for Testers (yes, helping testers
adopt Watir)
It covers installation of msysgit and some beginning config setup and concepts
http://www.slideshare.net/tes
Interesting.
I found the options() method from the rdoc. However, I do not get the
behaviour I expect.
Use getAllContents() instead; this does return an array, as expected.
Alex
On 12 Feb 2009, at 19:15, Jason Shelton wrote:
> I tried the following code, and I am getting the undefined metho
All,
I have read the tutorial about killing a 'Windows Internet Explorer' javascript
popup, but I am writing to ask if there is a way to verify the text on these
popups first, with a method similar to .contains_text? If this question is not
clear, I can elaborate. Thanks in advance.
- She
I tried the following code, and I am getting the undefined method error. Am I
missing a library? Thanks in advance.
items = $ie.select_list(:name, 'xxx')
itemsArray = items.options()
- Shelton
From: a.j.collins...@gmail.comto: watir-gene...@googlegroups.comsubject:
[wtr-general] Re:
You can compare arrays very easily in ruby use the == method. I think
order matters so you might wish to sort (.sort) your array.
There is a method on a select box to get all of the options
( .options() ). This returns an array.
You can then store your expected results in an array and compare
Sorry - too early in the morning at the time.
CSV::Reader is what I meant.
If you google for CSV::Reader and Ruby you get what you are after.
Sorry about that.
Alex
On 12 Feb 2009, at 17:56, jtk wrote:
>
> Hi Alex,
>
> Thanks for replying. I Googled CSV::Loader and it came back with some
>
Hi Alex,
Thanks for replying. I Googled CSV::Loader and it came back with some
message boards talking about it and a few sites that have it to
download but they all list it as a plugin for AWB and I found a site
that has it listed as a Linux plugin. I am running WATIR in Windows as
this is what m
The below code validates the order of items in a drop down. You should
be able to pull some stuff out of here.
when "Item Order"
#Set counter
actual_order = ""
if order_of_items != nil
excel_item =
All,
I am writing to ask if anyone has a quick way of verifying the contents of a
drop down. I have a list of names, and I want to verify that each name is
being displayed in the drop down. Thanks in advance for all of your help.
- Shelton
__
Here is a stack trace that indicates that you have the error discussed
below:
C:/ruby/lib/ruby/gems/1.8/gems/win32-api-1.3.0-x86-mswin32-80/lib/win32/api.so:
126: The specified module could not be found. -
C:/ruby/lib/ruby/gems/1.8/gems/win32-api-1.3.0-x86-mswin32-80/lib/win32/api.so
(LoadE
This notice applies to people who installed Watir last week and are
seeing problems.
There was a bad gem, win32-api version 1.3.0 distributed last week. The
problem was fixed with a new gem that was given the same version number.
As a result, the gem installer can't tell whether you have the c
Maybe.
You should talk to Daniel Berger, who maintains the windows gems. I
don't think he reads this list.
djber...@gmail.com
Bret
Ben wrote:
> Ok... I tried a brand new installation of Ruby and Watir on a fresh
> win xp install using a VMWare virtual machine and everything works
> perfectly..
This is the same as Exception handling.
begin
...
rescue
...
end
- Original Message
From: Prince3105
To: Watir General
Sent: Wednesday, February 11, 2009 11:11:36 PM
Subject: [wtr-general] "On Error Resume Next" - Equal statement in Ruby
Hi This is Prince3105,
Fairly newbie to
Ok... I tried a brand new installation of Ruby and Watir on a fresh
win xp install using a VMWare virtual machine and everything works
perfectly... I have both MS Visual Studio 2005 and Visual Studio 6.0
installed on my computer... I'm starting to beleive it might be a dll
version conflict caused
30 June 2006, dannyy wrote:
We are able to write very robust and concise test cases, such as
automating drag-and-drop without knowing how such behavior is
implemented.
I'm wondering what he's talking about?
I've successfully written drag and drop scripts in SilkTest and
Selenium, but doing so in
Since Watir and SafariWatir have moved to GitHub, I wanted to
share this information about a free course (Git and GitHub):
It happens between Feb 21 and 27.
http://rubylearning.com/blog/2009/02/10/git-and-github-a-free-course/
FYI,
Al Snow
--~--~-~--~~~---~--~~
Y
I tried to completely uninstall (using gem uninstall )
and re-install win32-* gems, windows-* gems and Watir.. I still have
the same problem. Here's my gem list :
*** LOCAL GEMS ***
activesupport (2.2.2)
builder (2.1.2)
commonwatir (1.6.2)
firewatir (1.6.2)
fxri (0.3.6)
fxruby (1.6.16)
hoe (1.8.
I do not believe Ruby has a direct equivalent. I think that is a good
thing. By using such statements you are avoiding and concealing
errors. You are not handling them.
I'm unsure why you want this? Perhaps you could describe the problem
you're facing rather than the solution you use in VB?
35 matches
Mail list logo