[wtr-general] Re: Is it possible to close the browser if the page is not loaded in given time?

2009-01-15 Thread Prince3105
Hi Experts, Please advise me, to avoid this issue can i change the ie-class file like below, def goto(url) @ie.navigate(url) sleep 20 return @down_load_time end just i changed the wait into sleep 20, will it work? My intention is browser should wait upto 20 seconds, still

[wtr-general] Re: Clicking a JavaScript image button

2009-01-15 Thread wesley chen
I don't know what will happen when the image button is triggered. Maybe it will succeed to separate the Javascript. such as: require 'watir' ie=Watir::IE.start(your address) ie.image(:id,/btnLogin_imgButton/).fire_event("onmouseup") # or ***.fire_event("onmousedown") or... ie.image(:id,/btnLogin_i

[wtr-general] Re: Code hangs after a div click

2009-01-15 Thread wesley chen
What's the detail information about your div? When the div is clicked, what will happen? Thanks. Wesley Chen. On Fri, Jan 16, 2009 at 9:14 AM, Michael Hwee wrote: > > > Try click_no_wait() > > > > - Original Message > From: "zeng0...@gmail.com" > To: Watir General > Sent: Thursday, J

[wtr-general] Re: Clicking a JavaScript image button

2009-01-15 Thread Oded
I've tried this previously to posting the thread, this gives the same result as the thing I posted, resulting in no error nor action. On Jan 15, 5:00 pm, wesley chen wrote: > require 'watir' > ie=Watir::IE.start(your address) > ie.image(:id,/btnLogin_imgButton/).click > > Thanks. > Wesley Chen.

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2009-01-15 Thread Bon
I installed JDK6, NetBeans 6.5, Ruby one-click installer(1.8.6-27). When I clicked button, popup does not pop. I uninstalled ruby1.8.6-27 and re-installed ruby1.8.6-26.exe as administrator. Popup works fine for me now. 1. Uninstall ruby1.8.6-27 and re-install ruby1.8.6-26.exe 2. Open DOS command p

[wtr-general] Watir scripts do not run when screensaver activates on PC

2009-01-15 Thread Misty M. Collins
I have beenbe running watir/rspec scripts on various machines. My scripts work great! However, when the scripts are ran on a virtual machine and the connection is closed but still running, the scripts do not work efficiently. In other words,when I close the virtual machine without logging off or

[wtr-general] Re: Code hangs after a div click

2009-01-15 Thread Michael Hwee
Try click_no_wait() - Original Message From: "zeng0...@gmail.com" To: Watir General Sent: Thursday, January 15, 2009 11:20:10 AM Subject: [wtr-general] Code hangs after a div click I have the following code: $browser.link(:text, "Media").click $browser.link(:text, "Conten

[wtr-general] Re: Drag and Drop with widgets

2009-01-15 Thread Paul Rogers
Ive been working on getting this done. Do you know what library is being used? Paul On Thu, Jan 15, 2009 at 3:22 PM, Moochie wrote: > > Does anyone know how to move widgets on a page? > > The class is ui-sortable. > > I've search all over and I'm unable to find any helpful information > about d

[wtr-general] Drag and Drop with widgets

2009-01-15 Thread Moochie
Does anyone know how to move widgets on a page? The class is ui-sortable. I've search all over and I'm unable to find any helpful information about drag and drop. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "W

[wtr-general] Re: After Updating ruby version from 1.8.4 to 1.8.6 and watir gem version 1.5.1.1192 to 1.5.1.1230 , am getting error with require command

2009-01-15 Thread Bret Pettichord
1. somehow you did not actually install watir. 2. you should use watir 1.6.2. it is better. bret Rahil wrote: > Hi Guys, > > Am using watir for quite some time with ruby version 1.8.4 and watir > gem version 1.5.1.1192. Till now it was working fine for me with this > version but just now i have

[wtr-general] Code hangs after a div click

2009-01-15 Thread zeng0...@gmail.com
I have the following code: $browser.link(:text, "Media").click $browser.link(:text, "Content Manager").click Watir::Waiter.wait_until { $browser.text.include? "tag all items" } $browser.div(:class, "collection-container-scroller").table (:index, 1)[1][1].div(:class

[wtr-general] Re: Test Results output capturing

2009-01-15 Thread JArkelen
http://wiki.openqa.org/display/WTR/HTML+report+class On Jan 15, 7:53 am, Jagdeep Jain wrote: > I got it through Rspec: > spec usingrspec.rb --format html > testresult.html > > On Jan 15, 11:31 am, Jagdeep Jain wrote: > > > I want to populate Watir results to HTML format. Is there any way to > >

[wtr-general] Re: Clicking a JavaScript image button

2009-01-15 Thread wesley chen
require 'watir' ie=Watir::IE.start(your address) ie.image(:id,/btnLogin_imgButton/).click Thanks. Wesley Chen. On Thu, Jan 15, 2009 at 8:04 PM, Oded wrote: > > Hello all, > I'm fairly new to Watir, I'm trying to click on a certain image button > with no success. > My code looks like this: >

[wtr-general] Clicking a JavaScript image button

2009-01-15 Thread Oded
Hello all, I'm fairly new to Watir, I'm trying to click on a certain image button with no success. My code looks like this: require watir ie = Watir::new ie.goto(host) ie.image(:id, 'btnLogin_imgButton').fire_event("OnMouseDown") ie.image(:id, 'btnLogin_imgButton').fire_event("OnMouseUp") ie.image

[wtr-general] Re: Using Watir TestCase with RSpec - Problem

2009-01-15 Thread Jagdeep Jain
Thanks John, this is really help full. On Jan 15, 4:36 pm, John Kolokotronis wrote: > I forgot to note that the above code does not contain a valid > assertion so the test will always pass. You can fix this with a > "should" statement, like this: > > $browser.contains_text("rubyforge.org").shoul

[wtr-general] Re: Using Watir TestCase with RSpec - Problem

2009-01-15 Thread John Kolokotronis
I forgot to note that the above code does not contain a valid assertion so the test will always pass. You can fix this with a "should" statement, like this: $browser.contains_text("rubyforge.org").should != nil # contains_text returns nil if no match is found... --~--~-~--~~--

[wtr-general] Re: Using Watir TestCase with RSpec - Problem

2009-01-15 Thread John Kolokotronis
Hi Jagdeep, I wouldn't recommend mixing both Test::Unit and Rspec - they can both be used as testing frameworks and there's no reason to use both IMO. To get a nicely formatted HTML report, I would rewrite your test as follows: require 'watir' require 'spec' describe "Google Test - with Rspec,

[wtr-general] Using Watir TestCase with RSpec - Problem

2009-01-15 Thread Jagdeep Jain
In the following code I am using Rspec for putting my results in proper format. If I am executing the below code by commenting the class declaration then its working fine but if I want to use watir class here like the code below then it not working and I got the following error on console. C:\Ru