[wtr-general] jssh not compatible for firefox3.0.4
is there a jssh compatible for firefox 3.0.4 ? if not what is the latest firefox version that jssh supports. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Find Pop-up text and close function is not working
when i execute the function , popup_text[0] returns nil. Still i am searching for a solution and trying all methods in WinClicker class but not yet received a solution. So please guys give some ways to reach the target. Thanks, Prince3105 On Dec 1, 9:20 am, wesley chen [EMAIL PROTECTED] wrote: In face, you absolutely can search quite great solutions for the problem in the group. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: jssh not compatible for firefox3.0.4
The JSSH module here works with Firefox 3.0.4 http://wiki.seleniumhq.org/display/WTR/FireWatir+Installation#FireWatirInstallation-3%29InstalltheJSSHFirefoxExtension On Mon, Dec 1, 2008 at 12:20 AM, krishna csr [EMAIL PROTECTED] wrote: is there a jssh compatible for firefox 3.0.4 ? if not what is the latest firefox version that jssh supports. -- Nathan Lane Home, http://www.nathandelane.com Blog, http://nathandelane.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Assigning Div content a Text Value
You must have some kind of JavaScript support in your Web Application to do that -- Watir just controls the browser -- it doesn't provide a way to manipulate your web page -- your web page must be all-inclusive of itself, so if you want your DIV to be able to have text added, then your web page must be able to do that without Watir. Nathan On Fri, Nov 28, 2008 at 1:39 AM, Anders [EMAIL PROTECTED] wrote: I need to assign a text value as the content of a Div, very similar to Watir gmail example except, I don't have an iframe, just a Div, here is the gmail example: # a body element. So, save the iframe in a var, then set the innerText # property of the iframe's body element. mail_body_frame = canvas_frame.frame(:index, 1) # TODO: there must be a friendlier way to do this, while still avoiding # hardcoding of any unfriendly identifiers. Does Watir need a body method? mail_body_frame.document.body.setproperty('innerText', mail_body_text) How do I accomplish the last part for a Div? body_div = ie.div(:id, 'EditorBody') body_div.setproperty('innerText', edit_content) -- this of course doesn't work ie.div(:id, 'EditorBody').set(edit_content) -- nor does this. I would appreciate any suggestions, I just got started with watir, what a great tool! -- Nathan Lane Home, http://www.nathandelane.com Blog, http://nathandelane.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Assigning Div content a Text Value
i think you can do this, Id just question why you want to do this. body_div = ie.div(:id, 'EditorBody') body_div.document.innerText='Hellow World!' is whtat I think you need Paul On Mon, Dec 1, 2008 at 7:55 AM, Nathan Lane [EMAIL PROTECTED] wrote: You must have some kind of JavaScript support in your Web Application to do that -- Watir just controls the browser -- it doesn't provide a way to manipulate your web page -- your web page must be all-inclusive of itself, so if you want your DIV to be able to have text added, then your web page must be able to do that without Watir. Nathan On Fri, Nov 28, 2008 at 1:39 AM, Anders [EMAIL PROTECTED] wrote: I need to assign a text value as the content of a Div, very similar to Watir gmail example except, I don't have an iframe, just a Div, here is the gmail example: # a body element. So, save the iframe in a var, then set the innerText # property of the iframe's body element. mail_body_frame = canvas_frame.frame(:index, 1) # TODO: there must be a friendlier way to do this, while still avoiding # hardcoding of any unfriendly identifiers. Does Watir need a body method? mail_body_frame.document.body.setproperty('innerText', mail_body_text) How do I accomplish the last part for a Div? body_div = ie.div(:id, 'EditorBody') body_div.setproperty('innerText', edit_content) -- this of course doesn't work ie.div(:id, 'EditorBody').set(edit_content) -- nor does this. I would appreciate any suggestions, I just got started with watir, what a great tool! -- Nathan Lane Home, http://www.nathandelane.com Blog, http://nathandelane.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] 'no such file to load' when running firewatir unit test
I am using Ruby version 1.8.6 and Firewatir version 1.6.2 in Windows XP. I installed firewatir using 'gem install firewatir', but when I try to run the included unit tests, mozilla_all_tests.rb, I get the following error: c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_re quire': no such file to load -- unittests/setup/lib (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:in `re quire' from C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/ setup.rb:1 5 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:in `ge m_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:in `re quire' from C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/ mozilla_al l_tests.rb:3 I am able to run all the sample tests in Watir 1.6.2 just fine. From what I've read on the message board, this error seems to indicate that firewatir was not installed properly, but I don't see I could've screwed up typing 'gem install firewatir'. I am very new at this, any help would be appreciated. - Jason --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: 'no such file to load' when running firewatir unit test
Jason, The unittests are not designed to be run after gems are installed. all unittests are desing to run in Development mode - you need to check out the source from SVN and run the unittests on trunk This is a known issue, and unittests should probably not be packaged into gems. more here; http://wiki.seleniumhq.org/display/WTR/Running+Unit+Tests+in+Development and in release notes marekj | Semantic Page Objects Automation Watirloo: Browser Page Helper Framework http://www.bitbucket.org/marekj/watirloo/ for IE, Firefox and others? On Mon, Dec 1, 2008 at 10:30 AM, Jason [EMAIL PROTECTED] wrote: I am using Ruby version 1.8.6 and Firewatir version 1.6.2 in Windows XP. I installed firewatir using 'gem install firewatir', but when I try to run the included unit tests, mozilla_all_tests.rb, I get the following error: c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_re quire': no such file to load -- unittests/setup/lib (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:in `re quire' from C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/ setup.rb:1 5 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:in `ge m_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:in `re quire' from C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/ mozilla_al l_tests.rb:3 I am able to run all the sample tests in Watir 1.6.2 just fine. From what I've read on the message board, this error seems to indicate that firewatir was not installed properly, but I don't see I could've screwed up typing 'gem install firewatir'. I am very new at this, any help would be appreciated. - Jason --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: indexes with watir and firewatir
What do you get if you do this in firewatir? row.cell(:index,1) Is this the same as row.cell(:index,0) ? - Original Message From: aidy lewis [EMAIL PROTECTED] To: watir-general@googlegroups.com Sent: Friday, November 28, 2008 4:04:34 AM Subject: [wtr-general] indexes with watir and firewatir Hi, Has anyone experienced index variations in Watir and FireWatir? This in FireWatir row.cell(:index, 0) Will be this in Watir row.cell(:index, 1) We think this is because Watir uses win32ole and FireWatir uses JavaScript. If this is a known and common bug, we will fix it. Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] What do you want to see in Watir?
If you've been following along, by now you know that WatirCraft is a major contributor to the ongoing development of Watir. Many of the fixes and enhancements over the past six months have been a direct result of Bret's 100% dedication to the project, and more recently the involvement of Jim Matthews, both funded by WatirCraft. Going forward, we'd like to hear from as many Watir users as possible about what features or capabilities you'd like to see in Watir in 2009. How can we make Watir easier to use, more productive, or better in any way? What should our priorities be? To that end, we've added another channel for feedback. We hope you will go to the Watir page on Uservoice - http://watir.uservoice.com - register, and start entering your suggestions and voting. Fair warning: we may choose to implement your suggestions in either open-source Watir or in a commercial (not free) add-on from WatirCraft. We hope you'll agree this is fair, because WatirCraft will need some revenue as a company to fund our ability to continue actively supporting open-source Watir development. Seem reasonable? So - what do you need most from Watir that you're not getting right now? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Watir Ruby in Steel
I'm having a look at Ruby in Steel as a potential IDE for doing testing automation with Watir. http://www.sapphiresteel.com/ Mostly because: 1) all my devs use Visual Studio for their work, so it puts me on the same platform, gives me good integration with our source control etc. 2) Intellisense!!! since I'm new to Watir and have not memorized all the applicable methods for each object etc.. and also new to ruby. Well it just makes it a hell of a lot easier. 3) awsome debugger Firstly: Has anyone else looked at this? Does anyone else use it? I could only find one reference here when searching this group. Secondly, I'm having a problem: It appears to get Intellisense working, I have to add the watir code using their 'ruby librarian' utility.. so I pointed it at the various lib directories under c\ruby \lib\ruby\gems\1.8\gems for commonwatir, firewatir, watir and asked it to add all the .rb files found there. In the process it gives me the following error unexpected token - '*' htmlelements.rb Line 1563 column 20 the file appears to be part of Firewatir. Anyone here have an idea why it might be giving me that message? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to click dijit button char
re having words with the developer.. The dev probably has what they feel is a good reason for using the mouseup to select the item from the list.. Except for instances were it affects testability, or performance, I generally try to stay away from telling the devs how to do their job (lest they tell me how to do mine) grin. OTOH if the purpose of the talk is to better understand how the dev thinks, so you can have an easier time coding your automation, well in that case have fun picking his brain and getting him to explain the conventions he's using for making the controls work etc. just make sure s/he understands you are questioning to understand, not questioning their coding skills or methods.. On Dec 1, 10:10 am, maven999 [EMAIL PROTECTED] wrote: Chuck, your guess was correct. The following code worked in that I was able to click the down button and cause the dropdown list to appear: $ie.div(:class, 'dijitDownArrowButtonInner').fire_event('onmousedown') But when I then try to select an item in the dropdown list, 'onmousedown' does not work. But 'onmouseup' DOES work. I think its time to have a few words with the developer :-) Thanks to Chuck and Wesley for their help! On Nov 25, 4:37 pm, Chuck vdL [EMAIL PROTECTED] wrote: OK so we can't see what the functions called by them do, but it does look like there are 4 events getting defined.. have you tried using code to fire one of the events (onmousedown seems the most obvious candidate) to see if that makes the list appear? odds are after the mousedown, you're going to then have to fire some kind of mouseover event for a list item perhaps followed by another mousedown, or mouseup .. but without interacting with the site it's hard to tell (is it designed to click on the list, then click on the item, or as a click- drag-release?) just as a guess I'd expect the meat of the work to be done by mousedown events, while mouseover and others that seem to be calling '_onmouse' are probably just causing it to change colors for the illusion of focus being on the thing under the mouse. So if that's not enough to get you going in the right direction, please post a larger section of the page code (or point us at a similar page that is publically available) as Wesley requested. On Nov 24, 10:35 am, maven999 [EMAIL PROTECTED] wrote: Hi Chuck, Here is the preceding html which I should have included in my original question: tr class=dijitReset td class=dijitReset dijitRight dijitButtonNode dijitDownArrowButton dijitArrowButtonActive width=0% dojoattachevent=onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseen--ter:_onMouse,onmouseleave:_onMouse dojoattachpoint=downArrowNode div class=dijitDownArrowButtonInner wairole=presentation role=presentation div class=dijitDownArrowButtonChar▼/div /div /td /tr Thanks! On Nov 24, 12:44 pm, Chuck vdL [EMAIL PROTECTED] wrote: is there anything in the html that is defining something like an 'onclick' for that thing? all I see in the code above is basically just text..and normal text isn't clickable as far as I know. maybe there's some other object that's actually overlapping that button On Nov 21, 11:30 am, maven999 [EMAIL PROTECTED] wrote: Hi all, I have a drop down menu that can only be accessed by clicking on a down arrow character (▼) on the combo box. The html for the click location is pasted below: div class=dijitDownArrowButtonInner wairole=presentation role=presentation div class=dijitDownArrowButtonChar▼/div /div Flashing the button works: $ie.div(:class, 'dijitDownArrowButtonInner').flash But clicking it does not work: $ie.div(:class, 'dijitDownArrowButtonInner').click Any ideas? Also, since it is not a traditional select_list, how do I select an item when I do get the drop-down list to appear? Thanks!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir Ruby in Steel
heres my guess - the firewatir code uses lots of whats really javascript embedded in the ruby file. I think the parser is having a hard time figuring out whats ruby and whats javascript If you poke around in the lines suggested by the parser, you might be able rearrange some of the code to better help the parser Paul On Mon, Dec 1, 2008 at 11:16 AM, Chuck vdL [EMAIL PROTECTED] wrote: I'm having a look at Ruby in Steel as a potential IDE for doing testing automation with Watir. http://www.sapphiresteel.com/ Mostly because: 1) all my devs use Visual Studio for their work, so it puts me on the same platform, gives me good integration with our source control etc. 2) Intellisense!!! since I'm new to Watir and have not memorized all the applicable methods for each object etc.. and also new to ruby. Well it just makes it a hell of a lot easier. 3) awsome debugger Firstly: Has anyone else looked at this? Does anyone else use it? I could only find one reference here when searching this group. Secondly, I'm having a problem: It appears to get Intellisense working, I have to add the watir code using their 'ruby librarian' utility.. so I pointed it at the various lib directories under c\ruby \lib\ruby\gems\1.8\gems for commonwatir, firewatir, watir and asked it to add all the .rb files found there. In the process it gives me the following error unexpected token - '*' htmlelements.rb Line 1563 column 20 the file appears to be part of Firewatir. Anyone here have an idea why it might be giving me that message? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Excel Ranges and Ruby
All, I am trying to enter the contents of an array into an excel range. Here is a sample of what I am doing now: array = (0,1,2) excel.Range(A1::A3) = array When I do this cells a1, a2, and a3 are all set to 0, and not 0,1,2 as I am expecting. Can someone please assist me with this? I can elaborate if necessary. Thanks in advance. Shelton --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Excel Ranges and Ruby
Try using value at the end Blah = excel.worksheets(4).Range(B2:J2).Value puts Blah On Dec 1, 12:46 pm, [EMAIL PROTECTED] wrote: All, I am trying to enter the contents of an array into an excel range. Here is a sample of what I am doing now: array = (0,1,2) excel.Range(A1::A3) = array When I do this cells a1, a2, and a3 are all set to 0, and not 0,1,2 as I am expecting. Can someone please assist me with this? I can elaborate if necessary. Thanks in advance. Shelton --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir Ruby in Steel
OK so I went and looked.. it's not javascript -=-=- snip-=-= class Radio RadioCheckCommon def initialize *args =-=-=-= snip =-=-=-= its the * in *args that's giving it a fit.. Now understand please that my ruby coding skills are in their infancy.. and I've not gotten into defining my own classes or subclassing or any of that.. so I've no idea (other than it looks something like a C++ pointer, but I know ruby doesn't have pointers) what in the world *args is doing at that point in the code.. Is this valid ruby code and I'm perhaps looking at a bug in ruby in steel?Is this something added really recently to ruby? RiS comes with ruby 186-25 (although I thought I updated this) ruby-v reports 1.8.6 (2007-09-24 patchlevel 111) that should be the correct version for working with Watir 1.6.2 right? On Dec 1, 10:32 am, Paul Rogers [EMAIL PROTECTED] wrote: heres my guess - the firewatir code uses lots of whats really javascript embedded in the ruby file. I think the parser is having a hard time figuring out whats ruby and whats javascript If you poke around in the lines suggested by the parser, you might be able rearrange some of the code to better help the parser Paul On Mon, Dec 1, 2008 at 11:16 AM, Chuck vdL [EMAIL PROTECTED] wrote: I'm having a look at Ruby in Steel as a potential IDE for doing testing automation with Watir. http://www.sapphiresteel.com/ Mostly because: 1) all my devs use Visual Studio for their work, so it puts me on the same platform, gives me good integration with our source control etc. 2) Intellisense!!! since I'm new to Watir and have not memorized all the applicable methods for each object etc.. and also new to ruby. Well it just makes it a hell of a lot easier. 3) awsome debugger Firstly: Has anyone else looked at this? Does anyone else use it? I could only find one reference here when searching this group. Secondly, I'm having a problem: It appears to get Intellisense working, I have to add the watir code using their 'ruby librarian' utility.. so I pointed it at the various lib directories under c\ruby \lib\ruby\gems\1.8\gems for commonwatir, firewatir, watir and asked it to add all the .rb files found there. In the process it gives me the following error unexpected token - '*' htmlelements.rb Line 1563 column 20 the file appears to be part of Firewatir. Anyone here have an idea why it might be giving me that message?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Excel Ranges and Ruby
I have been using value, I accidentally left it out of my message. What I have looks like: array = (1,2,3)excel.Range(A1::A3).Value = array This puts a '1' into cells a1, a2, and a3. I want a1 = 1, a2 = 2, a3 = 3. Thanks in advance for your help. - Shelton Date: Mon, 1 Dec 2008 10:57:57 -0800 Subject: [wtr-general] Re: Excel Ranges and Ruby From: [EMAIL PROTECTED] To: watir-general@googlegroups.comTry using value at the end Blah = excel.worksheets(4).Range(B2:J2).Value puts Blah On Dec 1, 12:46 pm, [EMAIL PROTECTED] wrote: All, I am trying to enter the contents of an array into an excel range. Here is a sample of what I am doing now: array = (0,1,2) excel.Range(A1::A3) = array When I do this cells a1, a2, and a3 are all set to 0, and not 0,1,2 as I am expecting. Can someone please assist me with this? I can elaborate if necessary. Thanks in advance. Shelton _ Windows Live Hotmail now works up to 70% faster. http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_faster_112008 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir Ruby in Steel
Thanks for sharing your report. I looked at Ruby in Steel over a year ago and it sounds like it has made a lot of progress since then. Back then, our developers were using Visual Studio as well. I agree that it is very attractive for this kind of environment. Bret Chuck vdL wrote: I'm having a look at Ruby in Steel as a potential IDE for doing testing automation with Watir. http://www.sapphiresteel.com/ Mostly because: 1) all my devs use Visual Studio for their work, so it puts me on the same platform, gives me good integration with our source control etc. 2) Intellisense!!! since I'm new to Watir and have not memorized all the applicable methods for each object etc.. and also new to ruby. Well it just makes it a hell of a lot easier. 3) awsome debugger Firstly: Has anyone else looked at this? Does anyone else use it? I could only find one reference here when searching this group. Secondly, I'm having a problem: It appears to get Intellisense working, I have to add the watir code using their 'ruby librarian' utility.. so I pointed it at the various lib directories under c\ruby \lib\ruby\gems\1.8\gems for commonwatir, firewatir, watir and asked it to add all the .rb files found there. In the process it gives me the following error unexpected token - '*' htmlelements.rb Line 1563 column 20 the file appears to be part of Firewatir. Anyone here have an idea why it might be giving me that message? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click
This works for me, although I am using ie 6.0. I'm wondering if this is broken with ie 7. Can any one else try this out? Bret patrick wrote: hi, i am using the foll versions: win xp sp2 ruby - 1.8.6 watir - 1.6.2 ie - 7.0 my code is as follows: irb require watir browser = Watir::IE.start('http://www.google.com') browser.text_field(:name, 'q').set('Watir') browser.button(:name, 'btnG').click_no_wait however, the Google Search button is only highlighted. the button is not clicked and the subsequent page is not loaded. I know i can use click in this case, however the Click_no_wait is not working in any code on my pc. pls help. patrick. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Click_no_wait for firewatir
I've added this to the compatiblity issues table. http://wiki.seleniumhq.org/display/WTR/Firewatir+Compatibility aidy lewis wrote: On 28/11/2008, al3kc [EMAIL PROTECTED] wrote: Hi all, Does click_no_wait method exists in firewatir? I didn't found it in firewatir sorce files and it does not work in my tests. I use firewatir - 1.2.1 Try something like this: def click_no_wait(object_name) $jssh_socket.send(browser.contentWindow.setTimeout(function() {document.forms[0].#{object_name}.click()},0);\n, 0) self.read_socket() end Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: indexes with watir and firewatir
I get the following error: c:/ruby-186-26/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_exists': Unable to locate element, using :index, 0 (Watir::Exception::UnknownObjectException) from (eval):2:in `html' from index.rb:6 Is this what you are seeing? aidy lewis wrote: Hi, An example of the problem below ['watir', 'firewatir'].each { | g | require g } ie = Watir::IE.new ff = FireWatir::Firefox.new [ie, ff].each { |b| b.goto(http://www.google.com;) } ff.table(:index, 1).rows[0].html ie.table(:index, 1).rows[0].html Aidy On 28/11/2008, aidy lewis [EMAIL PROTECTED] wrote: Hi, Has anyone experienced index variations in Watir and FireWatir? This in FireWatir row.cell(:index, 0) Will be this in Watir row.cell(:index, 1) We think this is because Watir uses win32ole and FireWatir uses JavaScript. If this is a known and common bug, we will fix it. Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Help required : Ruby code error
Aidy, Could you please create a wiki page with your list of editors. I thought we had a page started, but I can't seem to find it. It would be great to collect people's thoughts on the pros and cons of these editors for watir test development. Bret aidy lewis wrote: Hi Natasha, Below is a list of editors On 27/11/2008, Natasha Ranney [EMAIL PROTECTED] wrote: Hi Aidy/Charley/John, I am using Notepad to write my scripts and at times I use SciTE. Open-Source\Free Software * Netbeans Ruby: http://www.netbeans.org/downloads/index.html * Aptana Radrails: http://www.aptana.com/rails * Vim: http://www.vim.org/download.php#pc * Emacs: http://www.gnu.org/software/emacs/windows/Getting-Emacs.html Proprietary * Ruby in Steel for Visual Studio: http://www.sapphiresteel.com/ * Jetbrains Rubymine: http://www.jetbrains.com/ruby/index.html TEXT EDITORS (with out-of-the-box Ruby Syntax highlighting) Open-Source * Notepad++: http://sourceforge.net/project/showfiles.php?group_id=95717package_id=102072 * Komodo Edit: http://www.activestate.com/store/productdetail.aspx?prdGuid=20f4ed15-6684-4118-a78b-d37ff4058c5f Proprietary * E text editor: http://www.e-texteditor.com/ Not logged in. Log in Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: get text from page (regex) assign to variable
The thing to remember is that puts does an implicit to_s (or inspect, i can't remember exactly) on its argument. Bret Sameh Abdelhamid wrote: Very nice. Thanks Wes. I couldnt find this anywhere! Cheers. On Wed, Nov 26, 2008 at 3:38 PM, wesley chen [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You have to: workspace.text_field(:id,NUM_prcsdProductId).set(*pproduct_no.to_s*) Because the pproduct you created is just a matchdata, not a string, you have to change the format manual. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Was(Re: Watir Podcast) Now(Ruby and .Net)
aidy lewis wrote: However there are many new Watir potential users who might just know it as a Ruby test tool. Right. And now that Ruby is becoming a popular app language, I think people might think the R is Watir refers to the target application. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir Ruby in Steel
OK the putting that in 'brackets' (sorry still think of those as parenthesis, and [] as brackets..) eliminated that error and got me a new one.. (heh isn't this fun) Now the problem is on line 1078 column 39 of firefox.rbanother unexpected token, this time a comma.. So I went and looked, here's the code in that area --=-=-=-=- snip -=-=-=-= # 5/16/08 Derek Berner # Wrapper method to send JS commands concisely, # and propagate errors def js_eval(str) #puts JS Eval: #{str} $jssh_socket.send(#{str};\n,0) value = read_socket() if md=/^(\w+)Error:(.*)$/.match(value) eval class JS#{md[1]}Error\nend raise (eval JS#{md[1]}Error), md[2] end #puts Value: #{value} value end --=-=-=-=-=- snip -=-=-=- The problem is on the 'raise' line, it doesn't like the comma after the closing backet, before md[2] any ideas? do I need to wrap everything after 'raise' in another set of brackets?so it reads like raise ((eval JS#{md[1]}Error), md[2]) ?? (and if these things get stuff working, do I need to raise a jira issue for this so we make sure to make these changes in the watir source? (point me at instructions for this if they exist, so I do it 'right' I'm used to using Jira at work, but in my experience every group has their own standards for how they want bugs filed) On Dec 1, 11:12 am, Paul Rogers [EMAIL PROTECTED] wrote: try changing it to def initialize( *args ) the * means that it takes a variable number of parameters as an niput to the method, I think youd use it like this def my_method( *args ) if args.length ==2 puts arg[0] is + arg[0] else puts you didnt supply 2 args end end my_method( 2,3) # produces arg[0] is 2 my_method( 4,5,6) # produces you didnt supply 2 args Paul On Mon, Dec 1, 2008 at 12:09 PM, Chuck vdL [EMAIL PROTECTED] wrote: OK so I went and looked.. it's not javascript -=-=- snip-=-= class Radio RadioCheckCommon def initialize *args =-=-=-= snip =-=-=-= its the * in *args that's giving it a fit.. Now understand please that my ruby coding skills are in their infancy.. and I've not gotten into defining my own classes or subclassing or any of that.. so I've no idea (other than it looks something like a C++ pointer, but I know ruby doesn't have pointers) what in the world *args is doing at that point in the code.. Is this valid ruby code and I'm perhaps looking at a bug in ruby in steel? Is this something added really recently to ruby? RiS comes with ruby 186-25 (although I thought I updated this) ruby-v reports 1.8.6 (2007-09-24 patchlevel 111) that should be the correct version for working with Watir 1.6.2 right? On Dec 1, 10:32 am, Paul Rogers [EMAIL PROTECTED] wrote: heres my guess - the firewatir code uses lots of whats really javascript embedded in the ruby file. I think the parser is having a hard time figuring out whats ruby and whats javascript If you poke around in the lines suggested by the parser, you might be able rearrange some of the code to better help the parser Paul On Mon, Dec 1, 2008 at 11:16 AM, Chuck vdL [EMAIL PROTECTED] wrote: I'm having a look at Ruby in Steel as a potential IDE for doing testing automation with Watir. http://www.sapphiresteel.com/ Mostly because: 1) all my devs use Visual Studio for their work, so it puts me on the same platform, gives me good integration with our source control etc. 2) Intellisense!!! since I'm new to Watir and have not memorized all the applicable methods for each object etc.. and also new to ruby. Well it just makes it a hell of a lot easier. 3) awsome debugger Firstly: Has anyone else looked at this? Does anyone else use it? I could only find one reference here when searching this group. Secondly, I'm having a problem: It appears to get Intellisense working, I have to add the watir code using their 'ruby librarian' utility.. so I pointed it at the various lib directories under c\ruby \lib\ruby\gems\1.8\gems for commonwatir, firewatir, watir and asked it to add all the .rb files found there. In the process it gives me the following error unexpected token - '*' htmlelements.rb Line 1563 column 20 the file appears to be part of Firewatir. Anyone here have an idea why it might be giving me that message?- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at
[wtr-general] Re: Watir Ruby in Steel
Chuck vdL wrote: (and if these things get stuff working, do I need to raise a jira issue for this so we make sure to make these changes in the watir source? (point me at instructions for this if they exist, so I do it 'right' I'm used to using Jira at work, but in my experience every group has their own standards for how they want bugs filed) Best would be to attach a patch to a Jira ticket. http://wiki.seleniumhq.org/display/WTR/Submitting+Code --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir Ruby in Steel
the ri command ( ri Kernel#raise in this case ) shows -- Kernel#raise raise raise(string) raise(exception [, string [, array]]) fail fail(string) fail(exception [, string [, array]]) With no arguments, raises the exception in +$!+ or raises a +RuntimeError+ if +$!+ is +nil+. With a single +String+ argument, raises a +RuntimeError+ with the string as a message. Otherwise, the first parameter should be the name of an +Exception+ class (or an object that returns an +Exception+ object when sent an +exception+ message). The optional second parameter sets the message associated with the exception, and the third parameter is an array of callback information. Exceptions are caught by the +rescue+ clause of +begin...end+ blocks. raise Failed to create socket raise ArgumentError, No parameters, caller which menas you could do as you describe - add brackets round it all. To submit a patch, open a jira ticket and do a diff of what you have compared to the current svn Im sure how to do that is described on the wiki or in this list Paul On Mon, Dec 1, 2008 at 12:55 PM, Chuck vdL [EMAIL PROTECTED] wrote: OK the putting that in 'brackets' (sorry still think of those as parenthesis, and [] as brackets..) eliminated that error and got me a new one.. (heh isn't this fun) Now the problem is on line 1078 column 39 of firefox.rbanother unexpected token, this time a comma.. So I went and looked, here's the code in that area --=-=-=-=- snip -=-=-=-= # 5/16/08 Derek Berner # Wrapper method to send JS commands concisely, # and propagate errors def js_eval(str) #puts JS Eval: #{str} $jssh_socket.send(#{str};\n,0) value = read_socket() if md=/^(\w+)Error:(.*)$/.match(value) eval class JS#{md[1]}Error\nend raise (eval JS#{md[1]}Error), md[2] end #puts Value: #{value} value end --=-=-=-=-=- snip -=-=-=- The problem is on the 'raise' line, it doesn't like the comma after the closing backet, before md[2] any ideas? do I need to wrap everything after 'raise' in another set of brackets?so it reads like raise ((eval JS#{md[1]}Error), md[2]) ?? (and if these things get stuff working, do I need to raise a jira issue for this so we make sure to make these changes in the watir source? (point me at instructions for this if they exist, so I do it 'right' I'm used to using Jira at work, but in my experience every group has their own standards for how they want bugs filed) On Dec 1, 11:12 am, Paul Rogers [EMAIL PROTECTED] wrote: try changing it to def initialize( *args ) the * means that it takes a variable number of parameters as an niput to the method, I think youd use it like this def my_method( *args ) if args.length ==2 puts arg[0] is + arg[0] else puts you didnt supply 2 args end end my_method( 2,3) # produces arg[0] is 2 my_method( 4,5,6) # produces you didnt supply 2 args Paul On Mon, Dec 1, 2008 at 12:09 PM, Chuck vdL [EMAIL PROTECTED] wrote: OK so I went and looked.. it's not javascript -=-=- snip-=-= class Radio RadioCheckCommon def initialize *args =-=-=-= snip =-=-=-= its the * in *args that's giving it a fit.. Now understand please that my ruby coding skills are in their infancy.. and I've not gotten into defining my own classes or subclassing or any of that.. so I've no idea (other than it looks something like a C++ pointer, but I know ruby doesn't have pointers) what in the world *args is doing at that point in the code.. Is this valid ruby code and I'm perhaps looking at a bug in ruby in steel?Is this something added really recently to ruby? RiS comes with ruby 186-25 (although I thought I updated this) ruby-v reports 1.8.6 (2007-09-24 patchlevel 111) that should be the correct version for working with Watir 1.6.2 right? On Dec 1, 10:32 am, Paul Rogers [EMAIL PROTECTED] wrote: heres my guess - the firewatir code uses lots of whats really javascript embedded in the ruby file. I think the parser is having a hard time figuring out whats ruby and whats javascript If you poke around in the lines suggested by the parser, you might be able rearrange some of the code to better help the parser Paul On Mon, Dec 1, 2008 at 11:16 AM, Chuck vdL [EMAIL PROTECTED] wrote: I'm having a look at Ruby in Steel as a potential IDE for doing testing automation with Watir. http://www.sapphiresteel.com/ Mostly because: 1) all my devs use Visual Studio for their work, so it puts me on the same platform, gives me good integration with our source control etc. 2) Intellisense!!! since I'm new to Watir and have not memorized all the
[wtr-general] Re: Watir Ruby in Steel
Please do note that all of the examples you've found so far represent correct Ruby code. In many cases with Ruby, parentheses are optional. It might be best if you reported your findings to the Ruby in Steel people so that they can fix their parser. Bret Bret Pettichord wrote: Chuck vdL wrote: (and if these things get stuff working, do I need to raise a jira issue for this so we make sure to make these changes in the watir source? (point me at instructions for this if they exist, so I do it 'right' I'm used to using Jira at work, but in my experience every group has their own standards for how they want bugs filed) Best would be to attach a patch to a Jira ticket. http://wiki.seleniumhq.org/display/WTR/Submitting+Code --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Excel Ranges and Ruby
I just tried your code on my machine, and I am still getting a 1 in all three cells. - Shelton Date: Mon, 1 Dec 2008 11:27:28 -0800 Subject: [wtr-general] Re: Excel Ranges and Ruby From: [EMAIL PROTECTED] To: watir-general@googlegroups.com I got this to work. excel = WIN32OLE.connect('excel.Application') array = ('1,2,3').split(',') excel.Range(B207:D207).Value = arrayOn Dec 1, 1:11 pm, Jason Shelton [EMAIL PROTECTED] wrote: I have been using value, I accidentally left it out of my message. What I have looks like: array = (1,2,3)excel.Range(A1::A3).Value = array This puts a '1' into cells a1, a2, and a3. I want a1 = 1, a2 = 2, a3 = 3. Thanks in advance for your help. - Shelton Date: Mon, 1 Dec 2008 10:57:57 -0800 Subject: [wtr-general] Re: Excel Ranges and Ruby From: [EMAIL PROTECTED] To: watir-general@googlegroups.comTry using value at the end Blah = excel.worksheets(4).Range(B2:J2).Value puts Blah On Dec 1, 12:46 pm, [EMAIL PROTECTED] wrote: All, I am trying to enter the contents of an array into an excel range. Here is a sample of what I am doing now: array = (0,1,2) excel.Range(A1::A3) = array When I do this cells a1, a2, and a3 are all set to 0, and not 0,1,2 as I am expecting. Can someone please assist me with this? I can elaborate if necessary. Thanks in advance. Shelton _ Windows Live Hotmail now works up to 70% faster.http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_... _ Windows Live Hotmail now works up to 70% faster. http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_faster_112008 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Excel Ranges and Ruby
Did you change the cell range. I was testing it on a spreadsheet where the range a1 - a3 was populated. DD From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason Shelton Sent: Monday, December 01, 2008 2:36 PM To: watir-general@googlegroups.com Subject: [wtr-general] Re: Excel Ranges and Ruby I just tried your code on my machine, and I am still getting a 1 in all three cells. - Shelton Date: Mon, 1 Dec 2008 11:27:28 -0800 Subject: [wtr-general] Re: Excel Ranges and Ruby From: [EMAIL PROTECTED] To: watir-general@googlegroups.com I got this to work. excel = WIN32OLE.connect('excel.Application') array = ('1,2,3').split(',') excel.Range(B207:D207).Value = array On Dec 1, 1:11 pm, Jason Shelton [EMAIL PROTECTED] wrote: I have been using value, I accidentally left it out of my message. What I have looks like: array = (1,2,3)excel.Range(A1::A3).Value = array This puts a '1' into cells a1, a2, and a3. I want a1 = 1, a2 = 2, a3 = 3. Thanks in advance for your help. - Shelton Date: Mon, 1 Dec 2008 10:57:57 -0800 Subject: [wtr-general] Re: Excel Ranges and Ruby From: [EMAIL PROTECTED] To: watir-general@googlegroups.com Try using value at the end Blah = excel.worksheets(4).Range(B2:J2).Value puts Blah On Dec 1, 12:46 pm, [EMAIL PROTECTED] wrote: All, I am trying to enter the contents of an array into an excel range. Here is a sample of what I am doing now: array = (0,1,2) excel.Range(A1::A3) = array When I do this cells a1, a2, and a3 are all set to 0, and not 0,1,2 as I am expecting. Can someone please assist me with this? I can elaborate if necessary. Thanks in advance. Shelton _ Windows Live Hotmail now works up to 70% faster.http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_ acq_... /html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Excel Ranges and Ruby
No, I am using the same cell range. a1 - a3 is being populated on my machine, but it is populating each cell with element 0 in my array, not element 0, 1, and 2. -Shelton Subject: [wtr-general] Re: Excel Ranges and RubyDate: Mon, 1 Dec 2008 14:41:20 -0600From: [EMAIL PROTECTED]: watir-general@googlegroups.com Did you change the cell range. I was testing it on a spreadsheet where the range a1 – a3 was populated. DD From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason SheltonSent: Monday, December 01, 2008 2:36 PMTo: [EMAIL PROTECTED]: [wtr-general] Re: Excel Ranges and Ruby I just tried your code on my machine, and I am still getting a 1 in all three cells. - Shelton Date: Mon, 1 Dec 2008 11:27:28 -0800 Subject: [wtr-general] Re: Excel Ranges and Ruby From: [EMAIL PROTECTED] To: watir-general@googlegroups.com I got this to work. excel = WIN32OLE.connect('excel.Application') array = ('1,2,3').split(',') excel.Range(B207:D207).Value = arrayOn Dec 1, 1:11 pm, Jason Shelton [EMAIL PROTECTED] wrote: I have been using value, I accidentally left it out of my message. What I have looks like: array = (1,2,3)excel.Range(A1::A3).Value = array This puts a '1' into cells a1, a2, and a3. I want a1 = 1, a2 = 2, a3 = 3. Thanks in advance for your help. - Shelton Date: Mon, 1 Dec 2008 10:57:57 -0800 Subject: [wtr-general] Re: Excel Ranges and Ruby From: [EMAIL PROTECTED] To: watir-general@googlegroups.comTry using value at the end Blah = excel.worksheets(4).Range(B2:J2).Value puts Blah On Dec 1, 12:46 pm, [EMAIL PROTECTED] wrote: All, I am trying to enter the contents of an array into an excel range. Here is a sample of what I am doing now: array = (0,1,2) excel.Range(A1::A3) = array When I do this cells a1, a2, and a3 are all set to 0, and not 0,1,2 as I am expecting. Can someone please assist me with this? I can elaborate if necessary. Thanks in advance. Shelton _ Windows Live Hotmail now works up to 70% faster.http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_... /html_ Proud to be a PC? Show the world. Download the “I’m a PC” Messenger themepack now. hthttp://clk.atdmt.com/MRT/go/119642558/direct/01/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir Ruby in Steel
Brett, ACK I'm still at babysteps level of ruby coding and you're trying to turn me into a contributor aren't you ;) ok ok I'll read up on patches and such and see if I can manage to submit something for this that doesn't totally screw up everything... this is how it starts isn't it. how you rope people into working on open source stuff.. heh just wait.. I told Maura that there's docs here in need of work, and since she's trying to move into doing more technical editing and such.. I just might be able to convince her to do a few re-writes of things like the tutorial and such, to ah you know, help her build up a portfolio of work muh hah hah evil laugh and all that Paul, thanks loads. Where are you finding the documentation like that? I was looking in the ruby user's guide and the most I could find so far in raise said that it took a single string parameter.. so I was scratching my head wondering how that code even worked at all. heh OK next error.. Unexpected token - number = form.rb line 135, column 15 def flash number = 10 I'm starting to sense a pattern here... their parser doesn't seem to be very good with the places that parenthesis are implied or optional So re wrote it as : def flash( number = 10 )#is that the style you folks like in terms of where parethesis and spaces are place?) and that got me past that one and into element.rb, line 238 column 15 with exact same error.. (same code, same fix) Next comes ie-class.rb line 86 column 20 def initialize suppress_new_window=nil re-wrote as def initialize( suppress_new_window=nil ) then ie.class.rb line 98 column 20 def self.start url=nil re-wrote as def self.start( url=nil ) (bite me twice in same file, I start looking for more.. I find and change Line 104: def self.start_window url=nil into: def self.start_window( url=nil ) Line 129: def self.start_process url=nil into: def self.start_process url=nil and WOOT 'library generation complete' but... grumble intellisense is not working the way I'd expect.. ok I'm off to the sapphiresteel forums to ask them about this... Thanks for the help folks. On Dec 1, 11:59 am, Paul Rogers [EMAIL PROTECTED] wrote: the ri command ( ri Kernel#raise in this case ) shows -- Kernel#raise raise raise(string) raise(exception [, string [, array]]) fail fail(string) fail(exception [, string [, array]]) With no arguments, raises the exception in +$!+ or raises a +RuntimeError+ if +$!+ is +nil+. With a single +String+ argument, raises a +RuntimeError+ with the string as a message. Otherwise, the first parameter should be the name of an +Exception+ class (or an object that returns an +Exception+ object when sent an +exception+ message). The optional second parameter sets the message associated with the exception, and the third parameter is an array of callback information. Exceptions are caught by the +rescue+ clause of +begin...end+ blocks. raise Failed to create socket raise ArgumentError, No parameters, caller which menas you could do as you describe - add brackets round it all. To submit a patch, open a jira ticket and do a diff of what you have compared to the current svn Im sure how to do that is described on the wiki or in this list Paul On Mon, Dec 1, 2008 at 12:55 PM, Chuck vdL [EMAIL PROTECTED] wrote: OK the putting that in 'brackets' (sorry still think of those as parenthesis, and [] as brackets..) eliminated that error and got me a new one.. (heh isn't this fun) Now the problem is on line 1078 column 39 of firefox.rb another unexpected token, this time a comma.. So I went and looked, here's the code in that area --=-=-=-=- snip -=-=-=-= # 5/16/08 Derek Berner # Wrapper method to send JS commands concisely, # and propagate errors def js_eval(str) #puts JS Eval: #{str} $jssh_socket.send(#{str};\n,0) value = read_socket() if md=/^(\w+)Error:(.*)$/.match(value) eval class JS#{md[1]}Error\nend raise (eval JS#{md[1]}Error), md[2] end #puts Value: #{value} value end --=-=-=-=-=- snip -=-=-=- The problem is on the 'raise' line, it doesn't like the comma after the closing backet, before md[2] any ideas? do I need to wrap everything after 'raise' in another set of brackets? so it reads like raise ((eval JS#{md[1]}Error), md[2]) ?? (and if these things get stuff working, do I need to raise a jira issue for this so we make sure to make these changes in the watir source? (point me at instructions for this if they exist, so I do it 'right' I'm used to using Jira at work, but in my experience every group has their own standards for how
[wtr-general] Re: Watir Ruby in Steel
On Dec 1, 12:14 pm, Bret Pettichord [EMAIL PROTECTED] wrote: Please do note that all of the examples you've found so far represent correct Ruby code. In many cases with Ruby, parentheses are optional. It might be best if you reported your findings to the Ruby in Steel people so that they can fix their parser. ++ headed over there right now, to do just that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Excel Ranges and Ruby
I just copied and pasted that code, and I am getting 1,1,1 still!!! I don't know how you can be getting 1,2,3 in your file, and I am getting 1,1,1. Any ideas? Thanks in advance. -Shelton Subject: [wtr-general] Re: Excel Ranges and RubyDate: Mon, 1 Dec 2008 14:49:06 -0600From: [EMAIL PROTECTED]: watir-general@googlegroups.com Copy and paste this. I’ve tested it again and it worked. excel = WIN32OLE.connect('excel.Application') array = ('1,2,3').split(',') excel.Range(A1:A3).Value = array From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason SheltonSent: Monday, December 01, 2008 2:46 PMTo: [EMAIL PROTECTED]: [wtr-general] Re: Excel Ranges and Ruby No, I am using the same cell range. a1 - a3 is being populated on my machine, but it is populating each cell with element 0 in my array, not element 0, 1, and 2. -Shelton Subject: [wtr-general] Re: Excel Ranges and RubyDate: Mon, 1 Dec 2008 14:41:20 -0600From: [EMAIL PROTECTED]: watir-general@googlegroups.com Did you change the cell range. I was testing it on a spreadsheet where the range a1 – a3 was populated. DD From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason SheltonSent: Monday, December 01, 2008 2:36 PMTo: [EMAIL PROTECTED]: [wtr-general] Re: Excel Ranges and Ruby I just tried your code on my machine, and I am still getting a 1 in all three cells. - Shelton Date: Mon, 1 Dec 2008 11:27:28 -0800 Subject: [wtr-general] Re: Excel Ranges and Ruby From: [EMAIL PROTECTED] To: watir-general@googlegroups.com I got this to work. excel = WIN32OLE.connect('excel.Application') array = ('1,2,3').split(',') excel.Range(B207:D207).Value = arrayOn Dec 1, 1:11 pm, Jason Shelton [EMAIL PROTECTED] wrote: I have been using value, I accidentally left it out of my message. What I have looks like: array = (1,2,3)excel.Range(A1::A3).Value = array This puts a '1' into cells a1, a2, and a3. I want a1 = 1, a2 = 2, a3 = 3. Thanks in advance for your help. - Shelton Date: Mon, 1 Dec 2008 10:57:57 -0800 Subject: [wtr-general] Re: Excel Ranges and Ruby From: [EMAIL PROTECTED] To: watir-general@googlegroups.comTry using value at the end Blah = excel.worksheets(4).Range(B2:J2).Value puts Blah On Dec 1, 12:46 pm, [EMAIL PROTECTED] wrote: All, I am trying to enter the contents of an array into an excel range. Here is a sample of what I am doing now: array = (0,1,2) excel.Range(A1::A3) = array When I do this cells a1, a2, and a3 are all set to 0, and not 0,1,2 as I am expecting. Can someone please assist me with this? I can elaborate if necessary. Thanks in advance. Shelton _ Windows Live Hotmail now works up to 70% faster.http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_... /html /html_ Color coding for safety: Windows Live Hotmail alerts you to suspicious email. http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir Ruby in Steel
My preferred ruby style is (1) not to include parentheses when they are optional, and (2) not to pad them with extra spaces when they are used. Bret Chuck vdL wrote: Brett, ACK I'm still at babysteps level of ruby coding and you're trying to turn me into a contributor aren't you ;) ok ok I'll read up on patches and such and see if I can manage to submit something for this that doesn't totally screw up everything... this is how it starts isn't it. how you rope people into working on open source stuff.. heh just wait.. I told Maura that there's docs here in need of work, and since she's trying to move into doing more technical editing and such.. I just might be able to convince her to do a few re-writes of things like the tutorial and such, to ah you know, help her build up a portfolio of work muh hah hah evil laugh and all that Paul, thanks loads. Where are you finding the documentation like that? I was looking in the ruby user's guide and the most I could find so far in raise said that it took a single string parameter.. so I was scratching my head wondering how that code even worked at all. heh OK next error.. Unexpected token - number = form.rb line 135, column 15 def flash number = 10 I'm starting to sense a pattern here... their parser doesn't seem to be very good with the places that parenthesis are implied or optional So re wrote it as : def flash( number = 10 )#is that the style you folks like in terms of where parethesis and spaces are place?) and that got me past that one and into element.rb, line 238 column 15 with exact same error.. (same code, same fix) Next comes ie-class.rb line 86 column 20 def initialize suppress_new_window=nil re-wrote as def initialize( suppress_new_window=nil ) then ie.class.rb line 98 column 20 def self.start url=nil re-wrote as def self.start( url=nil ) (bite me twice in same file, I start looking for more.. I find and change Line 104: def self.start_window url=nil into: def self.start_window( url=nil ) Line 129: def self.start_process url=nil into: def self.start_process url=nil and WOOT 'library generation complete' but... grumble intellisense is not working the way I'd expect.. ok I'm off to the sapphiresteel forums to ask them about this... Thanks for the help folks. On Dec 1, 11:59 am, Paul Rogers [EMAIL PROTECTED] wrote: the ri command ( ri Kernel#raise in this case ) shows -- Kernel#raise raise raise(string) raise(exception [, string [, array]]) fail fail(string) fail(exception [, string [, array]]) With no arguments, raises the exception in +$!+ or raises a +RuntimeError+ if +$!+ is +nil+. With a single +String+ argument, raises a +RuntimeError+ with the string as a message. Otherwise, the first parameter should be the name of an +Exception+ class (or an object that returns an +Exception+ object when sent an +exception+ message). The optional second parameter sets the message associated with the exception, and the third parameter is an array of callback information. Exceptions are caught by the +rescue+ clause of +begin...end+ blocks. raise Failed to create socket raise ArgumentError, No parameters, caller which menas you could do as you describe - add brackets round it all. To submit a patch, open a jira ticket and do a diff of what you have compared to the current svn Im sure how to do that is described on the wiki or in this list Paul On Mon, Dec 1, 2008 at 12:55 PM, Chuck vdL [EMAIL PROTECTED] wrote: OK the putting that in 'brackets' (sorry still think of those as parenthesis, and [] as brackets..) eliminated that error and got me a new one.. (heh isn't this fun) Now the problem is on line 1078 column 39 of firefox.rbanother unexpected token, this time a comma.. So I went and looked, here's the code in that area --=-=-=-=- snip -=-=-=-= # 5/16/08 Derek Berner # Wrapper method to send JS commands concisely, # and propagate errors def js_eval(str) #puts JS Eval: #{str} $jssh_socket.send(#{str};\n,0) value = read_socket() if md=/^(\w+)Error:(.*)$/.match(value) eval class JS#{md[1]}Error\nend raise (eval JS#{md[1]}Error), md[2] end #puts Value: #{value} value end --=-=-=-=-=- snip -=-=-=- The problem is on the 'raise' line, it doesn't like the comma after the closing backet, before md[2] any ideas? do I need to wrap everything after 'raise' in another set of brackets?so it reads like raise ((eval JS#{md[1]}Error), md[2]) ?? (and if these things get stuff working, do I need to raise a jira issue
[wtr-general] Unable to find the value blah... within a listbox. Value is retrieved from excel cell
For some reason when I attempt to find a value in a listbox that contains three dots it doesn't find the value. Has anyone else seen this? Thanks, Darin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir Ruby in Steel
OK posted a message in the forums over at SapphireSteel regarding my experience so far. here's a link http://sapphiresteel.com/forum/index.php?topic=303.0 for any that are interested to follow along. All in all I think if it will work, RubyInSteel could be a kick-ass IDE for working with Ruby and Watir both. I'm rather hoping that it's something simple I've not done right and not a bug, but we will have to see how the Sapphire people respond. On Dec 1, 12:58 pm, Chuck vdL [EMAIL PROTECTED] wrote: On Dec 1, 12:14 pm, Bret Pettichord [EMAIL PROTECTED] wrote: Please do note that all of the examples you've found so far represent correct Ruby code. In many cases with Ruby, parentheses are optional. It might be best if you reported your findings to the Ruby in Steel people so that they can fix their parser. ++ headed over there right now, to do just that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Unable to find the value blah... within a listbox. Value is retrieved from excel cell
Is 'Blah the actual value defined in the HTML for that listbox item, or is perhaps the browser UI visually truncating something longer down to what will fit in available space for the way the listbox is defined? On Dec 1, 1:11 pm, Moochie [EMAIL PROTECTED] wrote: For some reason when I attempt to find a value in a listbox that contains three dots it doesn't find the value. Has anyone else seen this? Thanks, Darin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Unable to find the value blah... within a listbox. Value is retrieved from excel cell
The actuall value is Filter by Coach... The ... That follow the work coach are displaying as á. I believe in excel that ... Means á Not sure though. -Original Message- From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chuck vdL Sent: Monday, December 01, 2008 4:18 PM To: Watir General Subject: [wtr-general] Re: Unable to find the value blah... within a listbox. Value is retrieved from excel cell Is 'Blah the actual value defined in the HTML for that listbox item, or is perhaps the browser UI visually truncating something longer down to what will fit in available space for the way the listbox is defined? On Dec 1, 1:11 pm, Moochie [EMAIL PROTECTED] wrote: For some reason when I attempt to find a value in a listbox that contains three dots it doesn't find the value. Has anyone else seen this? Thanks, Darin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Unable to find the value blah... within a listbox. Value is retrieved from excel cell
The value in the listbox is displayed as Filter by Coach... selected=selected Filter by Coach.../option The problem seems to be when I read the value from a excel cell it contains á. -Original Message- From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chuck vdL Sent: Monday, December 01, 2008 4:27 PM To: Watir General Subject: [wtr-general] Re: Unable to find the value blah... within a listbox. Value is retrieved from excel cell Can you show us the HTML that defines the listbox and its items? On Dec 1, 2:24 pm, Darin Duphorn [EMAIL PROTECTED] wrote: The actuall value is Filter by Coach... The ... That follow the work coach are displaying as á. I believe in excel that ... Means á Not sure though. -Original Message- From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chuck vdL Sent: Monday, December 01, 2008 4:18 PM To: Watir General Subject: [wtr-general] Re: Unable to find the value blah... within a listbox. Value is retrieved from excel cell Is 'Blah the actual value defined in the HTML for that listbox item, or is perhaps the browser UI visually truncating something longer down to what will fit in available space for the way the listbox is defined? On Dec 1, 1:11 pm, Moochie [EMAIL PROTECTED] wrote: For some reason when I attempt to find a value in a listbox that contains three dots it doesn't find the value. Has anyone else seen this? Thanks, Darin- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Connect to postgresql and write query to csv
Hi all, I'm trying to connect to a postgresql db through Watir, execute a query and output the result of the query to a .csv file. I can connect, query and print (puts) to screen correctly, but am unable to put the output to the .csv file. require 'watir' require 'postgres' conn=PGconn.connect(172.xx.xx.xx, 5432, , , db_name, root, ) res = conn.exec('select * from table_stats') out = File.new('C:\ruby\test\data.csv', 'w') res.each do |row| row.each do |column| print column end out.puts end __ Following is the code I use to just print on screen: res = conn.exec(select * from table_stats) res.each do |row| row.each do |column| print column (20-column.length).times{print } end puts end __ Alternatively, I tried to use fetch() method, but I get an error saying it is an undefined method. Any suggestions? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Help required : Ruby code error
Natasha - Not sure if you solved this yet or not but you need to move the include Login statement inside the SB class in testbug.rb. The below worked for me. I had to change Watir::Browser to Watir::IE since I don't have 1.6 installed yet. The below code gets me as far as clicking the login button. Alan testbug.rb * require 'watir' # the controller require 'test/unit' require 'Login' #~ Watir.options_file = 'C:/natasha/RubyScripts/FinalAutomatedTests/options.yml' $ie = Watir::IE.new class SB Test::Unit::TestCase include Login def test_a_orderPlacement test_site = www.moo.com user = $ARGV[0] pwd = $ARGV[1] $ie.goto(test_site) $ie.link(:text,Manage your orders).click assert($ie.text_field(:id,txtLogin).exists?) signin('test','test') end end *** Login.rb *** #~ require 'watir' # the controller #~ require 'test/unit' module Login def signin(user,password) begin # assert assert($ie.text_field(:id,txtLogin).exists?) assert($ie.text_field(:id,txtPassword).exists?) assert($ie.button(:index,1).exists?) puts 'Login:: signin - Assertion passed' rescue StandardError = ex print \n\nLogin:: signin = + ex + \n\n raise $ie.close end # execute $ie.text_field(:id,txtLogin).set(user) $ie.text_field(:id,txtPassword).set(password) $ie.button(:index,1).click puts 'Login:: signin - login successful on Sign In Page' sleep 10 end def signout # assert assert($ie.link(:title,Sign out of MOO).exists?) puts 'Login:: signout - Assertion passed' # execute $ie.link(:title,Sign out of MOO).click puts 'Login:: signout - Logout link clicked' end end * On Thu, Nov 27, 2008 at 10:45 AM, Natasha Ranney [EMAIL PROTECTED]wrote: Hi Aidy, Thanks for sharing the list of editors. I have just installed NetBeans and it looks good. Also I had posted one more query in my last email. Please could you help me with that, whenever you get a chance. Regards, Natasha *aidy lewis [EMAIL PROTECTED]* wrote: Hi Natasha, Below is a list of editors On 27/11/2008, Natasha Ranney wrote: Hi Aidy/Charley/John, I am using Notepad to write my scripts and at times I use SciTE. Open-Source\Free Software * Netbeans Ruby: http://www.netbeans.org/downloads/index.html * Aptana Radrails: http://www.aptana.com/rails * Vim: http://www.vim.org/download.php#pc * Emacs: http://www.gnu.org/software/emacs/windows/Getting-Emacs.html Proprietary * Ruby in Steel for Visual Studio: http://www.sapphiresteel.com/ * Jetbrains Rubymine: http://www.jetbrains.com/ruby/index.html TEXT EDITORS (with out-of-the-box Ruby Syntax highlighting) Open-Source * Notepad++: http://sourceforge.net/project/showfiles.php?group_id=95717package_id=102072 * Komodo Edit: http://www.activestate.com/store/productdetail.aspx?prdGuid=20f4ed15-6684-4118-a78b-d37ff4058c5f Proprietary * E text editor: http://www.e-texteditor.com/ Not logged in. Log in Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Security Information pop-up turns up two times, how to deal with the input between the two pop-up turning up?
Hi Wesley, Maybe the wait method has already finished loading ... and doesnt wait anymore .. You could clarify this by putting a puts statement before text_field. Also you could handle this 'Security Information' outside your code, so that it runs in parallel with your testcode. -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Unable to find the value blah... within a listbox. Value is retrieved from excel cell
This is because in Excel you likely have the ellipsis character (...) as a single character not three separate period chracters (.). Ruby (and therefor Watir) doesn't support character sets / unicode as one might expect. Therefore you receive the á character instead. Try pasting the value into Excel from a plain text editor - notepad for example. On 1 Dec 2008, at 22:29, Darin Duphorn [EMAIL PROTECTED] wrote: The value in the listbox is displayed as Filter by Coach... selected=selected Filter by Coach.../option The problem seems to be when I read the value from a excel cell it contains á. -Original Message- From: watir-general@googlegroups.com [mailto:watir-general@googlegroups.com ] On Behalf Of Chuck vdL Sent: Monday, December 01, 2008 4:27 PM To: Watir General Subject: [wtr-general] Re: Unable to find the value blah... within a listbox. Value is retrieved from excel cell Can you show us the HTML that defines the listbox and its items? On Dec 1, 2:24 pm, Darin Duphorn [EMAIL PROTECTED] wrote: The actuall value is Filter by Coach... The ... That follow the work coach are displaying as á. I believe in excel that ... Means á Not sure though. -Original Message- From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chuck vdL Sent: Monday, December 01, 2008 4:18 PM To: Watir General Subject: [wtr-general] Re: Unable to find the value blah... within a listbox. Value is retrieved from excel cell Is 'Blah the actual value defined in the HTML for that listbox item, or is perhaps the browser UI visually truncating something longer down to what will fit in available space for the way the listbox is defined? On Dec 1, 1:11 pm, Moochie [EMAIL PROTECTED] wrote: For some reason when I attempt to find a value in a listbox that contains three dots it doesn't find the value. Has anyone else seen this? Thanks, Darin- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] How to handle Security Alert or Certificate Exception popup
Hi et all, Have noticed a lot of questions on how to handle the security alert window (Certificate expired window in IE), and thought would share the below- Have added an attachment- CertificateCloser.zip The below files are present- CertificateCheck.exe CertificateCheck.au3 Popup.lst CertificateCheck.exe is the compiled autoit script. It takes the Popup.lst file from the current directory or takes an argument(path to the popup.lst file). CertificateCheck.au3 The code for review or modification. Popup.lst contains the below (make sure you end with an empty line) Security Alert,1 The first entry is the Window title, button_id Hence you can add more window titles and button_ids to close. Also each time the popup.lst is updated, the script need not be closed, it picks up the latest window data from the file. -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---