[wtr-general] Re: How to handle popup confirm window in Ubuntu firefox3.0 with Firewatir-1.6.2

2009-03-23 Thread Angrez Singh
Can you make sure that pop up text is correct? Also can you post your ruby/html code here so that we can help you better. - Angrez On Mon, Mar 23, 2009 at 7:37 AM, ajee ajee@gmail.com wrote: Hi all, I have searched the Internet for a long time on this topic, but there is no resolve I

[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-23 Thread Wesley Chen
How many text fields are on the www.google.com page? I think :index =2 should be after :name =q Thanks. Wesley Chen. On Mon, Mar 23, 2009 at 1:20 PM, Isabel joybe...@gmail.com wrote: Hi, I tried to use the code below to set a value in the text box of the google search page. require

[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-23 Thread Željko Filipin
On Mon, Mar 23, 2009 at 06:20, Isabel joybe...@gmail.com wrote: ie.text_field(:index = 2 , :name = q).set(xyz) You are trying to set the second text field that has name q, but Watir can not find it. Maybe because there is only one. If you use just :index = 2 or just :name = q it should work

[wtr-general] Re: getProperty

2009-03-23 Thread Kiran Darekar
Use IE Developers toolbar to get object properties. Regards, Kiran NOTICE: This email message, including any attachments, may contain information that is confidential and/or proprietary. If you are not an intended recipient, please be advised that any

[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 Željko Filipin
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 need? Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[wtr-general] Re: getProperty

2009-03-23 Thread Vikas Tulashyam
Hi, I want to get a property of an object like -- ie.link(:id, 'a1').getProperty('InnerHTML') Here, I want to implement getProperty function. So I can get any property of that particular object (Here, I am getting the object as- ie.link(:id, 'a1')). I want to get other properties of this

[wtr-general] Re: getProperty

2009-03-23 Thread Željko Filipin
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) = so cool I blogged about it:

[wtr-general] Asking for safariwatir source while running scripts from watirrecorder++

2009-03-23 Thread Shweta
Hi I have generated a script from watir recorder and trying to run from scite but displaying error as MissingSourceFile: no such file to load -- safariwatir c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/core_ext/module/introspection.rb:70:in `const_get'

[wtr-general] Re: Asking for safariwatir source while running scripts from watirrecorder++

2009-03-23 Thread Željko Filipin
On Mon, Mar 23, 2009 at 12:21, Shweta nagman...@gmail.com wrote: I have generated a script from watir recorder You will not get very far with Watir if you do not read this: http://wiki.openqa.org/display/WTR/Quick+Start http://wiki.openqa.org/display/WTR/Tutorial MissingSourceFile: no such

[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] Re: Asking for safariwatir source while running scripts from watirrecorder++

2009-03-23 Thread Shweta
I have windows XP 2000 in my machine and i was recording in IE 7 is it not possible with Windows IE? or is it possible to run if i install safari with windows only? can u suggest me any other recording tools which supports for windows IE On Mar 23, 4:34 pm, Željko Filipin

[wtr-general] Re: Asking for safariwatir source while running scripts from watirrecorder++

2009-03-23 Thread Željko Filipin
On Mon, Mar 23, 2009 at 12:59, Shweta nagman...@gmail.com wrote: or is it possible to run if i install safari with windows only? No. SafariWatir works only on Mac. can u suggest me any other recording tools which supports for windows IE I have not used any recorder, but maybe this would do:

[wtr-general] WET will not Work with out the RPC server running

2009-03-23 Thread raju
Hi, I have Installed WET 1.0.0,after the Installion when i tried to open the WET from the Start programs it is giving Error RPC server is not Running I have started Remote Procedure call(RPC) services manually Then also it is giving Error Could anybody help us resolving the issue? Thanks,

[wtr-general] Problem with RPC server

2009-03-23 Thread raju
Hi, I have Installed WET1.0.0,after the installation i tried to open WET using start Programs It is Giving Error RPC server Is not Running Maually i started RPC,then also it is giving Error Could anybody help us resolving the issue? Thanks, Rajkumar

[wtr-general] Re: WatirRecorder++ can't record the user action from a new IE process

2009-03-23 Thread Željko Filipin
On Mon, Mar 23, 2009 at 12:56, 王博天 iamhappypri...@gmail.com wrote: ie.link(:url, 'http://youa.baidu.com/my/').click# here will open a new page ,then I do some thing on new page but WatirRecorder++ can't record this You will have to ask this at watir recorder support forum:

[wtr-general] Re: WET will not Work with out the RPC server running

2009-03-23 Thread Željko Filipin
On Mon, Mar 23, 2009 at 13:34, raju rajkumar9...@gmail.com wrote: I have Installed WET 1.0.0 You will have to ask this at wet support forum: https://lists.sourceforge.net/lists/listinfo/wet-users Željko --~--~-~--~~~---~--~~ You received this message because

[wtr-general] Watir::Element#visible? not working

2009-03-23 Thread Ruf, Wadud
Hi, I am calling code like the following and it is complaining that the element does not have the method - browser = Watir::IE.new return browser.div(:id, div_id).visible? The error I get is - undefined method for #(Watir::Div:0x602ad04) (NoMethodError) As I understand it div

[wtr-general] How do I get index of a option selected in drop down

2009-03-23 Thread aditi
Hi, I want to get all option indexes (option number, starting at 0) for selected options in the specified select or multi-select element Can anyone help on this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[wtr-general] click_no_wait broken with Ruby 186-27

2009-03-23 Thread Bret Pettichord
Jim Matthews recently narrowed down the oft-reported problem with click_no_wait not working. The problem shows up with Ruby versions newer than 1.8.6-26. Bret -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter,

[wtr-general] Re: Asking for safariwatir source while running scripts from watirrecorder++

2009-03-23 Thread Bret Pettichord
The code that the WatirRecorder generates is not compatable with Watir 1.6. Bret Shweta wrote: For this tool they specifically mentioned that This tool works with Firefox 1.5 and above.Actually i want to use IE only.I dont think it helps for me On Mar 23, 5:16 pm, Željko Filipin

[wtr-general] Re: Watir::Element#visible? not working

2009-03-23 Thread Ruf, Wadud
Yes that works! A Ruby newbie, I should've known to have checked for that :) Thanks Wadud -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of aidy lewis Sent: 23 March 2009 14:26 To: watir-general@googlegroups.com Subject:

[wtr-general] Re: Watir::Element#visible? not working

2009-03-23 Thread aidy lewis
It is not obvious, you should put it on the wiki. Aidy On 23/03/2009, Ruf, Wadud wadud@capgemini.com wrote: Yes that works! A Ruby newbie, I should've known to have checked for that :) Thanks Wadud -Original Message- From: watir-general@googlegroups.com

[wtr-general] Re: click_no_wait and click! not working javascript popup

2009-03-23 Thread Jim Matthews
I have figured a few things out with the click_no_wait problem. This potentially affects any program that uses the Ruby system call, which click_no_wait does. There is also appears to be a problem with Watir#wait_until, that is used by enabled_popup, which is used to check for the presence of a

[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-23 Thread Michael Hwee
There is high important to less important in multiple attributes search. In your case, you haveie.text_field(:index = 2 , :name = q) To us, it means - find text_field with index=2 - comfirm that it also has name='q' So, no wonder you are getting non_existance error if you have other

[wtr-general] Re: WatirRecorder++ Playback question

2009-03-23 Thread Bret Pettichord
Watir Recorder generates scripts that are not compatable with Watir 1.6. Boyd Ivey wrote: Can anyone answer this? I uninstalled Ruby and watirrecorder++ and reinstalled Ruby hoping that would help. After reinstalling Ruby I ran a .rb file and after running the .rb file from a dos box

[wtr-general] Re: How to run sample google search script in irb?

2009-03-23 Thread Bret Pettichord
Two ways to do this. A. irb load 'google_search.rb' B. ruby google_search.rb Bret AgileTester78 wrote: Hello I am new to Ruby and I downloaded and installed Ruby as well as Watir. I downloaded the google_script.rb to my directory. I see the file in my directory. Steps to run the

[wtr-general] Re: Excel Issue?

2009-03-23 Thread Jason Shelton
Thanks for the response. Can you refer me to something else to print the results to, besides Excel? I would prefer something very similar to Excel. Thanks alot. - Shelton Date: Fri, 20 Mar 2009 09:41:06 -0700 Subject: [wtr-general] Re: Excel Issue? From: tcfo...@comcast.net To:

[wtr-general] Re: Excel Issue?

2009-03-23 Thread Željko Filipin
On Mon, Mar 23, 2009 at 18:52, Jason Shelton jas.shel...@hotmail.com wrote: Can you refer me to something else to print the results to, besides Excel? I would prefer something very similar to Excel. CSV files? http://en.wikipedia.org/wiki/Comma-separated_values Željko

[wtr-general] Re: post request

2009-03-23 Thread aidy lewis
From Ruby yes http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html Aidy On 23/03/2009, gtardini gtard...@gmail.com wrote: Hi all, first post! I wanted to know if it was possible to initiate a post request directly from watir ( or firewatir ). Thanks a lot in advance,

[wtr-general] Creating a header row in excel

2009-03-23 Thread jtk
Hello, I receive the following error trying to create a new spreadsheet with the following code require 'watir' require 'win32ole' excel = WIN32OLE::new('excel.Application') workbook = excel.Workbooks.Add worksheet = workbook.Worksheets(1) worksheet.SaveAs(spreadsheet.xls)

[wtr-general] Re: Creating a header row in excel

2009-03-23 Thread jtk
I've been messing around with this some more and discovered that if I use require 'watir' require 'win32ole' excel = WIN32OLE::new('excel.Application') workbook = excel.Workbooks.Add worksheet = workbook.Worksheets(1) worksheet.SaveAs(\ spreadsheet.xls) worksheet.range(a1).value = Start Time

[wtr-general] Re: Regex in the link's text

2009-03-23 Thread Rich Downie
try this; var = /vb/ ie.link(:text, var).click On Mon, Mar 23, 2009 at 9:46 PM, vladimir...@hotmail.com vladimir...@hotmail.com wrote: I have a link with the following text: vb (User-44, vb:DocuShare)CPX. It works when I use the statement: ie.link( :text, /vb/ ).click But for the

[wtr-general] Re: Regex in the link's text

2009-03-23 Thread vladimir...@hotmail.com
Thank you, Rich. What you propose has no difference with ie.link( :text, /vb/ ).click As I wrote, it works. Unfortunately, I cannot use it. I develop a function that has a parameter var. It takes the text that goes into regular expression. This is equivalent to var = vb ie.link( :text,

[wtr-general] Re: Regex in the link's text

2009-03-23 Thread vladimir...@hotmail.com
Thank you, Wesley. It works although editor highlights everything after # in ie.link (:text, /#{vb}/).click as comments. Amaizing :-) On Mar 23, 8:51 pm, Wesley Chen cjq@gmail.com wrote: Try ie.link(:text, /#{vb}/).click Thanks. Wesley Chen. On Tue, Mar 24, 2009 at 11:36 AM,

[wtr-general] Synchronization Points

2009-03-23 Thread vladimir...@hotmail.com
In comercial tools, like QuickTest Pro, there are API for synchronization points. You may wait for a certain time while the page is downloded before performing any operations on it. The API ranges from simple wait() to more sophisticated functions waiting for specific object properties. Do we