Re: [wtr-general] is tis the best thead or advice for drop drag
On Fri, Oct 8, 2010 at 3:44 PM, Super Kevy kpe...@scholarshipamerica.org wrote: Is this the best thread or advice for drop drag? I also know of these (not used it): http://wiki.openqa.org/display/WTR/Possibilities+For+New+Events+in+Watir http://stackoverflow.com/questions/2806727/testing-drag-and-drop-with-watir Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Manipulate Keystrokes on a MAC
On Thu, Oct 7, 2010 at 6:35 PM, Eric Mathiesen mathiese...@gmail.com wrote: DONT BUY A MAC. As far as I know, a lot of Watir developers use a Mac. (But it looks like nobody has to send keystrokes.) Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Recent Stack Overflow Questions Tagged Watir
http://stackoverflow.com/questions/3894952/how-to-click-a-button-element-in-watir -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Version 1.6.6 doesn't show correct version number
I'm running Watir on Windows XP and just updated to version 1.6.6, after the installation I wanted to check the version by using ruby -e 'require watir; puts Watir::IE::VERSION' The output was: -e:1: warning: toplevel constant VERSION referenced by Watir::IE::VERSION 1.8.6 It shows the Ruby version number instead of Watir version number. Sorry I have been too busy didn't keep checking the posts here, did I do something wrong or the way checking Watir version has been changed? Neil -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Difficulty typing into textfield
Thx. $b.text_field(:name, password).exists? found object, but... When I run: $b.text_field(:name, password).set(pass_word) I get error msg: WIN32OLERuntimeError: focus OLE error code:800A083E in htmlfile Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. HRESULT error code:0x80020009 Exception occurred. C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.6/lib/watir/ input_elements.rb:370:in `method_missing' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.6/lib/watir/ input_elements.rb:370:in `set' IPN_Login.rb:56:in `test_login' Still unable to access object, even though Watir thinks it exists. Further thoughts? On Oct 7, 8:09 am, CJ Romberger c...@wildwoodinteractive.com wrote: I have it working like this: password = 'abc123' b.text_field(:name, mock_password).set password If that doesn't work, you might want to just test to see if watir can even see that element. if b.text_field(:name, mock_password).exists? puts Password field exists else puts Password field missing end On Wed, Oct 6, 2010 at 8:54 PM, Eric Mathiesen mathiese...@gmail.comwrote: Could also try .flash to ensure you are calling the right element from orb. Css has given me some challenges in the past.. also try emwith (;index, #).set On Oct 6, 2010 6:35 PM, blkjk blkjk@gmail.com wrote: I am trying to type text to a Login textfield. And when I use this code to access it: $b.text_field(:name, 'mockPassword').set('abc123') No password actually gets typed into the textfield and used for login. Here is what Firebug caught to identify the textfield: input type=text onfocus=jQuery('#mockPassword').hide();jQuery('#password').show();jQuery(' #password').focus(); value=password name=mockPassword id=mockPassword style=width: 150px; color: rgb(204, 204, 204); class=input Any thoughts on how to make the code type the password into that field? And yes, I wish to make it work on both IE8 FF3.5 in Win7. Thanks for any help on this. -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-generalwatir-general+unsubscribe... -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@goog legroups.com -- CJ Romberger Wildwood Interactivehttp://www.wildwoodinteractive.com/ 512.732.9916 PLEASE NOTE: I only check this email address about once a day! If you're a client, the fastest way to reach me is to login to Basecamp, OR email supp...@wildwoodinteractive.com. If you're NOT a client? Why not become one!? :) -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Difficulty typing into textfield
your onfocus event seems to do some interesting stuff. onfocus=jQuery('#mockPassword').hide();jQuery('#password').show();jQuery('#password').focus(); basically, you're not going to be able to type into the mockPassword field because when you focus it, it hides itself and gives you another field. try something like: $b.text_field(:name, mockPassword).focus $b.text_field(:name, password).set(pass_word) On Mon, Oct 11, 2010 at 14:02, blkjk blkjk@gmail.com wrote: Thx. $b.text_field(:name, password).exists? found object, but... When I run: $b.text_field(:name, password).set(pass_word) I get error msg: WIN32OLERuntimeError: focus OLE error code:800A083E in htmlfile Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. HRESULT error code:0x80020009 Exception occurred. C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.6/lib/watir/ input_elements.rb:370:in `method_missing' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.6/lib/watir/ input_elements.rb:370:in `set' IPN_Login.rb:56:in `test_login' Still unable to access object, even though Watir thinks it exists. Further thoughts? On Oct 7, 8:09 am, CJ Romberger c...@wildwoodinteractive.com wrote: I have it working like this: password = 'abc123' b.text_field(:name, mock_password).set password If that doesn't work, you might want to just test to see if watir can even see that element. if b.text_field(:name, mock_password).exists? puts Password field exists else puts Password field missing end On Wed, Oct 6, 2010 at 8:54 PM, Eric Mathiesen mathiese...@gmail.com wrote: Could also try .flash to ensure you are calling the right element from orb. Css has given me some challenges in the past.. also try emwith (;index, #).set On Oct 6, 2010 6:35 PM, blkjk blkjk@gmail.com wrote: I am trying to type text to a Login textfield. And when I use this code to access it: $b.text_field(:name, 'mockPassword').set('abc123')No password actually gets typed into the textfield and used for login. Here is what Firebug caught to identify the textfield: input type=text onfocus=jQuery('#mockPassword').hide();jQuery('#password').show();jQuery(' #password').focus(); value=password name=mockPassword id=mockPassword style=width: 150px; color: rgb(204, 204, 204); class=input Any thoughts on how to make the code type the password into that field? And yes, I wish to make it work on both IE8 FF3.5 in Win7. Thanks for any help on this. -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com http://groups.google.com/group/watir-generalwatir-general+unsubscribe... -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@goog legroups.com -- CJ Romberger Wildwood Interactivehttp://www.wildwoodinteractive.com/ 512.732.9916 PLEASE NOTE: I only check this email address about once a day! If you're a client, the fastest way to reach me is to login to Basecamp, OR email supp...@wildwoodinteractive.com. If you're NOT a client? Why not become one!? :) -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] How can I incorporate Watir into a web app(.Net MVC)?
Hey all. So right now we are using Selenium IDE/Selenium 2 to test our sites, since they are easily programmable in C#. I'm finding them both to be unreliable and not as functional was Watir. So I'm trying to make a case for us to switch over, the main hurtle is that I need to make sure we can run the ruby scripts from a web based application. I know there is WatiR, but it seems extremely lackluster in comparison to Watin. So I guess the question is, is it possible to run the Watir scripts from a web application(specifically, .Net MVC)? The tester would essentially click the test they want to run, and have it run. I've tried to set up Ironruby to get Watir running on .Net through there, but that doesnt seem to work properly. Any suggestions? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Overridden [] method
Hi all, I want to overridden [] method of class TableRow, so I write some codes like this: class Watir::TableRow alias_method(:old_one, '[]'.to_sym) def [](desc) if desc.class == 'String' index = desc.match(/\d+/)[0] if index old_one(index.to_i) else old_one(1) end else old_one(desc) end end end But it does work, the error is NameError:undefined method [] for class 'Watir::TableRow'. How should I modify it to make it work? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com