[wtr-general] Re: JSSH problem on Windows server 2003

2009-08-03 Thread pallavi shashidhar
The error console says; Error: Components.classes['@mozilla.org/jssh-server;1'] is undefined Source File: file:///C:/Documents%20and%20Settings/Administrator/Application%20Data/Mozilla/Firefox/Profiles/b9gcfasq.default/extensions/ j...@extensions.mozilla.org/components/nsJSShStarter.js Line: 133

[wtr-general] Re: JSSH problem on Windows server 2003

2009-08-03 Thread Angrez Singh
Can you check event logs or error console of Firefox? On Tue, Aug 4, 2009 at 10:51 AM, pallavi shashidhar wrote: > Hi, > I have logged in as Administrator and then clicked the link for for windows > and firefox 3.0 on this page: > > http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWa

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

2009-08-03 Thread sHiVa
Hi Mojares, Recorders will help at the early stages of learning. Those are not meant for complex tasks. It can record events performed on web objects. But coming to a alert popup, It is a window based component. We must call the win32api to handle such components. Better not to relay on recorders

[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 wil

[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] 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: JSSH problem on Windows server 2003

2009-08-03 Thread pallavi shashidhar
Hi, I have logged in as Administrator and then clicked the link for for windows and firefox 3.0 on this page: http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirInstallation-2)InstalltheJSSHFirefoxExtension The Redistributed package for VS 2005 SP1 is run as administrator. (My ff ve

[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 messag

[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,

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

2009-08-03 Thread Rohan Ojha
Hi, What you can try is today = Date.today().to_s and then use ie.text_field(:name,"q").set today This would help in getting the date object into a string which can you can set in the text field. Thanks Rohan Ojha -Original Message- From: watir-general@go

[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: 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 >

[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, mo

[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) o

[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 wrote: > I am totally new and just trying to learn and do basic staff. > > I insta

[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 wrote: > HI, > > Am a novice in Watir and have a problem in retrieving an integer from >

[wtr-general] Watir Logo Refresh Competition

2009-08-03 Thread Alister Scott
With the launch of the new watir.com site, I thought it would be an appropriate time to refresh the Watir logo to be included on the site and all other Watir branded information. The current logo was designed some time ago by Jacinda Scott, and has served Watir well, but it would be great if some

[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. C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/inp

[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] 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 build

[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 P

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

2009-08-03 Thread George
Sorry about that...I meant 'selected' (click and drag with the mouse) On Aug 3, 1:07 pm, Chuck van der Linden wrote: > 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

[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 wrote: > Hello all, > > On a web app I'm testing, I'm supposed to check that

[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" 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 tag. In his case he has an tag which is something that 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 wrote: > Cristoph, > > take a look at Webmetrics RIA script > recorder.http://www2.webmetrics.com/downloads/scri

[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 d

[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 t

[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 G

[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 wrote: > Th

[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 Gro

[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 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 global variable?

[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.wizard&c_id=mlb' ie.goto(test_site) ie.radio(:id, 'select_register').set ie.text_field(:id, "register_email").set("v

[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.wizard&c_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] 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 O