You should be able to use the fire_event method instead of the click
method. A generic example:
browser.button(:id = foo).fire_event(onclick)
HIH.
orde
On Friday, September 7, 2012 11:05:55 AM UTC-7, Brickman wrote:
Hello All,
I have an issue configuring a script that will simply click
might need to
trigger the event:
browser.link(:id,
foo).fire_event(onmouseover)#
mouseover is an example event handler
HIH.
orde
On Feb 1, 3:52 pm, Dave McNulla mcnu...@gmail.com wrote:
For the first question, I would try these:
browser.link(:href = /productpref
to a file:
browser.goto(test_site)
html = browser.html
f = File.new(txt.txt, w+)
f.write(html)
f.close
Hope it helps.
orde
On Dec 2, 1:42 am, Mark Ballinger mark.j.ballin...@gmail.com wrote:
Thank you for your reply.
After re-reading what I have written and thinking about what I what to
achieve
+1
On Oct 26, 1:50 am, Dan Claudiu Pop danclaudiu...@gmail.com wrote:
Hail to Chuck !
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
Something like this?
options = browser.select_list(:id, foo).options
com_list = String.new
options.each do |option_text|
com_list #{option_text},
end
Hope it helps.
orde
On Oct 20, 10:28 am, Joe Fl joeflec...@gmail.com wrote:
How can take those values from the list and put them
for, but that's my 2
cents.
HTH
orde
On Oct 13, 3:53 pm, iamqa srko...@gmail.com wrote:
I am trying to automate some testing on yahoo email. I need to click
on the subject or from, so that the email content opens up. I am able
to select the first email by firing onmousedown but unable to go
forward
This works in watir 1.9.x:
@browser.div(:id, foo).document.scrollintoview
Hope it helps.
orde
On Sep 27, 8:10 am, the_zonker the.zonk...@gmail.com wrote:
Hi guys,
My SUT has a modal popup with dynamically loaded content. When user
scrolls it down new records appear. DIV element of modal
Does watir 2.x support ruby 1.9.x? http://watir.com/installation/
still recommends 1.8.6 or 1.8.7 (although the documentation might be
slightly out of date).
orde
On Sep 16, 7:48 am, George Wiley george.wi...@gmail.com wrote:
The code below works fine with Win7, IE8, Ruby 1.8.6 and Watir 1.6.2
Ahhh...I didn't realize that Ruby 1.9.2 + Watir 2.x was ready for
testing. I'll have to upgrade a VM and take a look as well.
Sorry for getting off topic and not providing a solution to your
issue ;)
orde
On Sep 16, 11:03 am, George Wiley george.wi...@gmail.com wrote:
I read in this group
I do not understand what role ! mark does in the code..
!= is the negated form of the == operator. Take a look at Table
7.1 : Common comparison operators on
http://phrogz.net/programmingruby/tut_expressions.html#expressions.
orde
On Aug 30, 12:54 pm, byung jinuacad...@gmail.com wrote:
I come
Does this work (from http://rdoc.info/gems/watir/2.0.1/Watir/Form)?
browser.form(:name, input).submit
Hope it helps.
orde
On Aug 15, 7:48 am, Rahul Sharma rahulsharma@gmail.com wrote:
Hi Dimitry,
The reason I wanted to submit a local form is that I can not simulate user
clicks as part
The Today and arrow links are in cells. Have you tried to click the
cell? For example:
$browser.div(:id, mac).div(:class, calendar popup).cell(:text,
Today).click
Hope it helps...
orde
On Jul 19, 10:42 am, Cristina Dumitrescu
cristina.watir.toro...@gmail.com wrote:
I've attached the screen
? if true # returns true
I don't know why you're getting the undefined method error since the
webdriver API contains a cell method.
orde
On Jul 19, 11:28 am, Cristina Dumitrescu
cristina.watir.toro...@gmail.com wrote:
c:/ruby187/lib/ruby/gems/gems/1.8/gems/watir-webdriver-0.2.4/lib/watir-webd
I'm assuming no one answered because this isn't a watir-specific
issue.
I suggest a trying a Net::SSH on google or stackoverflow.
Good luck.
orde
On Jul 8, 2:23 pm, Bhavesh bhavesh1_sha...@yahoo.com wrote:
Di Anyone knows about it?
On Jun 29, 3:56 pm, Bhavesh bhavesh1_sha...@yahoo.com wrote
This thread should have useful information:
http://stackoverflow.com/questions/5073552/rspec-ruby-basic-example-error
Hope it helps.
orde
On Jun 28, 7:39 am, Parag Dave parag...@gmail.com wrote:
Thanks Zeljko,
This will really helpful.
But i have some problem i am not able to understand
This should point you in the right direction:
http://rdoc.info/gems/watir/1.9.0/Watir/Container#lis-instance_method
Hope it helps.
orde
On Jun 27, 9:13 am, Parag Dave parag...@gmail.com wrote:
Hi All Geeks,
Here i have some easy question ;) (That's why i am asking)
$browser.table(:id
Are you converting the amount var into a string before passing it to
the .set method?
orde
On Jun 22, 7:45 am, JohnH ictodo...@gmail.com wrote:
I'm reading an integer value from an xls. file and save it in a
variable called amount.
Afterwards, I'm trying to send that variable value
Flash isn't supported in watir. There is/was a flashwatir fork, but
I'm not sure if it's maintained anymore.
On Jun 17, 12:05 am, Jasmine nicely...@hotmail.com wrote:
I just start learning the watir,I have a problem about it in the
project.Watir doesn't support the tag of the object,so how to
This is more of a ruby question than a watir question. I'd suggest
reading up on common control structures. There is good documentation
at http://www.ruby-lang.org/en/documentation/ or (specific to your
question)
http://www.howtogeek.com/howto/programming/ruby/ruby-if-else-if-command-syntax/
I'd agree with the post above. Unless you have some other compelling
reason, the approach above should be fine.
In any event, $1 is returning nil in this code snippet:
if /LI class=.*id=mainTabsId__CaseDetailsA class=(\S*)
onclick=.*/
begin
ie.link(:class, $1).click
rescue = e
If the failing task deals with .js popups and the passing task
doesn't, that might be something to look at.
HTH
orde
On Jun 14, 7:00 am, chachster chachi.rich...@gmail.com wrote:
Hi,
I've heard that running watir scripts via the windows scheduled task
might not be supported and generally
This is more of a ruby question than watir question, but you can take
a look at the Net:HTTP class:
http://ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTP.html
orde
On May 16, 5:53 am, Сергей Демьянчук sergeydemjanc...@gmail.com
wrote:
Hi, Amit
This is possible with Watir if you
check out http://wiki.openqa.org/display/WTR/Pop+Ups
Hope it helps.
orde
On May 11, 7:16 am, Vikas Garg vikas22...@gmail.com wrote:
Hello, while writing script for my website on IE, I am getting some problem:
While logging in my website on Internet Explorer, I am getting a pop-up
puts browser.div(:class, system).text will print 123456
To see all tables on a page, use the show_tables method:
http://rdoc.info/gems/watir/1.8.1/Watir/IE#show_tables-instance_method
Hope it helps.
orde
On May 5, 3:14 am, Ashu ashay.n...@gmail.com wrote:
Is there an alternative wherein I can
I use scrollintoview on IE7/8 + WinXP/7 without any errors (usually on
div tags to reorient the page above the fold). Example:
browser.div(how, what).document.scrollintoview
orde
On Apr 21, 8:24 am, Abe Heward abe.hew...@gmail.com wrote:
My code:
$ff.checkbox(:id, stdOptOut
works with IE. Hope it helps.
orde
On Apr 21, 2:55 am, Alastair Montgomery doodl...@gmail.com wrote:
Having talked with our developers we would only need to be able to fire the
following events;
keydown, keyup, mousedown, mouseup and paste.
So really need a way of being able to pass a key
If I'm following your question correctly, you can activate the Enter
key via the send_keys method.
For example: browser.send_keys('{ENTER}')
For more info, see
http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/IE.html#M000497
Hope it helps.
orde
On Apr 13, 1:01 pm, a b cristina.watir.toro
FYI: I upgraded a couple of VMs (one XP; one Win7; both running IE8.x)
to 1.8.1.rc1 and ran a subset of existing scripts without any issues.
On Apr 8, 8:07 am, Charley Baker charley.ba...@gmail.com wrote:
My guess is that there's some javascript event on your select list that's
not getting
Find a way to determine the value of div class=system and assign
it to a variable.
On Mar 3, 1:35 am, Ashu ashay.n...@gmail.com wrote:
The xpath for the html
html trtd class=normalcounter change/tdtd
class=normaldiv class=system1/div/td/tr
is xpath
I'm using watir 1.7.1, but there are 2 files named wait.rb and
element_extensions.rb (in *\commonwatir-1.7.1\lib\watir), which
contain the Wait and ElementExtensions modules.
These modules contain the method(s) that you want (i.e. the .until
method).
orde
On Mar 2, 12:05 pm, chsonnu chso
I'm not sure what your question is?
+1.
td tags can be accessed via the .cell method:
http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html#M000298
orde
On Jan 12, 9:24 am, Basim Baassiri ba...@baassiri.ca wrote:
I'm not sure what your question is?
On Wed, Jan 12, 2011
Try 'speed=:fast'. For example:
browser = Watir::IE.new
browser.speed=:fast
It's documented at
http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/IE.html#M000470
Hope it helps.
orde
On Jan 4, 1:12 pm, Emmanuel Cecchet cecc...@gmail.com wrote:
No, this is the set() operation that generates
Another State/).fire_event(onclick)
Hope it helps.
orde
On Dec 7, 2:21 pm, LizLeong elc.le...@gmail.com wrote:
I'm running Ruby1.8.7 patchlevel 249 with Watir 1.6.7 on WinXP.
I'm trying to click on the text Add Another State on a web page. It
looks like a link, but I am having trouble hooking
I don't ever find myself using xpath, but you could look here:
http://wiki.openqa.org/display/WTR/XPath
Hope it helps.
orde
On Nov 24, 3:01 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote:
I am not sure I know how. could I get help on that?
On Nov 24, 1:16 am, Željko Filipin zeljko.fili
Not according to
http://wiki.openqa.org/display/WTR/HTML+Elements+Supported+by+Watir.
Check out the select_list method, and there's a red X for :title
attribute.
orde
On Nov 23, 11:47 am, Shlomit Gazit shlomitpatr...@gmail.com wrote:
Is there an option to use title for option
You should be able to capture the action attribute like this:
action_attribute = @browser.form(:name, mainForm).action
Hope it helps.
orde
On Nov 15, 8:20 am, Shiv tms...@gmail.com wrote:
Hello,
This is my html:
form name=mainForm action=/sma/operator/pmanager/pmotion/add.do
method=post
Try:
puts @browser.cell(:class, pageContent).text
Hope it helps.
orde
On Nov 5, 2:46 pm, Basim Baassiri ba...@baassiri.ca wrote:
What code have you tried?
You could use Xpath to retrieve the value looking at the class (if its
unique to the page)http://wiki.openqa.org/display/WTR/XPath
This page lists the supported attributes for each HTML element:
http://wiki.openqa.org/display/WTR/HTML+Elements+Supported+by+Watir
You should be able to do the following:
browser.radio(:value, 4).click
Hope it helps.
orde
On Aug 25, 5:09 pm, lawcab law...@gmail.com wrote:
Hi,
need help
Check out: http://wiki.openqa.org/display/WTR/Pop+Ups
Hope it helps.
orde
On Aug 17, 7:33 am, Chan Nguyen atbl1...@gmail.com wrote:
Hi Charley,
Thanks for your response, however I think it's too general for a
newbie for me. By mailing list, did you mean searching in this 'watir'
group
orde again,
I tried to use your second method. Unfortunately, I always got not
exists when I tested the link
a href=javascript:\\ onclick=window.open('http://
media.rapmlsstg.com/help/10.01.01/', 'newWin',
'menubar=yes,toolbar=yes,resizable=yes,directories=no,scrollbars=yes,status
=yes
, /some_unique_part_of_href/).fire_event('onclick')
Hope it helps.
orde
On Aug 12, 11:14 am, Melissa meisa...@gmail.com wrote:
I'm trying to get my Watir test to click the link below, and I'm
coming up empty. I've tried accessing it by text, href, title, cell,
table, link index and anything else I
Try:
ie.link(:class, sWhiteLink).fire_event('onclick')
For reference:
http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Element.html#M000557
Hope it helps.
orde
On Aug 12, 1:43 pm, Chan Nguyen atbl1...@gmail.com wrote:
Hi,
I used Firebug to locate the element, it's a text link. And here
reference doc).
Hope it helps.
orde
On Aug 12, 1:22 pm, Chan Nguyen atbl1...@gmail.com wrote:
Hi everyone,
I encountered a problem that when clicking on a link, it will open a
separate page. In other words, I will have 2 pages, so if I want to
verify the web is doing correctly? What should I do
.
Hope it helps.
orde
On Jul 28, 2:08 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
On Tue, Jul 27, 2010 at 10:48 PM, Jason freezingki...@gmail.com wrote:
I might post a few discussions here over the coming days trying to
better improve my framework,
You could also take a look
I don't run Vista, but I do recall some need to run as administrator
on Vista threads. You can search this forum and/or this FAQ blurb
might help:
http://wiki.openqa.org/display/WTR/FAQ#FAQ-WhatshouldIdoiftwobrowserwindowsappearwhenrunningatestunderWindowsVista%3F
orde
On Jul 28, 1:59 pm
Checkout this thread:
http://groups.google.com/group/watir-general/browse_thread/thread/a0504c3358716dbb/3b17fb365356c8f1?hl=enlnk=gstq=scroll#3b17fb365356c8f1
Hope it helps.
orde
On Jul 21, 9:41 am, John Fitisoff jfitis...@yahoo.com wrote:
Might be possible to set focus on the element
I'm running the following, but I'm not seeing the problem you
describe:
IE: 8.0.7600.16385
Ruby version: 1.8.6
WATIR version: 1.6.5
OS: Win7
orde
On Jul 20, 6:11 am, mattchurchy mattchur...@gmail.com wrote:
Is anyone else having problems getting Watir to work with Internet
Explorer 8 after
Did you try just browser.image(:class, gwt-Image).click or
browser.image(:class, gwt-Image).fire_event(onload)?
orde
On Jul 13, 12:59 pm, Basim Baassiri ba...@baassiri.ca wrote:
pre-conditions:
ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
gem list watir
*** LOCAL GEMS
Apparently, WatirMaker was renamed WatirRecorder, but it's not clear
that it's being actively supported. And I'm going to avoid the debate
about the benefits/drawbacks of recorders ;)
Here's a download link: http://watir-recorder.openqa.org/
Hope it helps.
orde
On Jun 23, 1:22 am, Sohail
on the
calender image and then use the fire_event method to trigger the event
handlers in the elements that you need to access.
Here's the link to the fire_event documentation:
http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Element.html#M000557
Hope it helps.
orde
On Jun 24, 4:17 am, naresh
The anchor tag has event handlers associated with it (e.g. onClick),
so you might need to trigger the event. Check this out:
http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Element.html#M000557
Example syntax: browser.link(:id, 'id').fire_event('onclick')
Hope it helps.
On Jun 23, 1:41 pm,
-webdriver
and chromewatir too
and i can not use click_no_wait method too
so i think chromewatir not support popup , am i right?
On Jun 16, 4:13 am, orde ohil...@gmail.com wrote:
I generally test using IE, but this is the link to the FAQ:
http://wiki.openqa.org/display/WTR/Pop+Ups
I generally test using IE, but this is the link to the FAQ:
http://wiki.openqa.org/display/WTR/Pop+Ups
Hope it helps.
On Jun 14, 9:20 pm, NumOi3 numobjaka...@gmail.com wrote:
Hi All,
I am working with web-driver for test google chrome browser.
and there's pop up is generated after
The Ruby IO and File classes contain untold goodies. I'd suggest
reading up on them:
http://www.ruby-doc.org/core/classes/File.html
http://www.ruby-doc.org/core/classes/IO.html
Hope it helps.
orde
On Jun 3, 7:49 am, Adam Reed reed.a...@gmail.com wrote:
With respect, file manipulation
Sounds like you need to attach to the second browser instance. Check
out http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/IE.html#M000464
The syntax is like this: browser = Watir::IE.attach(:url, the_url)
or browser = Watir::IE.attach(:title, the_title)
Hope it helps.
orde
On May 20, 8:44 am
Try something like this:
browser.link(:text, text).fire_event('onclick')
For reference:
http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Element.html#M000557
orde
On May 5, 7:16 am, Rodrigo rodrigo.bert...@gmail.com wrote:
Hi guys,
I'm trying to click a button I have on a site I'm working
that helps.
orde
On Apr 9, 4:24 am, arihan sinha arihan.si...@googlemail.com wrote:
I am using wait_until and its working fine and it seems the default value is
60 secs. I mean it waits for 60 secs . If it doesnt find then status is
fail.
but if I want to change that to say 120 secs ( because
there's an instance method in the Waiter class on line 36 that
should do the trick (note: untested): @@default_timeout = 60.0
I obviously meant class variable ;)
On Apr 9, 10:14 am, orde ohil...@gmail.com wrote:
Take a look
athttp://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Waiter.html
to execute autoit commands
within watir scripts. You can check out the send_keys method on
http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/IE.html#M000497.
Hope that helps.
orde
On Apr 4, 6:31 pm, Rats crapats...@yahoo.com.au wrote:
On Apr 2, 4:27 am, orde ohil...@gmail.com wrote:
Use autoit
Use autoit (http://www.autoitscript.com).
Here's the function list for Send:
http://www.autoitscript.com/autoit3/docs/functions/Send.htm
Example syntax: browser.send_keys({TAB}{DOWN})
On Mar 31, 7:03 pm, Rats crapats...@yahoo.com.au wrote:
Ok, I've successfully clicked on a link and a new
Alister/Z - Let me know if you need rides to/from the airport. Then
again, you probably have a limo waiting (after flying 1st class,
naturally).
On Apr 1, 8:28 am, jw joshuawal...@gmail.com wrote:
good one Alister! I usually get taken on this day but everybody at my
office said to expect
Something like this should work:
browser.link(:index=0, :text=Share).click
Watir uses zero-based indexing (although I think firewatir is
different). So, the example above would click on the first link where
the text is Share.
Hope it helps.
On Mar 11, 3:09 pm, Shlomit Gazit
Nice that you got it worked out.
One question, though.
Open IE, go to the website you're testing, right click, and select
Encoding. Is Unicode (UTF-8) selected?
On Mar 10, 8:26 am, George george.sand...@gmail.com wrote:
I'm using IE. I tried using gsub!(/Â/, ), but I couldn't remove the
it to UTF-8?
On Mar 10, 9:44 am, orde ohil...@gmail.com wrote:
Nice that you got it worked out.
One question, though.
Open IE, go to the website you're testing, right click, and select
Encoding. Is Unicode (UTF-8) selected?
On Mar 10, 8:26 am, George george.sand...@gmail.com wrote
#14f71f58ec631893
http://groups.google.com/group/watir-general/browse_thread/thread/4b5b7622f4ad8a82/ceb6a3d140a7f0ec?lnk=gstq=automating+gmail#ceb6a3d140a7f0ec
If you can avoid automating gmail, I'd strongly advise it.
Hope that helps..
orde
On Mar 10, 3:21 am, Dilip M lovingdilip...@gmail.com
favorite search engine, and that should point you in the right
direction (hopefully).
Hope that helps.
orde
On Mar 9, 8:58 am, George george.sand...@gmail.com wrote:
I'm not sure if this is a Watir or a Ruby question. I'm pulling all
the contents from a select list, and when I display each option, I
, 11:46 pm, orde ohil...@gmail.com wrote:
Is there a Download Complete prompt/popup? If so, you could wrap this
section of solution #2, and it will give you an approx. download
time.
Otherwise, you might be able to use the File class (e.g. see if the
downloaded file exists? is the size
- time_end
But my scripts exist when the file starts downloading.
Please help on this.This is urgent for my project to measure the file
download time.
Is there any other way to do this?
Thanks in advance
Maumita
On Feb 11, 2:14 am, orde ohil...@gmail.com wrote:
I've used solution #2
in an if/else statement. Or use begin/rescue/
end:
begin
# assert/verify something (e.g. assert(browser.link(:id,
id).exists?)
rescue
# log the failure if it fails.
end
Hopefully, this helps point you in the right direction.
orde
PS: In terms of best practices for reporting to test results
I've used solution #2 on http://wiki.openqa.org/display/WTR/File+Downloads.
You should be able to modify that code to get an approximate download
time:
time_start = Time.now
# code
# code
time_end = Time.now
download_time = time_start - time_end
Hope it helps.
orde
On Feb 10, 1:30 am, Maumita
/rdoc/1.6.5/classes/Watir/PageContainer.html#M000192
orde
On Feb 9, 12:14 pm, tester86 sagar.am...@gmail.com wrote:
Hi
The value 601 is stored in total and I want to make sure that 'total'
matches the value on the screen (overall total). Is there any way that
I can compare to make sure
The .html method is returning a string value. So, you're adding
14.56 and 85.00 to create 14.5685.00
You need to convert the a and b variables to a numeric class. In this
case, you want to use .to_f:
total = a.to_f + b.to_f
Hope that helps.
orde
On Feb 8, 12:45 pm, tester86 sagar.am
Sorry that didn't work for you. Then again, I'm guess I'm not clear
regarding what you're trying to accomplish, either.
These pages contain info on the Thread class:
http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_threads.html
http://ruby-doc.org/core/classes/Thread.html
On Feb 5, 5:33
You can set the browser as invisible after launching the browser
(from http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/IE.html#M000266):
browser = Watir::Browser.new
browser.visible=(0)
Not sure if that's what you're looking for, tho. Hope it helps.
orde
On Feb 4, 12:14 am, venkat
if it fails.
end
For more detailed info, I'd strongly suggest getting familiar with
http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_exceptions.html
and/or http://www.ruby-doc.org/core/classes/Exception.html
orde
On Feb 4, 8:55 am, tester86 sagar.am...@gmail.com wrote:
Hi
Question
Ruby has a Logger class: http://www.ruby-doc.org/core/classes/Logger.html
It should deliver exactly what you're looking for. Hope it helps.
orde
On Feb 1, 2:02 am, fharper1961 fhar...@greenliff.com wrote:
Hi everyone,
I've started using Watir, and it would seem really useful if Watir
could
Check out http://jira.openqa.org/browse/WTR. Click Components
SafariWatir.
On Jan 29, 9:14 am, QAguy qablogm...@gmail.com wrote:
Where can one find the list of open safariwatir bugs to see if this is
listed?
On Jan 29, 6:01 am, Yuping Zhong littlezhong...@gmail.com wrote:
I think it is
it helps.
orde
On Jan 25, 4:30 pm, capri capricorn...@gmail.com wrote:
I replaced click with click_no_wait in my code..doesn't seem to work..
just stalls at this point and doesnt proceed further to click the
'Run' button of the file download - security warning window. any
thoughts on this?
many
Try click_no_wait instead of click on this line:
ie.link(:html,/return InstallHelper.clickedDownload()/).click
Also, check out: http://wiki.openqa.org/display/WTR/Basic+Authentication
Hope it helps.
On Jan 22, 2:53 pm, capri capricorn...@gmail.com wrote:
Hi,
I tried the below code to
.
orde
On Nov 20, 7:49 am, Rodrigo rodrigo.bert...@gmail.com wrote:
Hi everybody,
I'm having some issues working with img tags. I've tried some methods
like ie.button, ie.image, ie.click but no one of them works when
running the watir script.
This is the html I have:
img alt=Manage Account src
Also, check out http://www.ruby-doc.org/core/classes/Test/Unit.html.
Hope it helps.
On Nov 13, 3:10 pm, Tiffany Fodor tcfo...@comcast.net wrote:
Also, you'll need to require the test file (with a relative path, if
it's not in the same directory):
require 'test'
In case it helps, I've
1. How do I check my envirnoment variables for ruby?
This will give you the list (from command line): ruby -e 'puts
global_variables.sort'
This will give you the value for an individual env var: ruby -e 'puts
[env_var]'. For example: ruby - e 'puts $DEBUG'
orde
On Nov 10, 8:47 am, tester86
Check this out:
http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIfixaWIN32OLERuntimeErrorwhenIuseAutoIt%3F
Hope that helps.
On Oct 26, 10:48 am, Shlomit Gazit shlomitpatr...@gmail.com wrote:
I am getting this in the console, but it is not breaking the test, I
just need manually to click on
This should do it:
browser.send_keys({SHIFT}{ALT}{T})
On Oct 15, 9:57 am, Paul Rogers paul.rog...@shaw.ca wrote:
you'll have to use autoit. This page has the key
combinationshttp://www.autoitscript.com/autoit3/docs/functions/Send.htm
Paul
On Thu, Oct 15, 2009 at 10:36 AM, Andrew
This thread appears to cover your scenario:
http://groups.google.com/group/watir-general/browse_thread/thread/f87efefd3b4a8d7/50ff17894536549b?lnk=gstq=%28hwnd%2C+%22Cancel%22%29#50ff17894536549b
Hope that helps.
On Oct 13, 1:50 am, Pallavi Sharma write2pall...@gmail.com wrote:
Hi
I have a
http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdealwithtimingissuesandnotusesleep%3F
Hope that helps...
On Oct 15, 10:55 am, Shlomit Gazit shlomitpatr...@gmail.com wrote:
One ting I didnt mention is that the new machine is a VMFusion Windows on
MAC.
I sometimes success in finding the popup
I also experienced the same problem using WinXP SP3 + IE8.x
Followed install instructions and tried to check watir version (i.e.
ruby -e 'require watir; puts Watir::IE::VERSION' on command line):
-e:1: no such file to load -- watir/ie (LoadError)
On Oct 9, 1:21 pm, Nathan Lane
the buttons are input
type=button, like this:
input type=button id=1 value=1 button
input type=button id=2 value=2 button
input type=button id=3 value=3 button
Hope that helps.
orde
On Oct 7, 6:11 am, kat katfor...@gmail.com wrote:
Watir:Buttons is supposed to return all
According to this page, there's no close_all method for firewatir:
http://wiki.openqa.org/display/WTR/Firewatir+Compatibility
Could be out of date, though...
On Oct 7, 11:28 pm, Pallavi Sharma write2pall...@gmail.com wrote:
Hi
Is it possible to close all firefox instances open with
something like this(?):
browser.lis.each do |x|
puts x.text
end
Hope that helps.
On Oct 8, 2:09 pm, George george.sand...@gmail.com wrote:
Hello everyone,
Is it possible to iterate each line item (li) text in an unordered
list (ul)?
Thanks,
George
Maybe something like:
browser.text_field(:id, 'id').visible?
http://wtr.rubyforge.org/rdoc/classes/Watir/Element.html#M000318
Hope that helps.
On Sep 21, 1:31 pm, ravi ravi8...@gmail.com wrote:
I have a situation
I have a text box which pops up when I select a option from a
selectlist
Ash - glad you got it working.
Regarding the regular expression, SciTE recognizes this as valid:
$links.detect { |$links| /^http:\/\/word/=~ $links }
How is the format incorrect?
orde
On Sep 14, 2:13 am, ash ashbr...@gmail.com wrote:
OK, so I am a plonker.
Just needed to store the result
Have tried the line below but it gets confused because of the
extra //.
$links.detect { |$links| /^http://word/=~ $links }
Is it possible to tell watir/ruby to ignore the extra forward slashes?
Does this work?
$links.detect { |$links| /^http:\/\/word/=~ $links }
Hope it helps.
On Sep
You should take a look at http://wiki.openqa.org/display/WTR/XPath.
Something like this should work:
puts browser.link(:xpath,//a...@href='/job/peoplesoft-b-test-b-b-
analyst-b/brisbane/15956235/']/).text
Hope it helps.
On Sep 10, 8:32 am, Guy guy.kid...@gmail.com wrote:
Hi Orde
This will give you the number of links:
browser = [your browser of choice]
puts browser.links.length
---
To create the loop:
while browser.image(:src, /bullet_search_white_small.gif/).exists?
puts 'exists'
sleep 2
browser.refresh
end
Hope that helps.
orde
On Sep 9, 7:56 am, Guy
Are you clicking a link on a webpage?
Seems unusual that you'd double-click it, but you could just do it
twice:
browser.link(:id, 'id').click
browser.link(:id, 'id').click
or
2.times do
browser.link(:id, 'id').click
end
Hope that helps.
orde
On Aug 26, 10:56 pm, jane.liu jane.li
Check out: http://wiki.openqa.org/display/WTR/Methods+Supported+by+Element
Multiple attributes are supported for the frame tag, but the 'class'
attribute is not supported for the frame tag.
Hope that helps...
orde
--~--~-~--~~~---~--~~
You received this message
Check these pages out:
http://wiki.openqa.org/display/WTR/Pop+Ups
http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups
orde
On Jun 23, 5:24 am, Maumita maumita.majum...@gmail.com wrote:
Hi,
I am facing a problem.
I had written a script that submit a form.Befor submitting the form,if
any
This works in IE:
#
require 'watir'
b = Watir::IE.start('http://www.webdevelopersnotes.com/tutorials/
javascript/creating_opening_new_window_pop_ups_javascript.php3')
b.link(:text=/Open a new window/).click
b1=Watir::IE.attach(:title,/Welcome/)
puts b1.title
Hi Jason--
This thread might help:
http://groups.google.com/group/watir-general/browse_thread/thread/d98426e73262f416/05db8fa64b6b8cd6?lnk=gstq=right+click+new+window#05db8fa64b6b8cd6
orde
--~--~-~--~~~---~--~~
You received this message because you
1 - 100 of 119 matches
Mail list logo