[Wtr-general] How to differentiate between a 'clicked' a 'disabled' or 'greyed-out' tab

2007-06-28 Thread vijay
Hello people, As part of testing with Watir, I want to check whether a particular tab (in a table) is in a 'clicked' (one that is currently clicked) state or in a 'disabled' (greyed-out or inaccessible ) state. I am not able to distinguish between a that is clicked and a tab that is disabled

Re: [Wtr-general] How to differentiate between a 'clicked' a 'disabled' or 'greyed-out' tab

2007-06-28 Thread Željko Filipin
Hi Vijay, It would help if you posted html of that tab. Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] data driven tests and looping through rows

2007-06-28 Thread Jason Naylor
What's your preferred method and code for looping through source files? Essentially, each row within my source file represents a bunch of variables I want to use - whether they be various usernames/passwords for login; information on various fields on my screen I want to assert; etc. I've used

Re: [Wtr-general] Unable to locate object using ie.#{variable}

2007-06-28 Thread Jason
Should this be possible? i.e. rather than specify an *exact* object within the IE, have this 'object' within a variable: code v_type = text_field ie.#{v_type}(:id, emailAddress).flash /code It doesn't work as I have it above. Neither do the following: code ie.{v_type}(:id,

Re: [Wtr-general] Unable to locate object using ie.#{variable}

2007-06-28 Thread Željko Filipin
On 6/28/07, Jason [EMAIL PROTECTED] wrote: Can I actually do this??? Hi Jasnon, I think you can not do that. What do you want to do with that? Maybe there is another way. Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list

[Wtr-general] assert on the color of a row in the table

2007-06-28 Thread Ajitesh Srinetra
Hi All Just wanted to know how can we assert on the Color of a row of a table. The color is there in the CSS. The html snippet is like this /tr tr style=color: rgb(192, 39, 77); td align=right style=padding: 5px; 5 /td td align=center style=padding: 5px; 27-06-2007 /td td align=right

Re: [Wtr-general] Unable to locate object using ie.#{variable}

2007-06-28 Thread Jason
v_type = text_field ie.#{v_type}(:id, emailAddress).flash I think you can not do that. What do you want to do with that? Maybe there is another way. I simply wanted to loop through a list of objects (text_fields, select boxes, radio buttons, checkboxes, etc) on a page, ensuring each exists

Re: [Wtr-general] data driven tests and looping through rows

2007-06-28 Thread marekj
Jason, I think you can do better with Faster CSV gem. You can read (slurp) the entire csv into array of arrays (two dimensional). like zo... require 'fastercsv' mydata = FCSV.read('filename.csv') now you can do whatever you need with mydata because it's a 2D Array[][]

Re: [Wtr-general] UnknownObject Exception when running test cases

2007-06-28 Thread Tiffany Fodor
Thanks for the suggestion! I tried it and I'm pointing to the correct link, so I still don't know what my problem with this is. Looking up objects using IRB did help me with a different issue I was working through, however! ___ Wtr-general mailing

Re: [Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-06-28 Thread Jason
ie.link(:after?, ie.image(:id, 'foo')).click Does / can this apply to anything other than 'links' or 'images'? i.e. I attempted this: ie.text_field(:after?, ie.label(:for, confirmPassword)).flash Which didn't work. Even though the individual ie.label(:for, confirmPassword) *does* work.

[Wtr-general] Ruby/Watir on Vista : watir-1.5.1.1192 and windows-pr-0.6.2 : SetConsoleCommandHistoryMode : RuntimeError

2007-06-28 Thread Michael Kernaghan
Problem occurs with watir-1.5.1.1192 but DOES NOT occur with watir-1.5.1.1166 Good result thanks! I get these errors: c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.6.2/lib/windows/console.rb:7 6:in `initialize': GetProcAddress: SetConsoleCommandHistoryMode or

Re: [Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-06-28 Thread Charley Baker
What's :for? It's not part of Watir. Have you tried by :name and/or :id? On 6/28/07, Jason [EMAIL PROTECTED] wrote: ie.link(:after?, ie.image(:id, 'foo')).click Does / can this apply to anything other than 'links' or 'images'? i.e. I attempted this: ie.text_field(:after?, ie.label(:for,

Re: [Wtr-general] UnknownObject Exception when running test cases

2007-06-28 Thread Paul Carvalho
If the code below is an actual snippet from your code then could the *order* the tests be the problem? Please remember that the _default_ order of execution is ascending alpha, so the script would likely try to run the tests in the following order regardless of how they are arranged in the

Re: [Wtr-general] UnknownObject Exception when running test cases

2007-06-28 Thread Tiffany Fodor
Paul, Thank you, thank you, thank you I had moved on, assuming there was something weird about the way the login was working. This morning, I added a new test case that wasn't in alphabetical order and I've been beating my head against my desk trying to figure out why debug statements

[Wtr-general] Best Combination - for Modal Dialog/Vista

2007-06-28 Thread Michael Kernaghan
I have been working on getting modal dialog tests to work running from Vista. As of now, the current working combination is Ruby 1.8.2 -15 and Watir Gem 1.5.1.1166 and I have made no special changes to either of those. I am looking for a good test example somewhere. I have got a simple one to

Re: [Wtr-general] Unable to locate object using ie.#{variable}

2007-06-28 Thread hhwwpssp
Hi Jason, Try: v_type = 'text_field' instance_eval(ie.#{v_type}(:id, 'emailAddress').flash) Or: v_type = 'text_field' ie.send(v_type.to_sym, :id, 'emailAddress').flash ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] UnknownObject Exception when running test cases

2007-06-28 Thread hhwwpssp
Now that I've appended a number to the test names to indicate the correct order, they work just fine. Maintaining the numbers to keep correct order can become a pain as your test suite grows. You can also make the tests run in the order you defined them by subclassing Watir::TestCase instead

[Wtr-general] how to install Eclipse plugin for ruby ?

2007-06-28 Thread jieke
I try to use Eclipse debug ruby program. So I download a plugin named RDT(Ruby Development Tools).But I can't use it.(The RDT download http://rubyeclipse.sourceforge.net/;) I startup Eclipse and click help/software Updates/find and install/finish IT register Network connection problems

[Wtr-general] Problem in clicking javascript alert button in firewatir

2007-06-28 Thread VIKASH KUMAR
I am using firewatir version 1.0.2 I am able click on javascript OK button using the below code :: $ff.button(:text,/Cancel/).click_no_wait $ff.click_jspopup_button(OK) But, I have a scenario in which javascript alert comes (and sometimes may not) when we change an item in select

Re: [Wtr-general] Problem in clicking javascript alert button in firewatir

2007-06-28 Thread Angrez Singh
Hi, We are working on it and probably this will be there in next release. Regards, Angrez On 6/29/07, VIKASH KUMAR [EMAIL PROTECTED] wrote: I am using firewatir version 1.0.2 I am able click on javascript OK button using the below code :: $ff.button(:text,/Cancel/).click_no_wait