[wtr-general] How to compare the userinterface output using watir tool

2011-09-06 Thread ss
how to import UI output content to open office calc sheet..i will try that by using insert menu-link to external data- but its not working.. i can't import the web page data-open office calc sheet. Any other way available to import the web page content? also i was try to compare the UI output

[wtr-general] Image.Save(path) Issues

2011-09-06 Thread Z
Hi All, I am new to Ruby and to Watir. I am attempting to save an image with the save method and I am now stuck. It appears that the Save Picture dialog box is hanging and not accepting input from the method. Environment: Watir 1.9.2 upgraded to 2.0.1 (I mention this because both directories

[wtr-general] Fwd: Time to get the SeConf ball rolling: committee

2011-09-06 Thread Željko Filipin
More at http://groups.google.com/group/seconf/browse_thread/thread/f9b5a5593caea56e Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host -- Forwarded message -- From: Simon Stewart simon.m.stew...@gmail.com Date: Mon, Sep 5, 2011 at 9:53 PM

[wtr-general] Re: Ruby 1.9.2 and Watir 2.01 indexing compatibility

2011-09-06 Thread Jarmo Pertman
Does Watir::Browser.new work instead of Watir::IE.new? Jarmo On Sep 2, 6:45 pm, George Wiley george.wi...@gmail.com wrote: Here is my test code. Maybe you can see what my problem is. The below code works in 2.0.1 if IDX value is 0 but fails if IDX is 1. require 'watir'

[wtr-general] Re: Ruby 1.9.2 and Watir 2.01 indexing compatibility

2011-09-06 Thread George Wiley
I tried it both ways with the same results. I found that it works when I use the syntax below. I have to change my code in all my old scripts but it will run with old and new versions of Watir with this change. use: ie.table(:id, 'Menu').row(:index = 1).click() # this syntax works when the

[wtr-general] Check focus

2011-09-06 Thread Litha K
Hi all, I want to check whether the focus is on a particular text field on page load, for e.g. focus on google search box when visiting www.google.com Is there is a watir method to check this pls? I tried autofocus?, but its returning false. Many thanks, Kay -- Before posting, please read

[wtr-general] Post series about WatirSplash 2

2011-09-06 Thread Jarmo Pertman
In case anyone is interested then i've started with a WatirSplash 2 [1] blog post series. So far i've written two articles: WatirSplash 2 - http://www.itreallymatters.net/post/9085718628/watirsplash-2 Fighting Against Gem Hell -

Re: [wtr-general] Re: Ruby 1.9.2 and Watir 2.01 indexing compatibility

2011-09-06 Thread brett sykes
Hey Jarmo, This sounds like it is caused by ( http://jira.openqa.org/browse/WTR-486 ). His HTML could essentially do something like this: html table id=a_table tr onclick=alert('row 1')tdrow 1/td tr onclick=alert('row 2')tdrow 2/td tr

Re: [wtr-general] Check focus

2011-09-06 Thread brett sykes
Use the show_active method: b = Watir::Browser.new b.goto 'http://www.google.ca' b.text_field(:name, 'q').set 'something' puts b.show_active #--- Brett On Tue, Sep 6, 2011 at 3:34 PM, Litha K litha...@googlemail.com wrote: Hi all, I want to check whether the focus is on a particular text

[wtr-general] Re: Check focus

2011-09-06 Thread Litha K
I am using watir-webdriver. when I do b.methods.sort, it doesn't show the method show_active and hence I get the message - NoMethodError: undefined method `show_active' for #Watir::Browser:0x1b46594 The test is actually to check where the focus is even before set 'something' in the text

Re: [wtr-general] Re: Check focus

2011-09-06 Thread brett sykes
That is correct, I am referring to the show_active method in Watir. This method isn't available in watir-webdriver. If you can't find a comparable method in watir-webdriver, then you can always try something like this: require 'watir-webdriver' b = Watir::Browser.new :ie b.goto

[wtr-general] text file data delimited by ; append to web text_field

2011-09-06 Thread byung
Below is the code I use to append data in a local text file into the text_field on the web page. How should I change the code below in order to append the second value in the text file delimited by ; in another text_field on the web page?? now.. the test.txt file has the below values: test1

[wtr-general] Unable to click the link (anchor and span)and use xpath in ruby script

2011-09-06 Thread Hari
I'm trying toclick a link the aanchor tags from the html shown below. I'm running firewatir on Windows Xp and have the jssh plugin installed. li onkeydown=return webFXTreeHandler.keydown(this, event) class=navTreeLeaf id=cwc_menu_local:ROOT.Find a Request