[wtr-general] Using HTML report V2 - Reports displayed twice in HTML format

2010-11-08 Thread vasu
Hi, Iam using default HTML reporter. HTML report was displayed twice. Coded as per the example provided in google.search.rb. Only difference is: I Haven't used rescue as iam the getting the below mentioned error: C:/POC/html_class_v2/acs_poc.rb:64: syntax error, unexpected kRESCUE, exp ecting kE

[wtr-general] Re: Identify IP address

2010-11-08 Thread joedio
There are indeed commands in Ruby to do what you are looking to do. Suggest you look through the Ruby Rdocs or post to a Ruby group. http://ruby-doc.org/core/ Look at the grep command and the fileutils. If you need your test to do something outside of the browser you need to spend some effort an

[wtr-general] Re: Unable to install watir

2010-11-08 Thread Kevin Scott
Thank you - worked perfectly. On Nov 8, 4:46 pm, Charley Baker wrote: > Try this:https://rubygems.org/pages/download > > > > > > > > On Mon, Nov 8, 2010 at 2:35 PM, Kevin Scott wrote: > > When attempting to run gem update --system > > > C:\ruby>gem update --system > > Updating RubyGems... > > ER

Re: [wtr-general] Unable to install watir

2010-11-08 Thread Charley Baker
Try this: https://rubygems.org/pages/download On Mon, Nov 8, 2010 at 2:35 PM, Kevin Scott wrote: > When attempting to run gem update --system > > C:\ruby>gem update --system > Updating RubyGems... > ERROR:  While executing gem ... (Gem::RemoteSourceException) >    HTTP Response 302 > > The envir

[wtr-general] Unable to install watir

2010-11-08 Thread Kevin Scott
When attempting to run gem update --system C:\ruby>gem update --system Updating RubyGems... ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 302 The environment is setup as C:\ruby>gem env RubyGems Environment: - VERSION: 0.9.4 (0.9.4) - INSTALLATION DIRECTORY:

Re: [wtr-general] watir-webdriver fire_event('onmouseover') failing in IE

2010-11-08 Thread Michael
I know, but there was a patch attached to the ticket. No worries. On Mon, 8 Nov 2010 21:46:04 +0100, Jari Bakken wrote: > On Mon, Nov 8, 2010 at 6:35 PM, Michael wrote: >> Yes, it does look related to that. Is there an updated build of the dll anywhere for download instead of recompiling myse

Re: [wtr-general] watir-webdriver fire_event('onmouseover') failing in IE

2010-11-08 Thread Jari Bakken
On Mon, Nov 8, 2010 at 6:35 PM, Michael wrote: > Yes, it does look related to that. Is there an updated build of the dll > anywhere for download instead of recompiling myself with that fix in there. > It still hasn't made it into a release. > It's not fixed yet - the bug is still open. -- Befor

Re: [wtr-general] watir-webdriver fire_event('onmouseover') failing in IE

2010-11-08 Thread Michael
Yes, it does look related to that. Is there an updated build of the dll anywhere for download instead of recompiling myself with that fix in there. It still hasn't made it into a release. On Sat, 6 Nov 2010 02:08:18 +0100, Jari Bakken wrote: > On Sat, Nov 6, 2010 at 1:41 AM, Michael wrote: >>

RE: [wtr-general] Re: How to get back to the base browser window after closing the second browser instance

2010-11-08 Thread Rohan Premvallabh Ojha
Hi, You will have to re-atach the first window back to the instance after you have closed the second widnow. Something like : @obj.button(:x,y).click sleep 2 @obj=Watir::Browser.attach(:title,Second window) @obj.close sleep 2 @obj=Watir::Browser.attach(:title,First window) sleep 2

Re: [wtr-general] How to get back to the base browser window after closing the second browser instance

2010-11-08 Thread Ethan
This appears to be a frequently-encountered issue of firewatir; it cannot handle multiple browser windows. I recommend Vapir-Firefox which is a much-improved fork of Firewatir. see http://vapir.org/ for information on this library. On Mon, Nov 8, 2010 at 02:07, Pavithra wrote: > Hi, > I am testi

Re: [wtr-general] Capture Text

2010-11-08 Thread Basim Baassiri
this statement ie.text.include? checks the entire page and not the actual cell you might want to change this conditional check Basim On Mon, Nov 8, 2010 at 11:12 AM, Eric Mathiesen wrote: > Thanks for the pointer! > > I'm getting closer to finding that pesky string. Here's what I've written >

Re: [wtr-general] Capture Text

2010-11-08 Thread Željko Filipin
On Mon, Nov 8, 2010 at 5:30 PM, Eric Mathiesen wrote: > t[i].each do |cell| Add this line before it: puts t.inspect It will let you know what "t" contains. I think it contains nil since the error message is "undefined method `length' for nil:NilClass". Željko -- Before posting, please read h

Re: [wtr-general] Capture Text

2010-11-08 Thread Eric Mathiesen
Oops, sorry. Line 27 is t[i].each do |cell| I really do appreciate the help on this! Eric On Mon, Nov 8, 2010 at 8:24 AM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Mon, Nov 8, 2010 at 5:12 PM, Eric Mathiesen > wrote: > > from C:/Documents and Settings/eric.mathiesen/Desktop/f

Re: [wtr-general] Capture Text

2010-11-08 Thread Željko Filipin
On Mon, Nov 8, 2010 at 5:12 PM, Eric Mathiesen wrote: > from C:/Documents and Settings/eric.mathiesen/Desktop/fc90-script/845-Mo > dified/BVT/BVT-17815/debug.rb:27 And line 27 of debug.rb is? Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on

Re: [wtr-general] Identify IP address

2010-11-08 Thread Eric Mathiesen
Fortis type of test I would use QTP or other similar GUI interface testing tools. I have also had success with AutoIT. Watir is for Web Application Testing In Ruby Right tool for the right job type of thing. ;) Eric On Sun, Nov 7, 2010 at 10:14 PM, Chandu80 wrote: > Hello All, > I want

Re: [wtr-general] Capture Text

2010-11-08 Thread Eric Mathiesen
Thanks for the pointer! I'm getting closer to finding that pesky string. Here's what I've written after reading your links; ie.frame("foo").tables.each do |t| puts "since you don't have ID's, look at every table" puts t for i in 1..t.row_count puts "for every row in this table" puts i t[i]

Re: [wtr-general] Need help on how to locate how many tags are in the select_list

2010-11-08 Thread Jari Bakken
On Mon, Nov 8, 2010 at 4:03 PM, Usman Hussain wrote: > > there are two things i need to happen here. > The last option tag was added by myself. so i need to find out how > many options tags there are so that i can move my new option to the > top of the list. > Check out the docs for Watir::Select

[wtr-general] Need help on how to locate how many tags are in the select_list

2010-11-08 Thread Usman Hussain
Hi Guys, Im using watir-webdriver and ive come across a small problem. here is the HTML: /content/managedasset/newsinternational/slideshow/USMAN /content/managedasset/newsinternational/ slideshow/in_100_percent_welcome /content/managedasset/newsinternational/slideshow/in_meg2k

[wtr-general] Re: [Wtr-development] fire_event 'onchange' intermittently timing out?

2010-11-08 Thread Jarmo
Removing @container.wait is definitely not going to solve the problem since there could be some events which should wait. You could try to add some sleep statements before fire_event and also provide us with the stack where that timeout exactly occurs. Jarmo On Mon, Nov 8, 2010 at 8:11 AM, Aliste

[wtr-general] Re: How to get back to the base browser window after closing the second browser instance

2010-11-08 Thread Pavithra
Karthik, I tried using but its throwing the same error. One interesting thing here is it is able to identify the initial browser however its failing to find the elements. I tried $browser.close() (after closing the 2nd browser instance) it worked, but not identifying the elements in the browser [w