[wtr-general] Name of the calling function

2009-04-17 Thread Vikas Tulashyam
Hi Friends, I want to get the name of the calling function in our program . e.g. -- class A def Calling() B.caller() end end class B def self.Caller() end end Here, I want to print the name of the calling function e.g. Calling() in the called function e.g. Caller(). Is it

[wtr-general] Name of the currently running methods

2009-04-07 Thread Vikas Tulashyam
Hi, Can I get the name of the currently running methods with the class and package name. like-- class A def method() puts nameofThecurrentMethod end end let suppose there is a method nameofThecurrentMethod which prints the name of the currently running method. Is it possible in Watir?

[wtr-general] Re: current script path

2009-04-05 Thread Vikas Tulashyam
sure you won't be the last.  You just happened to do it when we're all a little sensitive. That being said - welcome to the group! -Tiffany On Apr 3, 3:33 am, Vikas Tulashyam vtulash...@gmail.com wrote: Hey sorry ..If it looks like rude ... I didn't mean anything like that .. I

[wtr-general] current script path

2009-04-03 Thread Vikas Tulashyam
Hi friends, I want to get the path of the currently running scripts.. Can anyone please tell me how to get the path.. Thanks Vikas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this

[wtr-general] Re: current script path

2009-04-03 Thread Vikas Tulashyam
Please reply.. On Apr 3, 11:43 am, Vikas Tulashyam vtulash...@gmail.com wrote: Hi friends, I want to get the path of the currently running scripts.. Can anyone please tell me how to get the path.. Thanks Vikas --~--~-~--~~~---~--~~ You received this message

[wtr-general] Re: current script path

2009-04-03 Thread Vikas Tulashyam
here, so I personally consider your second post just an hour after your initial one as rather rude! Cheers, John On Apr 3, 9:54 am, Vikas Tulashyam vtulash...@gmail.com wrote: Please reply.. On Apr 3, 11:43 am, Vikas Tulashyam vtulash...@gmail.com wrote: Hi friends, I want to get

[wtr-general] Re: Google and Watir Search (was: current script path)

2009-04-03 Thread Vikas Tulashyam
Thanks..Now onwards I will search the Watir related issues on the given link .. Thanks Vikas On Apr 3, 2:43 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Apr 3, 2009 at 08:43, Vikas Tulashyam vtulash...@gmail.com wrote: I want to get the path of the currently running

[wtr-general] Which methods are being called at last of execution

2009-04-02 Thread Vikas Tulashyam
Hi Friends, Can anyone please tell me that which methods are being called at the end of the execution of Watir scripts. I want to call my own method when the execution finishes and I don't want to call the method explicitly. So please tell me. Thanks Vikas

[wtr-general] Re: Which methods are being called at last of execution

2009-04-02 Thread Vikas Tulashyam
Hi Thanks for the reply. I want to call my method when ruby program exits, means execution is finished. Thanks Vikas Tony wrote: Hi Vikas, Could you tell me what you are looking for? You want to call methods when the ruby program exits or when your test cases finishes ? Could you be

[wtr-general] Re: Which methods are being called at last of execution

2009-04-02 Thread Vikas Tulashyam
Hi Thanks for the help..I will try it. On Apr 2, 3:13 pm, sai saidesertrose2...@gmail.com wrote: Check the kernel method at_exit. It may help you On Apr 2, 2:48 pm, Vikas Tulashyam vtulash...@gmail.com wrote: Hi Thanks for the reply. I want to call my method when ruby program exits

[wtr-general] Re: IE instance problem

2009-04-01 Thread Vikas Tulashyam
Hi Anna, Is there any method by which I can convert the String values to Hash. Thanks Vikas On Apr 1, 11:06 am, Anna Gabutero a...@lavabit.com wrote: On Tue, Mar 31, 2009 at 09:07:29PM -0700, Vikas Tulashyam wrote: Hi firends, Please help me. Thanks Vikas On Mar 31, 6:24 pm

[wtr-general] Re: IE instance problem

2009-04-01 Thread Vikas Tulashyam
Hi, Thanks for the time. It returns hash values but I want to use this value into methods for objects identification like- a= get_object_locator(Text1) ie.text_field(a).set(test) Here, it's not working as it is.So how I can use this. I am very new to Watir and don't have too much idea. Sorry

[wtr-general] Re: IE instance problem

2009-04-01 Thread Vikas Tulashyam
Hi Anna, Thanks. I solved this prob.. Thnak you very much Thanks Vikas On Apr 1, 1:18 pm, Vikas Tulashyam vtulash...@gmail.com wrote: Hi, Thanks for the time. It returns hash values but I want to use this value into methods for objects identification like- a= get_object_locator(Text1

[wtr-general] Re: IE instance problem

2009-03-31 Thread Vikas Tulashyam
Ruby files. So is there any way to solve this problem. Thanks Vikas On Mar 30, 7:24 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Mar 30, 2009 at 16:13, Vikas Tulashyam vtulash...@gmail.com wrote: I can just create a variable instance of browser and use it whenever required

[wtr-general] Re: IE instance problem

2009-03-31 Thread Vikas Tulashyam
(sLocator). Here sLocator contains the same value i.e. :name,'q'. please help me. Thanks Vikas but I am facing some other Željko Filipin wrote: On Tue, Mar 31, 2009 at 13:46, Vikas Tulashyam vtulash...@gmail.com wrote: I am creating a some common methods and for that I have created some

[wtr-general] Re: IE instance problem

2009-03-31 Thread Vikas Tulashyam
': uninitialized constant Watir::InputElementLocator::MissingWayOfFindingObjectException (NameError) Please help. Thanks Vikas On Mar 31, 5:55 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Mar 31, 2009 at 14:47, Vikas Tulashyam vtulash...@gmail.com wrote:  s.text_field(:name,'q

[wtr-general] Re: IE instance problem

2009-03-31 Thread Vikas Tulashyam
Hi firends, Please help me. Thanks Vikas On Mar 31, 6:24 pm, Vikas Tulashyam vtulash...@gmail.com wrote: Hi, Actually, I am trying to read the sLocator value form a xml file and thats the main problem if I put the value directly into a variable then it's working fine like-- a= {:name='q

[wtr-general] IE instance problem

2009-03-30 Thread Vikas Tulashyam
Hi Friends, I want to create an instance of a browser and want to use it later, but when ever I create a new instance, Watir opens a new browser as -- ie= Watir::IE.new I dont want to do this. Can anyone guide me, if it is possible is Watir. so I can just create a variable instance of browser

[wtr-general] Re: Packaging 3rd party tool

2009-03-27 Thread Vikas Tulashyam
, 2009 at 15:05, Vikas Tulashyam vtulash...@gmail.com wrote: Please reply, this is possible or not? In my experience, when you do not get a reply, that means you should be more specific. :) For example, I just did not understand the problem. You could bundle what every you like with your

[wtr-general] Re: Need to find text of an element using watir

2009-03-27 Thread Vikas Tulashyam
- From: watir-general@googlegroups.com [mailto:watir- gene...@googlegroups.com] On Behalf Of Vikas Tulashyam Sent: Thursday, March 26, 2009 7:09 AM To: Watir General Subject: [wtr-general] Re: Need to find text of an element using watir Hi Thanks for the reply but we want to get the text

[wtr-general] OLE

2009-03-26 Thread Vikas Tulashyam
Hi Guys, I want to create a method by which I can perform any operation on a object by just passing the identifier of that object. In Watir , we need to call specific methods for calling a particular object as-- ie.text_filed(:id, 'Text1').set('Test') So, Can I impelment my method using

[wtr-general] Re: OLE

2009-03-26 Thread Vikas Tulashyam
26, 11:35 am, Vikas Tulashyam vtulash...@gmail.com wrote: Hi Guys, I want to create a method by which I can perform any operation on a object by just passing the identifier of that object. In Watir , we need to call specific methods for calling a particular object as-- ie.text_filed(:id

[wtr-general] Re: OLE

2009-03-26 Thread Vikas Tulashyam
Object of IE. You need to study more about IE ole object if you want to do that. - Angrez On Thu, Mar 26, 2009 at 12:07 PM, Vikas Tulashyam vtulash...@gmail.comwrote: I have tried this code but it gives error for document function. as-- LE.rb:7:in `method_missing': Document

[wtr-general] Re: Packaging 3rd party tool

2009-03-26 Thread Vikas Tulashyam
Hi Guys, Please reply, this is possible or not? Thanks Vikas On Mar 26, 9:27 am, Vikas Tulashyam vtulash...@gmail.com wrote: Hi Friends, I want to bundle a 3rd party tool with my Watir framework e.g. some Java based tool. So is it possible in Watir? Thanks in Advance Vikas

[wtr-general] Re: firefox error

2009-03-25 Thread Vikas Tulashyam
JSSh extension? The command that you ran will always be successful whether the extension is there or not. - Angrez On Tue, Mar 24, 2009 at 5:50 PM, Vikas Tulashyam vtulash...@gmail.comwrote: Hi Friends, I am getting an error while using the firefox. require 'watir

[wtr-general] Re: firefox error

2009-03-24 Thread Vikas Tulashyam
I dont know .How to install this extension.. On Mar 24, 6:11 pm, Angrez Singh ang...@gmail.com wrote: did you installed JSSh extension? The command that you ran will always be successful whether the extension is there or not. - Angrez On Tue, Mar 24, 2009 at 5:50 PM, Vikas Tulashyam

[wtr-general] getProperty

2009-03-23 Thread Vikas Tulashyam
Hi Friends, I want to get the Properties of any object in Watir. Is Watir provides any method to get the property ..say left.. Please help me.. Thank you very much in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[wtr-general] Re: getProperty

2009-03-23 Thread Vikas Tulashyam
. So is there an method in Watir like getProperty(). On Mar 23, 3:27 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Mar 23, 2009 at 11:19, Vikas Tulashyam vtulash...@gmail.com wrote: I want to get the Properties of any object in Watir. Can you give an example of what you

[wtr-general] Re: getProperty

2009-03-23 Thread Vikas Tulashyam
Hey Thank you very much :) On Mar 23, 4:17 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Mar 23, 2009 at 12:14, Vikas Tulashyam vtulash...@gmail.com wrote:  ie.link(:id, 'a1').getProperty('InnerHTML') Try this: ie.text_field(:index, 1).attribute_value(custom_attribute

[wtr-general] .so and h files

2009-03-19 Thread Vikas Tulashyam
Hi Friends, Can anybody tell me, what is the so and h files found in the C:\ruby \lib\ruby\1.8\i386-mswin32 folder.Can we create these files. Thanks Vikas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir

[wtr-general] Different Methods

2009-03-19 Thread Vikas Tulashyam
Hi Guys, I have some questions -- 1. Can I select multiple elements from a list, if yest then what is the method? 2. Can I double click on elements in watir? 3. Can I perform a Drag and Drop operation in Watir if my AUT supports it ? 4. Can I perporf Mous up/Down, Mouse Movement/over , Key

[wtr-general] Re: Hoe to Execute another scripts

2009-03-13 Thread Vikas Tulashyam
not be the best way to execute scripts Use Rake, SpecTask or good old TestUnit runner. marekj Watirloo: Semantic Page Objects in UseCases Human Readable Machine Executable Acceptance Testinghttp://github.com/marekj/watirloo/ On Thu, Mar 12, 2009 at 7:02 AM, Vikas Tulashyam vtulash

[wtr-general] Package creation

2009-03-11 Thread Vikas Tulashyam
Hi, I am trying to create a framework in Watir, so I need to create a package/Installable for this purpose. Please give me some pointer in this area. Thanks Vikas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[wtr-general] MYSQL error

2009-03-05 Thread Vikas Tulashyam
Hi Friends, I have installed the MYSQL server 5.1. But when I am trying to connect it through watir I am gettin an error - This Application has failed to start becasue LIBMYSQL.dll was not found. Re-installing the application may fix this problem. I tried to register this dll but i got an error

[wtr-general] Re: Help Object repository

2009-03-05 Thread Vikas Tulashyam
Hi, You are right, Watir doesn't support object repository concept and even you can't spy the object properties. Thanks Vikas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this

[wtr-general] $ie.maximize

2009-03-03 Thread Vikas Tulashyam
Hi Friends, I am not able to use the maximize method of IE class. Please see the below code. An error is thrown for maximize method. Please suggest if something wrong-- require 'watir' require 'test/unit' class TestSuite_IRCTC Test::Unit::TestCase $ie = Watir::Browser.new $test_site =

[wtr-general] popup handling

2009-03-03 Thread Vikas Tulashyam
Hi friends, I am getting an error while handling the popup. I have attached the code and following is the error message�� :/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/ enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32 (NameError) from