[wtr-general] ocra couldn't work in loop for watir

2009-08-03 Thread Alex.Dev
hey, all. I tried to convert the following script to exe file by ocra. require 'rubygems' require 'watir' require 'watir/ie' ie = Watir::IE.new ie.speed =:fast for i in 1..1 ie.goto 'http://www.google.com' ie.text_field(:name, 'q').set('hello world') ie.button(:name, 'btnG').click end but

[wtr-general] Re: Pick pop-up text and oracle DB connectivity issue

2009-08-03 Thread Dheeraj Gambhir
Hi All, If you have free time, please try the case given below: a) Go to https://secure.mlb.com/enterworkflow.do?flowId=registration.ajax.wizardc_id=mlb b) select I don't have MLB account c) Enter email-address and click Register button d) It shows you error pop-up, i want the text of that

[wtr-general] Re: Pick pop-up text and oracle DB connectivity issue

2009-08-03 Thread Dheeraj Gambhir
Guys, I tried all these for below given requirements but no value: ie = Watir::IE.new test_site='https://secure.qa2.mlb.com/enterworkflow.do? flowId=registration.ajax.wizardc_id=mlb' ie.goto(test_site) ie.radio(:id, 'select_register').set ie.text_field(:id,

[wtr-general] Re: Problem setting select_list using an array index

2009-08-03 Thread infoDrone
This worked perfectly! Thank you, this was one of my first attempts at IO with Ruby :) On Jul 31, 6:52 pm, Dylan mej...@gmail.com wrote: Have you stripped the newlines when you get the input? The way you have it now, $org is ['Coke\n','Pepsi\n','Sprite\n'] Also, is there a reason $org is a

[wtr-general] (Fire)Watir Code Generator?

2009-08-03 Thread sol
Hey there, Is there a tool currently available for generating watir code? I looked at the tg4rb stuff once, but it wasn't maintained for a while I think thanks, Christoph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[wtr-general] Re: Problem setting select_list using an array index

2009-08-03 Thread Dylan
Your welcome! A good thing to do when you're using variables that aren't being accepted like you think they should be is to output them to the screen right before you use them (print org[0]), that way you know exactly what value is getting used. -Dylan On Aug 3, 6:21 am, infoDrone

[wtr-general] Detecting whether or not text in a text field is highlighted

2009-08-03 Thread George
Hello all, On a web app I'm testing, I'm supposed to check that text in a particular text field is highlighted. Is there an attribute that can help me with this? Thanks, George --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[wtr-general] Re: (Fire)Watir Code Generator?

2009-08-03 Thread Richard Wijdenes
Cristoph, take a look at Webmetrics RIA script recorder. http://www2.webmetrics.com/downloads/scriptrecorder/start.htm I found out by looking at http://delicious.com/zeljko.filipin/watir+recorder, thanks again Zeljko! Grtz, R. --~--~-~--~~~---~--~~ You received

[wtr-general] Re: ocra couldn't work in loop for watir

2009-08-03 Thread Richard Wijdenes
Hey Alex, First of all, I think it is a very strange peace of code. You're not checking anything, just clicking etc. Why 1 times? Do you want to use Watir as a performance tool? Furthermore, google does not like these scripts. You (or your IP number) will probably get on a blacklist if you

[wtr-general] Re: (Fire)Watir Code Generator?

2009-08-03 Thread sol
Hi Richard, Thanks for the link, are you using it? Unfortunately it's windows based only :) But well ... I'll give it a try, thank you Christoph On Aug 3, 8:24 pm, Richard Wijdenes richard.wijde...@gmail.com wrote: Cristoph, take a look at Webmetrics RIA script

[wtr-general] Re: Can't click on an image link.

2009-08-03 Thread Chuck van der Linden
On Aug 2, 10:59 pm, jane.liu jane.li...@hotmail.com wrote: hi,james,  use the following code for trying: ie.image(:xpath,//i...@src='=../ App_Themes/co/locationdrilldown_hollow.jpg']).click the .image method acts on elements defined with the img tag. In his case he has an input type=image

[wtr-general] Re: Detecting whether or not text in a text field is highlighted

2009-08-03 Thread Chuck van der Linden
what does 'hilighted' mean? some kind of background color in the whole text field? the 'focus' on the text field? or do you mean 'selected' as if I'd done a click and drag with the mouse? On Aug 3, 11:06 am, George george.sand...@gmail.com wrote: Hello all, On a web app I'm testing, I'm

[wtr-general] Not able to select the Printer Dialog Box contents !

2009-08-03 Thread CHANDRA SHEKAR
Hi All, Have installed the following : Ruby 1.8.6, Watir 1.6.2 , Firefox 3.0.12 Iam newbie in Watir automation, Iam facing an issue which iam not sure how to go about it. The Application/Product is developed in such a way that after successful Creation, the created data is directly directed to

[wtr-general] Watir Install/Basic Error, It doesn't launch browser

2009-08-03 Thread DF
I am totally new and just trying to learn and do basic staff. I installed RC2 Ruby and Watir. ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] While running gem install watir got this error: Installing ri documentation for builder-2.1.2... ERROR: While generating documentation for

[wtr-general] Re: (Fire)Watir Code Generator?

2009-08-03 Thread Richard Wijdenes
Cristoph, Yes, I'm using it. Mostly for pages with a lot of fields. After recording it i copy-paste it in Scite, and adjust it manually. Are you using Linux? I'm using Ubuntu 9.04, but i'm not very pleased by the speed of firewatir and firefox. Grtz. R.

[wtr-general] Getting an error saying undefined method `length' when trying to use date in a text field.

2009-08-03 Thread moorecats
I am new to Watir/Ruby. Sorry about this noob question - I am trying to use the date in a text field. Using my script (pasted below). I get the error - I am not sure what I am doing wrong in this case. Any help would be greatly appreciated.

[wtr-general] Re: Error while retrieving an integer from spreadsheet

2009-08-03 Thread Dylan
Add .to_i in the middle there, because like you said you aren't getting an integer back, so you have to make it one. So you end up with: $regno = oo.cell(row,6).to_i.to_s -Dylan On Aug 3, 8:52 am, balbao ramkrishn...@gmail.com wrote: HI, Am a novice in Watir and have a problem in retrieving

[wtr-general] Re: Watir Install/Basic Error, It doesn't launch browser

2009-08-03 Thread Dylan
I would try uninstall/reinstalling and running gem update --system beforehand so you have the latest version of rubygems before you try installing watir. I promise nothing, though! :) -Dylan On Aug 2, 8:12 pm, DF df.tra...@gmail.com wrote: I am totally new and just trying to learn and do basic

[wtr-general] Error while retrieving an integer from spreadsheet

2009-08-03 Thread balbao
HI, Am a novice in Watir and have a problem in retrieving an integer from spreadsheet. require watir require rubygems require 'win32ole' require 'Win32API' require 'roo' $ie = Watir::IE.new url = https://qaenv:7001/login; $ie.goto(url) def value(file, sheet) oo = Openoffice.new(file)

[wtr-general] Re: Getting an error saying undefined method `length' when trying to use date in a text field.

2009-08-03 Thread Dylan
Date.today() returns a Date object, while .set requires a string. Somewhere in the set function it is trying to get the length of the string it was passed, which is why you're getting that error. You might try something like: ie.text_field(:name,q).set #{today} -Dylan On Aug 3, 10:18 am,

[wtr-general] Re: Error while retrieving an integer from spreadsheet

2009-08-03 Thread Darryl (gem dandy) Brown
Hello Balbao, $regno = oo.cell(row,6).to_i will do what you're looking for. Darryl Dylan wrote: Add .to_i in the middle there, because like you said you aren't getting an integer back, so you have to make it one. So you end up with: $regno = oo.cell(row,6).to_i.to_s -Dylan On Aug

[wtr-general] Re: ocra couldn't work in loop for watir

2009-08-03 Thread Alex.Dev
thanks for your quickly reply. yep, the code seems meanningless. But it's only a dummy of my working script, sorry for that i coldn't put my real script to here. My real script really have a very big loop to test all pages, but i don't the total page count, so i only can do it by click the linke

[wtr-general] Re: (Fire)Watir Code Generator?

2009-08-03 Thread Manish Sapariya
Try this out. I have used it only once, because now days I don't do web automation. It looks good. http://www.itest2.com/downloads#recorder -Manish Richard Wijdenes wrote: Cristoph, Yes, I'm using it. Mostly for pages with a lot of fields. After recording it i copy-paste it in Scite, and

[wtr-general] Re: Viewing CI_reporter XML output

2009-08-03 Thread Marlon Mojares
Dilan, When are you planning to setup your testsuites on Cruise control? Can you also share some info/tutorials/examples in case you already figure it out? I really need some help organize our test scripts. Thanks --~--~-~--~~~---~--~~ You received this

[wtr-general] How to setup watir (test scripts) on cruise control

2009-08-03 Thread Marlon Mojares
Guys, anybody here knows how to integrate watir test scripts on cruise control? Suggestions/comments will surely be appreciated. This is what I'm planning to do: Set up a dashboard (some short of a html) where I can: (1) Put our test cases where I can check/unchecked the test case i want to run

[wtr-general] Re: (Fire)Watir Code Generator?

2009-08-03 Thread Marlon Mojares
Is there a recorder that can record javascript popup? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please

[wtr-general] Re: How to get the Scite editor's error message in anotepad?

2009-08-03 Thread Chethan
You can capture the error in begin rescue loop so no need to worry whether its get populated or not You can do like this below begin rescue =e @msg=ErrorMessage(e) end for writing to a file f = File.new(c:\log.txt,w) @msg.each do |content| f.write(content) end f.close() I think this will