[wtr-general] Re: Using Watir to Click a Button that has OnClick attribute

2012-09-07 Thread orde
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

[wtr-general] Re: watir help

2012-02-01 Thread orde
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

[wtr-general] Re: Export entire html table to a text document

2011-12-02 Thread orde
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

[wtr-general] Re: New member of the Watir team

2011-10-26 Thread orde
+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

[wtr-general] Re: retrieve drop list items/values

2011-10-20 Thread orde
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

[wtr-general] Re: How to click on a div tag

2011-10-13 Thread orde
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

[wtr-general] Re: Scroll DIV element in watir-webdriver

2011-09-27 Thread orde
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

[wtr-general] Re: Can't access HTML in modal dialog using Ruby 1.9.2 and Watir 2.0.2

2011-09-16 Thread orde
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

[wtr-general] Re: Can't access HTML in modal dialog using Ruby 1.9.2 and Watir 2.0.2

2011-09-16 Thread orde
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

[wtr-general] Re: meaning of

2011-08-30 Thread orde
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

[wtr-general] Re: Post form not on the page

2011-08-15 Thread orde
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

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

2011-07-19 Thread orde
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

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

2011-07-19 Thread orde
? 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

[wtr-general] Re: sending i18n data to remote computer using watir scripts.

2011-07-08 Thread orde
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

[wtr-general] Re: Report generation with the Watir

2011-06-28 Thread orde
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

[wtr-general] Re: How to get list content

2011-06-27 Thread orde
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

[wtr-general] Re: set (variable) issue

2011-06-22 Thread orde
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

[wtr-general] Re: how to read the object

2011-06-17 Thread orde
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

[wtr-general] Re: Need to access the login window

2011-06-16 Thread orde
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/

[wtr-general] Re: Need to click on a link which has only the class name.

2011-06-16 Thread orde
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

[wtr-general] Re: watir scripts in windows scheduled task

2011-06-14 Thread orde
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

[wtr-general] Re: How to deal with HTTP responce

2011-05-16 Thread orde
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

[wtr-general] Re: Handling pop up

2011-05-11 Thread orde
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

[wtr-general] Re: Printing a Text on Browser

2011-05-05 Thread orde
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

[wtr-general] Re: Moving a window

2011-04-21 Thread orde
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

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

2011-04-21 Thread orde
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

[wtr-general] Re: how to simulate Enter on a jumper box

2011-04-13 Thread orde
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

[wtr-general] Re: Watir 1.8.1.rc1 Released

2011-04-08 Thread orde
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

[wtr-general] Re: How to Trace the change in a field

2011-03-03 Thread orde
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  

[wtr-general] Re: Is there a 1.8.0 equivalent of Watir::Waiter.wait_until?

2011-03-02 Thread orde
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

[wtr-general] Re: Automating the object with in TD tag

2011-01-12 Thread orde
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

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

2011-01-04 Thread orde
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

[wtr-general] Re: Can't click on a nameless div

2010-12-07 Thread orde
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

[wtr-general] Re: Option in select

2010-11-24 Thread orde
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

[wtr-general] Re: Option in select

2010-11-23 Thread orde
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

[wtr-general] Re: Need help to capture a string from the action attribute

2010-11-15 Thread orde
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

[wtr-general] Re: Capture Text

2010-11-05 Thread orde
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

[wtr-general] Re: clicking a certain radio button with a specific value

2010-08-25 Thread orde
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

[wtr-general] Re: How to verify a result in a pop-up message dialog?

2010-08-17 Thread orde
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

[wtr-general] Re: How to verify the browser contains text in another page?

2010-08-13 Thread orde
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

[wtr-general] Re: Problem finding a way to access a link

2010-08-12 Thread orde
, /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

[wtr-general] Re: How to access a href link which is a java script?

2010-08-12 Thread orde
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

[wtr-general] Re: How to verify the browser contains text in another page?

2010-08-12 Thread orde
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

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

2010-07-28 Thread orde
. 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

[wtr-general] Re: Vista IE8... does not wait for

2010-07-28 Thread orde
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

[wtr-general] Re: Fwd: How to automate a scrollbar

2010-07-21 Thread orde
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

[wtr-general] Re: IE8 Update Broke Watir Support

2010-07-21 Thread orde
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

[wtr-general] Re: unable to click image in a div

2010-07-13 Thread orde
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

[wtr-general] Re: WatiR Recorder++

2010-06-24 Thread orde
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

[wtr-general] Re: Rich calender how to get value

2010-06-24 Thread orde
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

[wtr-general] Re: Gif not spawning child element

2010-06-23 Thread orde
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,

[wtr-general] Re: How to handle a pop up (google chrome)

2010-06-16 Thread orde
-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

[wtr-general] Re: How to handle a pop up (google chrome)

2010-06-15 Thread orde
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

[wtr-general] Re: How to create a file and save it.

2010-06-03 Thread orde
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

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

2010-05-20 Thread orde
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

[wtr-general] Re: How to access to onclick attribute

2010-05-05 Thread orde
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

[wtr-general] Re: synchronisation in ruby

2010-04-09 Thread orde
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

[wtr-general] Re: synchronisation in ruby

2010-04-09 Thread orde
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

[wtr-general] Re: How can I send a keystrokes using Watir?

2010-04-05 Thread orde
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

[wtr-general] Re: How can I send a keystrokes using Watir?

2010-04-01 Thread orde
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

[wtr-general] Re: HP acquires the Watir project, announces Wativ

2010-04-01 Thread orde
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

[wtr-general] Re: Same word different places on the page.

2010-03-11 Thread orde
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

[wtr-general] Re: Dealing with the  character

2010-03-10 Thread orde
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

[wtr-general] Re: Dealing with the  character

2010-03-10 Thread orde
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

[wtr-general] Re: Gmail compose automation

2010-03-10 Thread orde
#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

[wtr-general] Re: Dealing with the  character

2010-03-09 Thread orde
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

[wtr-general] Re: Measure download time of a file using watir

2010-02-12 Thread orde
, 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

[wtr-general] Re: Measure download time of a file using watir

2010-02-11 Thread orde
- 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

[wtr-general] Re: use verify instead of assert

2010-02-10 Thread orde
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

[wtr-general] Re: Measure download time of a file using watir

2010-02-10 Thread orde
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

[wtr-general] Re: div values in table

2010-02-09 Thread orde
/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

[wtr-general] Re: div values in table

2010-02-08 Thread orde
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

[wtr-general] Re: how to run watirscript in background

2010-02-05 Thread orde
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 

[wtr-general] Re: how to run watirscript in background

2010-02-04 Thread orde
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

[wtr-general] Re: Handle Failures in Watir

2010-02-04 Thread orde
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

[wtr-general] Re: Watir debug logging

2010-02-01 Thread orde
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

[wtr-general] Re: Issue with clicking submit in a site modal window

2010-01-29 Thread orde
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

[wtr-general] Re: File Download - Security Warning popup

2010-01-26 Thread orde
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

[wtr-general] Re: File Download - Security Warning popup

2010-01-22 Thread orde
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

[wtr-general] Re: what watir method use with img tag?

2009-11-20 Thread orde
. 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

[wtr-general] Re: Calling def cases into a Class

2009-11-13 Thread orde
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

[wtr-general] Re: Really....Ruby + Watir + Command Line

2009-11-10 Thread orde
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

[wtr-general] Re: Click ok on popup

2009-10-26 Thread orde
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

[wtr-general] Re: how to ALT+Shift+T ?

2009-10-15 Thread orde
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

[wtr-general] Re: Check if a Print Dialog appears or not

2009-10-15 Thread orde
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

[wtr-general] Re: watir tests are not passing on my environment

2009-10-15 Thread orde
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

[wtr-general] Re: Watir 1.6.5.rc1 - release candidate available for testing - redux

2009-10-09 Thread orde
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

[wtr-general] Re: watir:buttons returns only 1st button

2009-10-08 Thread orde
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

[wtr-general] Re: Close All browsers and Firewatir

2009-10-08 Thread orde
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

[wtr-general] Re: Iterating through an unordered list

2009-10-08 Thread orde
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

[wtr-general] Re: need a command to check for a feild is visible or not

2009-09-21 Thread orde
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

[wtr-general] Re: Selecting a url from an array

2009-09-15 Thread orde
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

[wtr-general] Re: Selecting a url from an array

2009-09-11 Thread orde
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

[wtr-general] Re: I'm looking for a way to count all PageTo(*) elements or to loop until the bullet_search_white_small.gif doesn't exist in the page

2009-09-10 Thread orde
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

[wtr-general] Re: I'm looking for a way to count all PageTo(*) elements or to loop until the bullet_search_white_small.gif doesn't exist in the page

2009-09-09 Thread 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

[wtr-general] Re: how to double click on Element

2009-09-03 Thread orde
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

[wtr-general] Re: Multiple attributes don't supported for FRAME element

2009-07-13 Thread orde
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

[wtr-general] Re: How to click on Ok of a pop-up message window

2009-06-23 Thread orde
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

[wtr-general] Re: firewatir attach() issue

2009-06-19 Thread orde
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

[wtr-general] Re: can I force javascripts links when clicked to load in a new window

2009-06-19 Thread orde
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   2   >