Re: [Wtr-general] How to run test cases in sequence rather than atthe same time?

2007-01-22 Thread Jason He
Yes, it is not required to use test unit. However, it seems that test unit encapsulate some methods could handle error, as well as include some statistics for the test result. What is the suggestion if I want to write about 200~300 standalone test cases, which will run in a sequence, should

Re: [Wtr-general] How to click on image associated with link

2007-01-22 Thread Željko Filipin
On 1/19/07, minal [EMAIL PROTECTED] wrote: For some strange resons ie.cell(:id, 10TD37).click doesn't work on my application. I think you need to have watir 1.5 for that. -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list

Re: [Wtr-general] key codes are always zero

2007-01-22 Thread Željko Filipin
On 1/21/07, David Appledore [EMAIL PROTECTED] wrote: the text entered into text boxes does not fire key events properly in the IE DOM Take a look at FAQ, section Triggering JavaScript events http://wiki.openqa.org/display/WTR/FAQ#FAQ-TriggeringJavaScriptevents -- Zeljko Filipin

Re: [Wtr-general] How to run test cases in sequence rather than atthe same time?

2007-01-22 Thread Željko Filipin
On 1/22/07, Jason He [EMAIL PROTECTED] wrote: However, it seems that test unit encapsulate some methods could handle error You can also handle errors in ruby without test unit. Take a look at Exceptions, Catch, and Throw section of Programming Ruby (

Re: [Wtr-general] key codes are always zero

2007-01-22 Thread Paul Rogers
I think Ive tried to do this and never made it work... Hi, I enjoyed using Watir, I have one problem. When automating tests, the text entered into text boxes does not fire key events properly in the IE DOM, the key codes are always zero. I am testing a browser plugin, that captures keystrokes

Re: [Wtr-general] How to run test cases in sequence rather than atthe same time?

2007-01-22 Thread Bret Pettichord
Jason He wrote: Yes, it is not required to use test unit. However, it seems that test unit encapsulate some methods could handle error, as well as include some statistics for the test result. What is the suggestion if I want to write about 200~300 standalone test cases, which will run in a

Re: [Wtr-general] same text fordifferent urls..

2007-01-22 Thread Nathan Christie
When you say, ...it's working for the general urls, but not for the ajax links..., what exactly to you mean by not working. Does it seem the click() method is not being called and the page is not changing, or is there a runtime object [link] identification error?

Re: [Wtr-general] How to retrieve TH in table

2007-01-22 Thread Nathan Christie
This COM code will work if you're having trouble getting exactly what you want from Watir: my_header = $browser.table( :id, 'ctl00_MasterContentPlaceHolder_DomainGridView' ).getOLEObject().rows( 0 ).innerText().to_a() Unfortunately, this returns escaped characters as well. You can also

[Wtr-general] Cannot select in dropdown box, written in javascript

2007-01-22 Thread Andrew
Hello, I am new to Watir and need to select an item in a dropdown box. This dropdown is a table and located in a body, written in javascript. I tried regular $ie.select_list( :name , search_clientid).select(qaone), but it doesn't work. Please help! body script type=text/javascript

Re: [Wtr-general] Cannot select in dropdown box, written in javascript

2007-01-22 Thread carl . l . shaulis
Howdy, Does your select box appear as a Popup? If my assumption is correct you can use something like this: @ie.link(:text, link to JS Pop Up).click ie2 = IE.attach(:title, Title of the Pop Up) assert(ie2.selectBox(:name, search_clientid).exists?)

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-22 Thread Jason He
Do these test cases are compatible both running in IE and firefox? How about it to the test cases with/without using test unit? Should each test cases need to be changed, or just change the browser name at the control list. Regards, Jason From: [EMAIL

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-22 Thread Bret Pettichord
If you really like test unit, Bret made a patch for it so methods are run in order you define them, but I did not try it. Take a look. http://wiki.openqa.org/display/WTR/Test-Unit+Patch https://neo/display/WTR/Test-Unit+Patch,DanaInfo=wiki.openqa.org+ This is in the latest Development gems.

[Wtr-general] error happened when calling verify_match() ...

2007-01-22 Thread Jason He
Hi, I tried to use Verification methods verify file:///C:/watir1145/rdoc/classes/Watir/Assertions.html#M000186 verify_equal file:///C:/watir1145/rdoc/classes/Watir/Assertions.html#M000187 verify_match file:///C:/watir1145/rdoc/classes/Watir/Assertions.html#M000188 Included

Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???

2007-01-22 Thread mi
sorry, i keep forgetting that the array starts at 0:-( mi wrote: t = [[a, b], [aa, bb]] 0.upto (t.length) { |x| puts t[x][0] } For some reason i'm getting the following error at the end of the loop, any idea WHY??? a aa undefined method `[]' for nil:NilClass (NoMethodError) Thanks

[Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???

2007-01-22 Thread mi
t = [[a, b], [aa, bb]] 0.upto (t.length) { |x| puts t[x][0] } For some reason i'm getting the following error at the end of the loop, any idea WHY??? a aa undefined method `[]' for nil:NilClass (NoMethodError) Thanks in advance! ___ Wtr-general

[Wtr-general] Inserting date from a Date picker handled thru javascript

2007-01-22 Thread sarita
There is a read-only text box where date is inserted from a Date picker thru java script. How to automate this? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6231messageID=17524#17524