[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-21 Thread Tony
Hi Dheeraj, Forgot to add the outval variable before the begin in wait. Have updated the code, please try changing the code again. Let me know if you run into any other issues. Thanks, Tony On Jul 21, 9:51 am, Dheeraj Gambhir checktestingthi...@gmail.com wrote: Hi, I tried my code by

[wtr-general] Re: customize xml generated by ci_reports

2009-07-21 Thread Tony
Hi Dylan, Ooops sorry missed that... Basically this class just gives some short cut methods to access the class variables from ReportManager. Code in file ClassAttr.rb class Class def class_attr_reader(*symbols) symbols.each do |symbol|

[wtr-general] Re: click method with list items

2009-07-21 Thread Ivan Kabluchkov
Try to raise javascript event $browser.ul(:id, cntList).li(:index, 1).link(:text, World Wide).fire_event('onClick') On 21 июл, 09:59, basu bas.go...@gmail.com wrote: Hi, I have list structure like this, ul id=cntList class=chartsdul style=display: block; li a id=

[wtr-general] Re: click method with list items

2009-07-21 Thread Basavana Gowda K S
Hi Ivan, That option is also not working On Tue, Jul 21, 2009 at 11:48 AM, Ivan Kabluchkov ikabluch...@gmail.comwrote: Try to raise javascript event $browser.ul(:id, cntList).li(:index, 1).link(:text, World Wide).fire_event('onClick') On 21 июл, 09:59, basu bas.go...@gmail.com wrote:

[wtr-general] Dheeraj Gambhir wants to chat

2009-07-21 Thread Dheeraj Gambhir
I've been using Google Talk and thought you might like to try it out. We can use it to call each other for free over the internet. Here's an invitation to download Google Talk. Give it a try! --- Dheeraj Gambhir wants to stay

[wtr-general] Re: click method with list items

2009-07-21 Thread basu
Used this, its working now $browser.ul(:id, cntList).li(:index, 1).link(:text, World Wide).focus() $browser.ul(:id, cntList).li(:index, 1).link(:text, World Wide).fire_event('onClick') On Jul 21, 11:32 am, kiran yajamanyam kiranyajaman...@gmail.com wrote: Hi Friends, Even i face this issue

[wtr-general] Re: click method with list items

2009-07-21 Thread kiran yajamanyam
Its not working for me in firefox :( On Tue, Jul 21, 2009 at 12:18 PM, basu bas.go...@gmail.com wrote: Used this, its working now $browser.ul(:id, cntList).li(:index, 1).link(:text, World Wide).focus() $browser.ul(:id, cntList).li(:index, 1).link(:text, World Wide).fire_event('onClick')

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-21 Thread Dheeraj Gambhir
Thanks a lot dude, u rock Its working perfectly fine. Regards D G On Tue, Jul 21, 2009 at 11:32 AM, Tony ynot...@gmail.com wrote: Hi Dheeraj, Forgot to add the outval variable before the begin in wait. Have updated the code, please try changing the code again. Let me know if you run into

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-21 Thread Dheeraj Gambhir
Is there any command to get text from web page like my requirement is to get order-no from thank you page. Regards D G On Tue, Jul 21, 2009 at 12:32 PM, Dheeraj Gambhir checktestingthi...@gmail.com wrote: Thanks a lot dude, u rock Its working perfectly fine. Regards D G On Tue, Jul 21,

[wtr-general] Re: click method with list items

2009-07-21 Thread Ivan Kabluchkov
May be use fire_event('onMouseOver') instead of focus() ? On 21 июл, 11:00, kiran yajamanyam kiranyajaman...@gmail.com wrote: Its not working for me in firefox :( On Tue, Jul 21, 2009 at 12:18 PM, basu bas.go...@gmail.com wrote: Used this, its working now $browser.ul(:id,

[wtr-general] Re: click method with list items

2009-07-21 Thread kiran yajamanyam
Tried and tired with all options using fire_event but no luck. If some one have code for Right click or mouse click (Co-Ordinate basis) for firefox please send it across that will be very much useful Regards, Kinnu On Tue, Jul 21, 2009 at 12:59 PM, Ivan Kabluchkov ikabluch...@gmail.comwrote:

[wtr-general] Get Text

2009-07-21 Thread Dheeraj Gambhir
Hi, My requirement is to pick order-no from the Thank you page and on that page it goes like Your Order-No is :random-order-no And i want to pick this random-order-no and store it in any file. HTML code for that is: div id=container div id=head divnbsp;/div /div

[wtr-general] Re: Get Text

2009-07-21 Thread Željko Filipin
On Tue, Jul 21, 2009 at 10:39 AM, Dheeraj Gambhir checktestingthi...@gmail.com wrote: Your Order-No is :random-order-no And i want to pick this random-order-no and store it in any file. browser.div(:id, intro).span(:index, 2).text.split(: )[1] = 2316019 Let me know if you would like to know

[wtr-general] Re: problem in jssh

2009-07-21 Thread aparna
Hi Kiran, Is your system 32-bit machine? Regards, Aparna On Jul 20, 3:52 pm, kiran yajamanyam kiranyajaman...@gmail.com wrote: Hi All, I tried the same steps which u people have provided and still i am facing the same problem. I have tried in two different machines and facing the same

[wtr-general] Re: problem in jssh

2009-07-21 Thread kiran yajamanyam
I have restarted my machine and it has started working perfectly. Thank you very much for your replies :) Regards, Kiran Y On Tue, Jul 21, 2009 at 5:52 PM, aparna aparna.m...@gmail.com wrote: Hi Kiran, Is your system 32-bit machine? Regards, Aparna On Jul 20, 3:52 pm, kiran yajamanyam

[wtr-general] Ruby/Oracle connectivity

2009-07-21 Thread Dheeraj Gambhir
Hi All, I have tried my level best to connect to oracle using ruby but all in vain. Can any one provide concrete steps to follow to do that. Please list down what all we require for this. Thanks in advance. Regards Dheeraj Gambhir --~--~-~--~~~---~--~~ You

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread Felipe Knorr Kuhn
Hello Dheeraj, You need this library http://ruby-oci8.rubyforge.org/en/ The site explains all you need to set it up. Regards, FK On Tue, Jul 21, 2009 at 10:06 AM, Dheeraj Gambhir checktestingthi...@gmail.com wrote: Hi All, I have tried my level best to connect to oracle using ruby but

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread Ivan Kabluchkov
Install http://rubyforge.org/projects/ruby-oci8/ And example of code: require 'oci8' connection = OCI8.new(user, pass, scheme) sql = 'select * from table' connection.exec(sql) do |row| puts row end On 21 июл, 17:06, Dheeraj Gambhir checktestingthi...@gmail.com wrote: Hi All, I have

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread Dheeraj Gambhir
Hi, I am getting oci.dll missing error on running the code given by you: require 'oci8' connection = OCI8.new(mlbread,mlbread,MLBD) sql = 'select * from bam_order.ec_invoice where created_datesysdate-2' connection.exec(sql) do |row| puts row end Regards D G On Jul 21, 6:25 pm, Ivan

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread Dheeraj Gambhir
I am using oracle client from past 2 years, so do i need to re- install?. I don't think so. Now after re-installing ruby-oci8-1.0.6-mswin32, i am getting the following error now: C:\Program Files\Watir\examplesruby oraclecon.rb warning: ActiveRecord-JDBC is for use with JRuby only

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread Dheeraj Gambhir
If i run this code to check whether i am able to connect to the Oracle database server or not: ruby -r oci8 -e OCI8.new('mlbread', 'mlbread', 'MLBD').exec('select * from bam_order.ec_invoice where order-id2316027') do |r| puts r.join (' | '); end It gives me: C:\rubyruby -r oci8 -e

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread karim rayani
you can also use the db2 library or the active record library they are better then the OCI8 stuff On Tue, Jul 21, 2009 at 7:14 PM, Dheeraj Gambhirchecktestingthi...@gmail.com wrote: Hi, I am getting oci.dll missing error on running the code given by you: require 'oci8' connection =

[wtr-general] Not Able to use the playback Option Present in watirrecorder++

2009-07-21 Thread Saket
Hi All, I am very new to Watir, For the past one month i am stuck with a simple problem but i found noone to help me on this. Hope i would be able to successfully get rid of this issue. Here is a jist of my problem. I recorded one script using Watir Recorder++. Tehn when i am pressing the

[wtr-general] Re: click method with list items

2009-07-21 Thread Chuck van der Linden
try it manually from a IRB console session, Get the element selected in firebug so you can see it's properties then try firing first the onmouseover event as that is specifically what the element is set to trigger on. have a close look in firebug at how the item was modified by the code that

[wtr-general] Re: Problem while working with WET WATIR IE 7

2009-07-21 Thread Chuck van der Linden
This is a question for the WET mailing list. The vast majority of folks here just code directly and don't bother with recorders. On Jul 21, 6:37 am, Monali Patil monali.pa...@sqs-india.com wrote: Hi All, I am working on Automation Project where I am using Open Source tool ‘Wet Watir’ for

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-21 Thread Chuck van der Linden
On Jul 21, 12:12 am, Dheeraj Gambhir checktestingthi...@gmail.com wrote: Is there any command to get text from web page like my requirement is to get order-no from thank you page. Please search the group for an answer first, I'm pretty sure this topic has been covered. If you dont' find an

[wtr-general] Re: Watir and IE7

2009-07-21 Thread Chuck van der Linden
have a look at the task manager when this happens and see if IE seems to have consumed an inordinately large amount of memory, or is using tons of CPU cycles. IE can be a bit of a pig at times, and several of us have found that if you try to run prolonged scripts in them that it can get a bit

[wtr-general] Re: Embed tag - watir

2009-07-21 Thread Chuck van der Linden
'flash-form', 'swf', 'ismultiflash' I see a whole lotta flash stuff here, so you might have to look at flashwatir In the meantime, did you try ie.button(:class, 'flash-upload-button').click On Jul 18, 2:54 am, Raveendran P jazzezr...@gmail.com wrote: Hi, html CODE: div

[wtr-general] Re: customize xml generated by ci_reports

2009-07-21 Thread Dylan
Thanks! I have it all up and running and its perfect! I had to rework my xml stylesheet but it was totally worth it. :) -Dylan On Jul 20, 11:12 pm, Tony ynot...@gmail.com wrote: Hi Dylan, Ooops sorry missed that... Basically this class just gives some short cut methods to access the class

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread Chuck van der Linden
You may also find a lot more folks who know about doing this sort of thing in the main ruby forums than you will here where many of the folks have never needed to connect to a db (or if they did it was mysql or ms-sql) in order to test against a web UI. On Jul 21, 8:36 am, karim rayani

[wtr-general] Re: Need help

2009-07-21 Thread Chuck van der Linden
On Jul 13, 3:41 am, Brautigam Gergely skarlso...@yahoo.com wrote: He says that the file he is using does not contain which Checkbox INDEX he has to set... Only the ID which is that of all of the check boxes and not an Index i guess.. But why not? Simply add it to the file or ask the Devs

[wtr-general] Re: click method with list items

2009-07-21 Thread Chuck van der Linden
A few other notes: If you are in fact trying to automate the page this code appears to come from (the winamp music page) then you need to be aware of a few things that are going to cause you challenges when automating this page. 1) those 'lists' are not anything of the sort. They are not HTML

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread Jared Quinert
That's one point that I find interesting. Once Ruby found its way into my toolkit, I've used it to hit databases, web services, parse xml, simulate flat-file responses from banks and more. A lot of my watir scripts are simple integrations between data that I get from these other approaches.

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread Chuck van der Linden
Some great points Jared, for me it comes down to this.. There are probably a ton of great things I could do using Ruby, but unless I'm sure one of them will pay back the time investment to figure out how to do them, I likely won't get around to them because I have so many other things that I

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread Felipe Knorr Kuhn
Hello Jared, I'm a software tester and my interest in Ruby started a few years ago when I found out about Watir. At some point I started a blog (in Portuguese) about How to do x in Ruby, which would be basically a repository of solutions to the problems I came across, but it never took off.

[wtr-general] Re: customize xml generated by ci_reports

2009-07-21 Thread Dylan
I edited it a little to fit my needs, thought I'd post it: http://pastie.org/554062 I added a passed value to the tests tag so I can easily check if the entire suite passed/failed, along with a time value so I know when the test was run. Thanks again, Tony! -Dylan On Jul 21, 11:35 am, Dylan

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread Dheeraj Gambhir
I am using: Ruby 1.8.6 Oracle 9i Windows XP and i am done with ruby ruby-oci8-0[1].1.13-mswin.rb But when i run this code on cmd to check whether i am able to connect to the Oracle database server or not: ruby -r oci8 -e OCI8.new('mlbread', 'mlbread', 'MLBD').exec('select * from