[wtr-general] Re: undefined method `close' for nil:NilClass (NoMethodError)

2009-04-02 Thread Shweta
HI Tiffany Thanks for your reply Still am getting error saying error: /nnn.rb:36: warning: parenthesize argument(s) for future version ./nnn.rb:26: undefined local variable or method `dirrectory' for main:Object (NameError) from

[wtr-general] Re: Podcast with Bret on WatirCraft

2009-04-02 Thread Željko Filipin
On Thu, Apr 2, 2009 at 03:04, Alister Scott alister.sc...@gmail.com wrote: It's probably already recorded by now, but I am curious about what Bret thinks about including a data driver in WatirCraft, such as Roo. I can actually read minds on April 1st every year, so I knew you would ask that. I

[wtr-general] Web page is not opening

2009-04-02 Thread Shweta
HI I am trying to open this link http://wiki.rubygarden.org/Ruby/page/ show/ScriptingExcel, which i got from google and which helps for excel scripting.But its not opening showing HTTP404 error. Can anyone suggest me is theer any basic excel scripting links

[wtr-general] Re: Watir support third party controls?

2009-04-02 Thread Željko Filipin
On Thu, Apr 2, 2009 at 08:56, Newwatir shaikm.fi...@gmail.com wrote: Does Watir support third party controls (like Telerik contorls)? An example would be handy right about now! (From: http://www.exampler.com/blog/2007/08/07/marketing-mania-continues/) Željko

[wtr-general] Re: Dynamic Objects

2009-04-02 Thread jam
Hi Charley, Oh really sorry for not explaining the problem clearly. The application I am dealing here, is an Sharepoint build application (internal). Whatsoever, an application deployed in different environments may have different IDs where the application generates specific part of ID during

[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] How to connect SQL server 2005 in Ruby when the DB name is as 172.11.22.5\thesql?

2009-04-02 Thread Wesley Chen
Hi, guys, I meet a problem to connect to the SQL 2005 in ruby. 1. On local, there is a SQL 2005 server, it is: *Server name:* 192.168.132.157 *User:* Wesley *Password:* 11 I can connect it successfully by: *db=SqlServer.new('192.168.132.157', 'Wesley', '11')* But on INT server, it is SQL

[wtr-general] SelectList behaves differently with 1.6.2?

2009-04-02 Thread Jarmo Pertman
Hello. I've updated Watir from 1.5.6 to 1.6.2 and at least one test started failing with suspicious problems. First, I have this line: $browser.select_list(:name, blah).select myvalue This line fails, saying that value is not there. When I print html, then value is not there indeed. When I do

[wtr-general] Re: Dynamic Objects

2009-04-02 Thread sai
Sharepoint is a real pain. I had done some work in my previous place automating sharepoint app. Check if a part of the object locator stays constant and try using it as regex. That may help. On Apr 2, 1:26 pm, jam ruby.wa...@gmail.com wrote: Hi Charley, Oh really sorry for not explaining the

[wtr-general] Re: Dynamic Objects

2009-04-02 Thread Tony
You could also check if the xpath is changing, most probably the xpath for the element would not change... hence you could use xpath to identify your elements -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[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] How can i see all the events for Fire_Event

2009-04-02 Thread Jonty
Hi, I wanted to know what all events i can trigger in Fire_Event. how can i see all the event in IRB. whats the command ?? thanks in advance, Jonty --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General

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

2009-04-02 Thread sai
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, means execution is finished. Thanks Vikas Tony wrote: Hi Vikas, Could you tell me what you are

[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] undefined method `button' for #Array:0x3451bd8 (NoMethodError)

2009-04-02 Thread Shweta
Hi Am using arrays in my script to test with multiple data,the scenario is in my application i have a search page there i am able to search with different criteria and there is a clear button to set the values to default.I am using different files as a libraries and am calling all there files in

[wtr-general] Re: How to connect SQL server 2005 in Ruby when the DB name is as 172.11.22.5\thesql?

2009-04-02 Thread Татьяна Запольская
Hi Wesley Chen, The second variant is right: *db=SqlServer.new('**172.11.22.5\\thesql**', 'Wesley', '*abc?de*')* But the problem can be with password, try the following: *db=SqlServer.new('**172.11.22.5\\thesql**', 'Wesley', '**abc\?de**')* PS: The problem can be also inside the *SqlServer

[wtr-general] Re: SelectList behaves differently with 1.6.2?

2009-04-02 Thread bwaybandit
this works in 1.6.2 you might want to use wait_until and make sure your object shows up before you use select On Apr 2, 4:38 am, Jarmo Pertman jarm...@gmail.com wrote: Hello. I've updated Watir from 1.5.6 to 1.6.2 and at least one test started failing with suspicious problems. First, I

[wtr-general] Re: undefined method `button' for #Array:0x3451bd8 (NoMethodError)

2009-04-02 Thread bwaybandit
have u tried printing out what is in you array right before that statement executes to make sure you have a valid value? On Apr 2, 7:24 am, Shweta nagman...@gmail.com wrote: Hi Am using arrays in my script to test with multiple data,the scenario is in my application i have a search page

[wtr-general] Re: How can i see all the events for Fire_Event

2009-04-02 Thread bwaybandit
that you cannot get from IRB. you will have to know what events that are tied to the particular object you are working with. if you are working with a javascript object for example, look at the code or ask the developer whose code you are testing what events are tied to the object. On Apr 2,

[wtr-general] How do you find find frames.

2009-04-02 Thread jason
I have looked and looked through the docs and I simply cannot find an answer to this. after calling doc = firefox.goto(some_url) I would like know what frames I have on the rendered page, i.e. frames = doc.frames #of cource this does not work, but I would expect an array of frame objects

[wtr-general] Re: How do you find find frames.

2009-04-02 Thread Wesley Chen
You may try: ff.show_frames Thanks. Wesley Chen. On Thu, Apr 2, 2009 at 10:44 PM, jason jason.franklin.sto...@gmail.comwrote: I have looked and looked through the docs and I simply cannot find an answer to this. after calling doc = firefox.goto(some_url) I would like know what frames

[wtr-general] reflecting a frame looses the main document contents

2009-04-02 Thread jason
So yet another strange thing, that I might be misunderstanding, After I query a frame for somthing, it like only this frame is relevant for any queries untill I address another frame. i.e. document = ff.got_to(some_url) document.links #great give me the links

[wtr-general] Re: How do you find find frames.

2009-04-02 Thread jason
Thanks - I know this. The method is not helpful because it uses puts to output the frame information. The thing is - I don't need to see them - I want my program to automatically review them. i.e. getting links and buttons etc. On Apr 2, 5:19 pm, Wesley Chen cjq@gmail.com wrote: You

[wtr-general] autoit and CI

2009-04-02 Thread aidy lewis
Hi, Is anyone having any problems running autoit through CI? I am using interactive mode. Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to

[wtr-general] Re: How do you find find frames.

2009-04-02 Thread Paul Rogers
his doesnt answer your question, may be relevant;-) Some time back I was using firefox/firewatir to try and figure out if a page had frames, and if it did how many etc. It proved surprisingly difficult, I think because sometimes ( I cant remember what/how/why) firefox ( or firewatir ) would give

[wtr-general] Re: Problems recognizing MS Reporting Services reports

2009-04-02 Thread Steve
I'm still looking into this. There's a mistake in my first post, however. The results that Reporting Services returns are apparently NOT in HTML. That is, if you run a report, get the results, and then do a View Source, the source code you see does not contains the report results at all. It

[wtr-general] Re: How to capture unique session ID from URL

2009-04-02 Thread marekj
Try URI::HTTP class. if you have url http://hostname/path/to/file?key=valukey2=value42; then require 'uri' uri = URI.parse ie.url gives you an uri object that conforms to HTTP protocol, so url.query.split('') # = array of queryitems =['key=value', 'key2=value42'] you can then reconstruct

[wtr-general] Re: reflecting a frame looses the main document contents

2009-04-02 Thread jason
just for documentations sake - here is the solution that I am now using. add the following to firefox.rb or better monkeypatch it. def root set_browser_document end now you can locate a frame and get it contents and then switch back to the main document with ff.root On Apr 2,

[wtr-general] Re: How do you find find frames.

2009-04-02 Thread jason
I descided to add the method get_frames and refactor show_frames in the firefox.rb file as follows: now i can call get_frames and recieve the frames in an array with their attributes. BTW if you do this you wont be able to get back to the root document unless you also add the methods root to the

[wtr-general] Re: Performance Testing

2009-04-02 Thread Lisa Crispin
We have done a baseline with JMeter, we like the tool, but we used BadBoy to create the scripts (and it was a fairly rudimentary test). I was just wondering the other day if it's possible to incorporate Watir scripts with some perf/load test tool. I heard BrowserMob can use Selenium scripts. --

[wtr-general] Re: How do you find find frames.

2009-04-02 Thread Charley Baker
Can you also add this as a jira ticket with this patch? Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Thu, Apr 2, 2009 at 1:11 PM, jason jason.franklin.sto...@gmail.comwrote: I descided to add the method

[wtr-general] Checking form controls/fields using a hash

2009-04-02 Thread George
Hello everyone, I'm hoping this is the right forum for this question. I'm trying to iterate through a hash and check certain text fields on a webpage: Here is where I'm storing my controls: controls.rb # stores the form control variables === def tf_company_name

[wtr-general] Re: undefined method `button' for #Array:0x3451bd8 (NoMethodError)

2009-04-02 Thread Bret Pettichord
Shweta/Nagmani, You are asking a lot of questions here, and you are often not giving us the code we would need to answer your questions. It seems like you have built a framework that is too complicated for you to debug. This would mean that you either need to ramp up your Ruby skills fast or

[wtr-general] Re: Load Error while running feature in cucumber (watir/cucumber)

2009-04-02 Thread Bret Pettichord
Doesn't look like a Watir bug. pallavi shashidhar wrote: Hi, I have ruby 1.8.6 and watir 1.6.2 installed in my system . I have installed cucumber 0.2 and have watir scripts in feature/steps when i try to run the feature, i constantly get the following error

[wtr-general] How to know if the checkbox is checked or not?

2009-04-02 Thread satish
I have a checkbox, I have to perform check every time whether it is checked or not. Can some one help me with code. Thank you, Satish. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to

[wtr-general] verify url vs element on the page

2009-04-02 Thread Tester78
I am really new to watir and need some help on how to go about testing this case. I am trying to test a next button on a page. If I am on the homepage(http://example.com/1.aspx.com) and click the next button, I am taken to the next page with the url(http://example.com/ 2.aspx.com). If I hit

[wtr-general] Re: How to know if the checkbox is checked or not?

2009-04-02 Thread Wesley Chen
You may try ie.checkbox( ).isSet? Thanks. Wesley Chen. On Fri, Apr 3, 2009 at 1:03 AM, satish spanchumar...@gmail.com wrote: I have a checkbox, I have to perform check every time whether it is checked or not. Can some one help me with code. Thank you, Satish.

[wtr-general] Re: Checking form controls/fields using a hash

2009-04-02 Thread George
Thanks, Paul! For those who are interested, this part of the code worked for me: contact_controls.each do |key, value| if contact_controls.has_key?(key) puts PASS: Control #{value} exists. else puts FAIL: Unable to locate control #{value} end end I thought I

[wtr-general] Re: How to know if the checkbox is checked or not?

2009-04-02 Thread George
You can also use there: ie.checkbox.enabled? ie.checkbox.disabled? ie.checkbox.blank? As a beginner, I love the flexibility and forgiveness of writing code... On Apr 2, 5:53 pm, Wesley Chen cjq@gmail.com wrote: You may try ie.checkbox( ).isSet? Thanks. Wesley Chen. On Fri, Apr 3,

[wtr-general] Re: Performance Testing

2009-04-02 Thread Chuck van der Linden
On Apr 2, 2:01 pm, Paul Rogers paul.rog...@shaw.ca wrote: most load tools do direct http posts/gets/put requests. jmeter does this using a java library, to get the high levels of virtual users. Browsermob uses amazon cloud running ms windows 2003 server and a real browser. Paul is absolutely

[wtr-general] Re: Load Error while running feature in cucumber (watir/cucumber)

2009-04-02 Thread Chuck van der Linden
I agree with brett, doesn't sound watir related. do you have either require 'spec' or include 'spec' at the top of your steps file, or some other file being reqired or included in the steps file? the error sounds like you've effectively told ruby i need 'spec' but ruby can't find it. so either

[wtr-general] Re: Need to check and uncheck multiple options in a multi select checkbox

2009-04-02 Thread Chuck van der Linden
If you were to try searching the group (see the little button up there called Search this group with the text entry box next to it?) using the phrase checkbox selection you would likely find several threads dealing with this. the short answer is clearall, then select the ones you want. for

[wtr-general] Re: Dynamic Objects

2009-04-02 Thread Chuck van der Linden
Tony and Sai are pointing in the right direction here.. In cases like this you are faced with a challenge that will require you to learn the dark art of regular expressions.. Generally the format of the problem is like this checkbox (or other generic item) nearby text that a human uses to

[wtr-general] Re: Checking form controls/fields using a hash

2009-04-02 Thread Paul Rogers
I think ( i didnt look too hard ) that it will only see if the key is there, this might be what you want contact_controls.each do |k,v| if k.exists? puts its there else puts oh no end end Pau On Thu, Apr 2, 2009 at 7:58 PM, George george.sand...@gmail.com wrote: Thanks,

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

2009-04-02 Thread ajee
Hi Angrez, Glad to see the reply on this topic, I know you are one of the maintainers of firewatir. As far as I searched on internet, many guys have the same problem on popup javascript window but not a clear solution I saw. Per your request, here is my ruby example code, I have removed some

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

2009-04-02 Thread ajee
Hi Angrez, Glad to see the reply on this topic, I know you are one of the maintainers of firewatir. As far as I searched on internet, many guys have the same problem on popup javascript window but not a clear solution I saw. Per your request, here is my ruby example code, I have removed some

[wtr-general] Need to select a option in combo box

2009-04-02 Thread aditi
Hi, I need to select a option in combo box and get selected value .I am not getting any method and type to use for selection of option in combo box.Can anyone please help on this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[wtr-general] Re: Need to select a option in combo box

2009-04-02 Thread Chuck van der Linden
1) did you try searching the group for the phrase combo box ? 2) did you look at the item with the ie developer toolbar or firebug to see what class it is? 3) what have you tried, and what results did you get On Apr 2, 9:15 pm, aditi aditi_...@yahoo.com wrote: Hi, I need to select a option

[wtr-general] Re: WIN32OLE Error

2009-04-02 Thread Chuck van der Linden
what sort of experimenting were you doing? what things did you change during the course of your experiments? have you tried reverting back to the code from before your experiments, does it work or is it now also broken?. (you are using source control, or at least keeping backups right?) On

[wtr-general] Re: verify url vs element on the page

2009-04-02 Thread Chuck van der Linden
On Apr 2, 2:06 pm, Tester78 hmtest...@gmail.com wrote: I am really new to watir and need some help on how to go about testing this case. I am trying to test a next button on a page.   If I am on the homepage(http://example.com/1.aspx.com) and click the next button, I am taken to the next page

[wtr-general] Re: WIN32OLE Error

2009-04-02 Thread vladimir...@hotmail.com
When I reverting back to my initial code, it does not work now . The error occurs while executing startup() function. My test cases start with the following code: $: File.expand_path(c:/watir testware/libraries) require 'setup' startup() The setup

[wtr-general] Need to generate documentation in Watir using RDOC functionality

2009-04-02 Thread aditi
Hi, I want to generate documentation in Watir using RDOC functionality.Can anyone tell me how I can do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to