[wtr-general] Re: Manipulate Keystrokes on a MAC

2010-10-08 Thread Ozzi
lol.. Thank you for your reply but I was forced to use a MAC...
apparently it makes workers more happy at being at work... (please
dont ask)

ill take a look at linux... thanks for the giving me another idea to
look at.



On Oct 7, 5:35 pm, Eric Mathiesen mathiese...@gmail.com wrote:
 I have your solution.  DONT BUY A MAC.  Go Linux, it's far superior.

 That being said as Crapple attempts in a lame fashion to follow the *nix
 realm.  Try using some Linux test tools.  Can't guarantee they work on a
 Mac-In-Trash, but here...http://ltp.sourceforge.net/

 Linux Test Project.



 On Thu, Oct 7, 2010 at 9:25 AM, Ethan notet...@gmail.com wrote:
  well, I'd have posted in the original thread if I had a solution. same is
  true for everybody else, I suspect, so spamming the same thing repeatedly
  isn't going to help, regardless of minimally different wording.

  however, generally, sending keystrokes via the operating system is a poor
  solution (in my opinion), and much more error-prone than going through the
  DOM. if it's interacting with a web page that is being problematic, it may
  be just a question of firing the right events in javascript. not knowing
  more about the actual problem, it's not possible to get more specific than
  that, but that is my general, broad advice.

  On Thu, Oct 7, 2010 at 12:02, saqi saqibowl...@gmail.com wrote:

  I have a similar problem and have been checking the site for a
  solution for a few days now and still haven't found anything. I am
  very eager to find a solution to this problem also.

  In fact I appreciate Ozzi's eagerness to find a solution by posting
  the problem in different terms to make it more understandable by more
  users, therefore increasing his (and others) chance to find a
  solution.

  Come on guys, someone must have a solution out there for manipulating
  keystrokes on a MAC?

  Ethan - HELP if you don't want no more new posts lol

  On Oct 7, 4:52 pm, Ethan notet...@gmail.com wrote:
   if you have more to add, add it to the original thread where you asked.

   On Thu, Oct 7, 2010 at 11:50, Ozzi usmanhhuss...@gmail.com wrote:
Am just trying to see if anyone has a solution or if anyone has ever
come across this problem... maybe asking it in a different way will
make people understand the question a bit better?...

After all this is a forum where people help each other out...

On Oct 7, 4:42 pm, Ethan notet...@gmail.com wrote:
 stop sending the same question to the list over and over.

 On Thu, Oct 7, 2010 at 10:05, Ozzi usmanhhuss...@gmail.com wrote:
  Hi Guys,

  If anyone knows how to manipulate keystrokes on a MAC I would be
  really grateful if you can tell me how to do this.
  I need to hit the ENTER and TAB keys on the keyboard.

  I know I can use AutoIT on windows but am totally lost on how to
  do
  this on a MAC.

  Kind regards,
  Usman Hussain

  --
  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
  watir-general%2bunsubscr...@goog legroups.com

--
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

  --
  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

-- 
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] is tis the best thead or advice for drop drag

2010-10-08 Thread Super Kevy
Is this the best thread or advice for drop  drag?
http://groups.google.ca/group/watir-general/browse_thread/thread/d45e56e437bcd9a8


-- 
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] onclick=return confirm..

2010-10-08 Thread Chris Strife
Hello,

I see many articles on dealing with popups and I have tried
implementing the functions given, however the OK button simply is not
getting clicked.

The specific function I am dealing with is the onclick=return
confirm('confirmation text')

-- 
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] superclass mismatch for class UnknownObjectException

2010-10-08 Thread CJ
I need to be able to click OK on a Javascript popup in Firefox on a
Mac with Watir.

It looks like I needed to install watir-webdriver, so I did this:

sudo gem install watir-webdriver

It installed successfully.

Then, I added require 'watir-webdriver' to the top of my script here:

// BEGIN CODE
require 'rubygems'
require 'watir-webdriver'

# the Watir controller
require 'firewatir'

include Watir
// END CODE

Now when I try to run my script, I'm getting this:

/Library/Ruby/Gems/1.8/gems/commonwatir-1.6.6/lib/watir/exceptions.rb:
12: superclass mismatch for class UnknownObjectException (TypeError)
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:182:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:547:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:182:in `require'
from /Library/Ruby/Gems/1.8/gems/firewatir-1.6.6/lib/firewatir/
exceptions.rb:1
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:182:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:547:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:182:in `require'
from /Library/Ruby/Gems/1.8/gems/firewatir-1.6.6/lib/firewatir.rb:7
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
`require'
from ./snimble_login.rb:18

I've tried searching, but I'm not finding the solution.  Can someone
help?

Thank you in advance!

CJ

-- 
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] superclass mismatch for class UnknownObjectException

2010-10-08 Thread Jari Bakken
On Sat, Oct 9, 2010 at 1:13 AM, CJ cjr...@gmail.com wrote:

 // BEGIN CODE
 require 'rubygems'
 require 'watir-webdriver'

 # the Watir controller
 require 'firewatir'


watir-webdriver is an alternative to watir/firewatir - you can not
require both libraries at the same time.

-- 
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