[Wtr-general] How to click Ok button in javascript pop-up?

2006-09-26 Thread Mayank
How to click Ok button in javascript pop-up? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=4544messageID=12450#12450 ___ Wtr-general mailing list

[Wtr-general] (no subject)

2006-09-26 Thread Michael Ehrich
Hi, i got a page with two frames and i want watir to change the url of one of those frames. I thought ie.frame(frame_name).goto(url) would do so but it doesnt. Anyone an idea or a solution for my problem ? sorry about the qoutes but my mailprogramm is not able to put both qoutes at

[Wtr-general] file_field.set not working

2006-09-26 Thread Zeljko Filipin
I have just installed watir 1.5.1.1100. I have ruby 1.8.4 (2006-04-14) [i386-mswin32].I have file upload field that looks like thisinput type=fileWhen I try to upload file with this (there is file.txt is at C:\)ie.file_field(:index, 1).set('c:\file.txt')command prompt window appears with title

Re: [Wtr-general] How to click Ok button in javascript pop-up?

2006-09-26 Thread Charley Baker
If you look at the FAQ: http://wiki.openqa.org/display/WTR/FAQ, there are two possible solutions mentioned in the 2nd entry: Handling Javascript Pop-up Windows. -Charley On 9/26/06, Mayank [EMAIL PROTECTED] wrote: How to click Ok button in javascript pop-up?

[Wtr-general] New process not working as I expected

2006-09-26 Thread Scott H Snyder
I installed the new gem 1.5.1.1100 and wanted to test creating separate IE processes. I took the googleSearch.rb script and added the require statement for the new capabilities as well as changing the Watir:IE.new line to Watir:IE.new_process, and adding an ie.kill at the end. What happpened was

Re: [Wtr-general] How to manipulate a data in select list by index?

2006-09-26 Thread Charley Baker
If you look above to Mark's post you'll see he's already posted the answer. To select by index in a select list: choices = $ie.select_list(:name,'language').getAllContents $ie.select_list(:name,'language').select(choices[0]) getAllContents returns the contents as an array after which you can

[Wtr-general] Fw: New process not working as I expected

2006-09-26 Thread Scott H Snyder
As a followup to my previous question I closed the browser window before killing the running process and I get this additional information at the command line C:\Documents and Settings\Administrator\My Documents\Watir Project\1.5.1.bonus\examplesruby googleSearch_newprocess.rb Process ID: 7644

[Wtr-general] assert_false

2006-09-26 Thread Adrian Lewis
Hi, As you may know Test::Unit does ! include an assert_false. I got this from the CLR archives. Enter this in assertations.rb public def assert_false(boolean, message=) _wrap_assertion do assert_block(assert should not be called with a block.) { !block_given? }

Re: [Wtr-general] input type=image

2006-09-26 Thread Alan Ark
Hi Luke. What types of things did you try? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luke Sent: Tuesday, September 26, 2006 6:29 AM To: wtr-general Subject: [Wtr-general] input type=image can you help, how can I access to such element? -- No virus

Re: [Wtr-general] input type=image

2006-09-26 Thread Charley Baker
Short answer -- it's a button and has other attributes that you need to use, name, src, id... something: input type=image name=clickme src=clickme.gif $ie.button(:name, 'clickme').click or $ie.button(:src, /clickme/).click It's in the FAQ and the user guide both slightly indirectly, User Guide in

Re: [Wtr-general] Formatting Excel Column Width

2006-09-26 Thread Sun
Sun wrote: So I can open the csv file as an Excel file and make a format change (turn the 2nd column yellow.) But -- I cannot find anywhere, on any forum, or the Ruby online documentation, how to autofit the column to the text. Chris Morris has a link in the RubyGarden page that has

Re: [Wtr-general] Managing the Watir Project -- Wikipedia entry

2006-09-26 Thread Sun
Regarding documentation, please see: http://en.wikipedia.org/wiki/Watir I have updated this by creating an example information section, plus updating the base note, and adding links to External Links and See Also. - Posted via

Re: [Wtr-general] file_field.set not working

2006-09-26 Thread Charley Baker
Zeljko, Go ahead and open up a Jira ticket for this. It looks like filefield_test.rb in the unittests is also failing for me. Thanks, Charley On 9/26/06, Zeljko Filipin [EMAIL PROTECTED] wrote: I have just installed watir 1.5.1.1100. I have ruby 1.8.4 (2006-04-14) [i386-mswin32]. I have

Re: [Wtr-general] Managing the Watir Project -- Wikipedia entry

2006-09-26 Thread Paul Carvalho
Nice! Thanks. =)On 26/09/06, Sun [EMAIL PROTECTED] wrote: Regarding documentation, please see: http://en.wikipedia.org/wiki/WatirI have updated this by creating an example information section, plus updating the base note, and adding links to External Links and See Also.

Re: [Wtr-general] Managing the Watir Project -- Wikipedia entry

2006-09-26 Thread Bret Pettichord
On 9/26/06, Sun [EMAIL PROTECTED] wrote: Regarding documentation, please see: http://en.wikipedia.org/wiki/WatirThank you for taking the time to do this. I do have a comment that i hope you won't take personally. I find code like this to be rather embarrassing:# To handle general popups, use

[Wtr-general] Fwd: Managing the Watir Project -- Wikipedia entry

2006-09-26 Thread Bret Pettichord
((Sorry for the earlier, incomplete post, i accidentally hit the send button, which is located right next to the bottom edge of the window i was pasting into.)) On 9/26/06, Sun [EMAIL PROTECTED] wrote: Regarding documentation, please see: http://en.wikipedia.org/wiki/Watir Thank you for taking

Re: [Wtr-general] Formatting Excel Column Width

2006-09-26 Thread Bret Pettichord
On 9/26/06, Sun [EMAIL PROTECTED] wrote: Do you mean this link here?: http://wiki.rubygarden.org/Ruby/page/show/ScriptingExcelBut in fact it does not provide that information.As for the Excel method, if you did it manually it would be Format/Column/Autofit Selection Yes. This is what i meant: You

Re: [Wtr-general] how to submit javascript clickButton ?

2006-09-26 Thread Bret Pettichord
john wrote: http://www.britishairways.com/travel/home/public/en_gb I have now found that I can get away with using : ie.form(:name, plan_trip).submit ... to submit the form. It works, so that is fine, but perhaps cheating a little :) If it works, it works. You should get the

Re: [Wtr-general] Fwd: Managing the Watir Project -- Wikipedia entry

2006-09-26 Thread Chris McMahon
Thank you for taking the time to do this. I do have a comment that i hope you won't take personally. I find code like this to be rather embarrassing:It's wikipedia, you can edit it. :) ___ Wtr-general mailing list Wtr-general@rubyforge.org