[wtr-general] Re: text_field

2008-10-09 Thread Edward Deng
Is your code in a FRAME or IFRAME? if so, please try " ie.frame(,).text_field(:name,'miseCode').set('1234')" On Wed, Oct 8, 2008 at 8:40 AM, wesley chen <[EMAIL PROTECTED]> wrote: > Weird, I can make it with your code. > > > > -- Regards, Edward Deng --~--~-~--~~--

[wtr-general] Re: Tool to check a website for 404 errors

2008-10-09 Thread Natasha Ranney
Hi Alister, Thanks for sharing the script :). But this script seems to check only the main URL. I was looking for some script, which will scan through all the links for a particular website and list all those links that result in 404 errors. So basically it will scan through each page and its

[wtr-general] Re: text_field

2008-10-09 Thread Gustavo Labbate Godoy
Hi, Your input type is hidden. Instead using text_field, use hidden ie.hidden(xxx,"xxx").set("yyy") I hope this helps * Gustavo Godoy Brasil * Fukaya Yoshikazu wrote: > help me > > How can I access to the following text_field ! > I could not get to it by using > "ie.text_field(:name,'miseCode

[wtr-general] Re: Tool to check a website for 404 errors

2008-10-09 Thread Alister Scott
Hi Natasha, This script I wrote should check for 404 errors and send an email when they are found. http://watirmelon.wordpress.com/2008/05/15/simple-web-application-monitoring-with-watir/ I use the watir method named check_for_http_error() Hope this helps your cause. If you do decide to develo

[wtr-general] IE POP UP Window

2008-10-09 Thread FM
Hi, I am trying to test IE pop up window that looks similar to the 'Reload Page with Form' (http://wiki.openqa.org/display/WTR/Reload+Page+with +Form) with OK and Cancel button. I need to click on the OK and Cancel buttons, and have tried the following but it freezes up Watir: $ie.modal_dialog.bu

[wtr-general] Re: Clicking a menu item

2008-10-09 Thread Željko Filipin
On Wed, Oct 8, 2008 at 8:34 PM, Fatema Karim <[EMAIL PROTECTED]> wrote: > but now when it clicks on the menu it opens up a tiny window inside span where I need to click a button but that does not seem to work properly :( Fatema, This tells us not enough to help you. Can you be more specific? Žel

[wtr-general] Re: where was the send method placed in?

2008-10-09 Thread Željko Filipin
On Thu, Oct 9, 2008 at 5:10 AM, bugs apple <[EMAIL PROTECTED]> wrote: > could you tell me which and where the rb file is the Object class placed in? I think he is talking about Ruby's Object class. http://www.ruby-doc.org/core/classes/Object.html Željko -- http://watirpodcast.com/bret-pettichord

[wtr-general] Converting Dates Question

2008-10-09 Thread Moochie
How can I convert the following dateformate? puts "2007-12-30".strftime("%m/%d/%Y") puts "2007-12-30".to_a.strftime("%m/%d/%Y") The I've pulled the date from the database, but I want to format as 12/30/2007. --~--~-~--~~~---~--~~ You received this message becau

[wtr-general] Re: Converting Dates Question

2008-10-09 Thread Tiffany Fodor
There may be a slicker way to do it, but here's a method I wrote to solve the same problem. def dateString(date) dateArray = Array.new dateArray = date.split('-') dateYear = dateArray[0] dateMonth = dateArray[1] dateDay = dateArray[2] date = "#{dateMonth}/#{dateDay}/#{da

[wtr-general] Re: Converting Dates Question

2008-10-09 Thread Jason Trebilcock
Doing it through SQL: select date_format(now(), '%m/%d/%Y') Replace now() with your variable and give it a whirl. On Thu, Oct 9, 2008 at 11:08 AM, Moochie <[EMAIL PROTECTED]>wrote: > > > How can I convert the following dateformate? > > puts "2007-12-30".strftime("%m/%d/%Y") > puts "2007-12-30".t

[wtr-general] Re: Converting Dates Question

2008-10-09 Thread andy sipe
If the value you are getting from the database is a string, try this: irb(main):004:0> require 'date' => true irb(main):005:0> dt = DateTime.parse('2007-12-30') => # irb(main):006:0> dt.year => 2007 irb(main):007:0> dt.day => 30 irb(main):008:0> dt.month

[wtr-general] Re: Clicking a menu item

2008-10-09 Thread Fatema Karim
Hi Željko, This worked when I have tried the following: $ie.frame(:id, "frameID").table(:id, 'tableID').link(:id, /linkID/).click Thanks. On Thu, Oct 9, 2008 at 10:12 AM, Željko Filipin <[EMAIL PROTECTED]>wrote: > On Wed, Oct 8, 2008 at 8:34 PM, Fatema Karim <[EMAIL PROTECTED]> wrote: > > but n

[wtr-general] Re: Converting Dates Question

2008-10-09 Thread Moochie
puts DateTime.parse('2007-12-30').strftime('%m/%d/%Y') Worked, Thanks Andy. Jason, You're suppose to be on vacation. Step away from the computer. Also, I tried that one. Thanks though. DD On Oct 9, 12:10 pm, "andy sipe" <[EMAIL PROTECTED]> wrote: > If the value you are getting from the dat

[wtr-general] Problem automating the new Excite Mail due to nested divs

2008-10-09 Thread NS
Hello, I am new to Ruby and Watir and as my first assignment, I am trying to fix the ruby script which automated the opening and browsing messages in the Excite Mail. After Excite changed interface, the script has been failing. I used IE toolbar to see the underlying elements in the page and it

[wtr-general] Re: Converting Dates Question

2008-10-09 Thread Željko Filipin
On Thu, Oct 9, 2008 at 8:26 PM, Moochie <[EMAIL PROTECTED]> wrote: > Jason, You're suppose to be on vacation. Step away from the computer. Too good not to comment! :) Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[wtr-general] error: undefined method 'document' for 31:Fixnum

2008-10-09 Thread AtlantaJon
I have a script which can successfully reach some pages on a site but when I use the same methods to reach pages that take a longer time to fetch (say 9 seconds) the page will appear in the browser but Watir execution stops because I get this error... c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./

[wtr-general] Re: Tool to check a website for 404 errors

2008-10-09 Thread Alister Scott
Hi Natasha, Now I understand. You may be able to use some of the logic in the script to iterate objects on a page: http://wiki.openqa.org/display/WTR/Save+All+Images+on+a+Webpage Cheers Alister On Oct 9, 9:46 pm, Natasha Ranney <[EMAIL PROTECTED]> wrote: > Hi Alister, > > Thanks for sharing the

[wtr-general] Re: Converting Dates Question

2008-10-09 Thread Jason Trebilcock
On Thu, Oct 9, 2008 at 3:27 PM, Željko Filipin <[EMAIL PROTECTED]>wrote: > On Thu, Oct 9, 2008 at 8:26 PM, Moochie <[EMAIL PROTECTED] > > wrote: > > Jason, You're suppose to be on vacation. Step away from the computer. > > Too good not to comment! :) > > Željko > As much as I'd like to have bee

[wtr-general] Re: Tool to check a website for 404 errors

2008-10-09 Thread Bret Pettichord
You might take a look at Jim Matthew's Link Checker. http://www.io.com/~wazmo/blog/archives/2008_05.html#000277 Natasha wrote: > Hello all, > > Just a general question. > > I was wondering if there is an opensource tool or any provision in > Watir, that will help me check any website for 404 err

[wtr-general] Re: Problem automating the new Excite Mail due to nested divs

2008-10-09 Thread Nathan Lane
On thing about Watir is that it generally does what the browser does, so if you really click on a DIV to perform an action on a web site, then using Watir click on the DIV. This may be the case here with your situation, though I am not certain how Excite Mail is actually structured (your HTML examp

[wtr-general] Re: Problem automating the new Excite Mail due to nested divs

2008-10-09 Thread NS
Nathan, Thanks for your reply. There is no actual tag that I see in the IE toolbar. The HTML structure that I have posted with original message is the one I see in IE toolbar and the places where I have put "..." between tags..there are more divs there.I don't know how to attach a screenshot

[wtr-general] Re: Ruby integration with TestLink

2008-10-09 Thread KimBrown
On Oct 8, 2:46 am, Manish Sapariya <[EMAIL PROTECTED]> wrote: > I can describe the solution that we have created in great detail > However I am not sure, if I would be able to share the code. > Perhaps you would be able to post the code if you changed it to be generic enough to remove any proprie

[wtr-general] Re: I need help with Watir podcast

2008-10-09 Thread KimBrown
On Oct 4, 4:04 pm, "Željko Filipin" <[EMAIL PROTECTED]> wrote: > On Fri, Oct 3, 2008 at 11:38 PM, Tiffany Fodor <[EMAIL PROTECTED]> wrote: > > I can help with anything you need > > Would you be interested in editing the audio? > I can also help with editing the audio. That way one person wouldn'

[wtr-general] Re: error: undefined method 'document' for 31:Fixnum

2008-10-09 Thread Bret Pettichord
Jonathan, Thank you for the very detailed report. The error is happening in the "wait" code that is waiting for the page to load. In fact it is failing in the code that is making sure that every document in every frame is loaded, and I am wondering if the problem is related to their either be

[wtr-general] Tool to check a website for 404 errors [SEC=UNCLASSIFIED]

2008-10-09 Thread Don Taylor
Security:[SEC=UNCLASSIFIED] Hi all I've just used HttpWatch (free version ) http://httpwatch.com/ and the accompanying site-spider (http://httpwatch.com/rubywatir/) with good effect. Cheers Don >>> Alister Scott <[EMAIL PROTECTED]> 10/10/2008 7:47 am >>> Hi Natasha, Now I understand. You

[wtr-general] Re: IE POP UP Window

2008-10-09 Thread wesley chen
There is an easy way to deal with your problem: require 'watir/dialog' button***.click_no_wait dialog.button('OK').click dialog.button('Cancel').click Wesley. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir

[wtr-general] Re: error: undefined method 'document' for 31:Fixnum

2008-10-09 Thread AtlantaJon
Hi, I installed FireWatir and ran same script and it executes without errors. There are some IFrames on the page, which is actually GoDaddy.com's very popular Quick Shopping Cart. They have some expandable sections on the page where text is revealed when you click on them, and that expandable con

[wtr-general] Re: Tool to check a website for 404 errors

2008-10-09 Thread Alister Scott
I might do an SVN checkout Matthew's code and include it in a wiki example page. I don't think we should expect first time Watir users looking for example usage to install and checkout a SVN repo. I'll ask him first, I noticed his Watir blog hasn't been updated since Feb, does he still read this g

[wtr-general] Re: Ruby integration with TestLink

2008-10-09 Thread Manish Sapariya
Hi, I shall get back with basic document first, describing what we have done. I am eager to share the code as well, that might take little time. Thanks for the response. Regards, manish KimBrown wrote: > On Oct 8, 2:46 am, Manish Sapariya <[EMAIL PROTECTED]> wrote: > >> I can describe the solut

[wtr-general] Re: Ruby integration with TestLink

2008-10-09 Thread SatheeshKumar
Hi, This Sounds interesting. Keep sharing.. I have recently looked into Testlink tool. will be grateful if I can do something. This would help us too. /Sathyz Manish Sapariya wrote: > Hi, > I shall get back with basic document first, > describing what we have done. I am eager to > share the co

[wtr-general] Cannot install watir gem

2008-10-09 Thread dschulberg
Trying in an organisation with a proxy to install watir. The proxy has hostname = proxyhost and port = 8080. I have set up an environment variable (according to FAQ advice) as: HTTP_PROXY=http://proxyhost:8080 And when I attempt to install watir I get this error: D:\Ruby\bin>gem install watir E

[wtr-general] Re: How do make the element_by_xpath work?

2008-10-09 Thread Angrez Singh
Try this: ie.element_by_xpath("//[EMAIL PROTECTED]'wiston']").set("hello") basically i removed the forward slash at the end of Xpath query. - Angrez On Thu, Oct 9, 2008 at 8:45 AM, bugs apple <[EMAIL PROTECTED]> wrote: > hi, all > > In my html file, there are some script like below, > > >