[wtr-general] Re: Firefox not created when sample script is ran in Aptana Studio 3.0 and Ruby 1.9.2

2012-05-02 Thread Joe DiMauro
I can tell you that the code works with Aptana Studio 2 using Ruby
1.8.7
and these gems:

selenium-webdriver (2.17.0)
watir-webdriver (0.4.1)
win32-api (1.4.8 x86-mingw32)
windows-api (0.4.0)

but am not configured to try the Ruby and Aptana versions you used,
sorry.


On May 1, 5:58 pm, chaitanya vengeance...@gmail.com wrote:
 I am trying to run the following sample script in Aptana Studio 3,

 require 'watir-webdriver'

 b = Watir::Browser.new :firefox
 b.goto(http://www.google.com;)

 but it produces the error

 c:/Ruby192/lib/ruby/1.9.1/win32/registry.rb:172:in `find': unknown encoding
 name - CP0 (ArgumentError)
 from c:/Ruby192/lib/ruby/1.9.1/win32/registry.rb:172:in `initialize'
 from c:/Ruby192/lib/ruby/1.9.1/win32/registry.rb:231:in `exception'
 from c:/Ruby192/lib/ruby/1.9.1/win32/registry.rb:231:in `raise'
 from c:/Ruby192/lib/ruby/1.9.1/win32/registry.rb:231:in `check'
 from c:/Ruby192/lib/ruby/1.9.1/win32/registry.rb:277:in `EnumKey'
 from c:/Ruby192/lib/ruby/1.9.1/win32/registry.rb:551:in `each_key'
 from c:/Ruby192/lib/ruby/1.9.1/win32/registry.rb:566:in `keys'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/binary.rb:140:in
 `block in windows_registry_path'
 from c:/Ruby192/lib/ruby/1.9.1/win32/registry.rb:389:in `open'
 from c:/Ruby192/lib/ruby/1.9.1/win32/registry.rb:496:in `open'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/binary.rb:139:in
 `windows_registry_path'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/binary.rb:125:in
 `windows_path'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/binary.rb:106:in
 `path'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/binary.rb:49:in
 `execute'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/binary.rb:30:in
 `start_with'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/launcher.rb:68:in
 `start_silent_and_wait'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/launcher.rb:35:in
 `block in launch'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/socket_lock.rb:20:in
 `locked'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/launcher.rb:32:in
 `launch'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/bridge.rb:19:in
 `initialize'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/common/driver.rb:31:in
 `new'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/common/driver.rb:31:in
 `for'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver.rb:63:in
 `for'
 from
 c:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.5.6/lib/watir-webdriver/browser.rb:35:in
 `initialize'

 This script runs fine in netbeans 7.0, from the command line as well.

 Here is a shortened list of the gem versions which I am using
 selenium-webdriver (2.21.2)
 watir-webdriver (0.5.6, 0.5.4)
 win32-api (1.4.8 x86-mingw32)
 win32-process (0.6.5)
 windows-api (0.4.1, 0.4.0)

 Please let me know if you guys need any other information.

-- 
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: capturing browser version

2012-03-02 Thread Joe DiMauro
You can use Ruby to read values from Window's Registry showing which
version of a browser is installed.

IE's version is stored as a String value at:
 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Version

Firefox's version is stored as a String value at:
   Win 64bit = HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Mozilla
Firefox\Current Version
   Win 32bit = HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox
\Current Version

Chrome's version is stored as a String value at:
   HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion
\Uninstall\Google Chrome\Version

Here is info on how to read the registrry with ruby:
  
http://ruby-doc.org/stdlib-1.9.1/libdoc/dl/rdoc/dl/win32/lib/win32/registry_rb.html?TB_iframe=trueheight=550width=785

That's a reliable way that I've used on WIN XP, Vista, and WIn7.


On Mar 1, 9:33 am, Dan dfra...@gmail.com wrote:
 Is there a built in way in watir-webdriver or ruby to get the version
 number of the browser that's running on the host machine?  I can probably
 scrape that off of  chrome://version/ and about:support in Firefox, but I'm
 wondering if someone knows of a better way.

-- 
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: can select a value in the select_list that is hidden

2012-02-03 Thread Joe DiMauro
Could you provide some info:, like
What gem's are you using: watir or watir-webdriver?
What OS browser do you see this with?

That would help.

Joe

On Feb 2, 10:28 am, Rahul Sharma rahulsharma@gmail.com wrote:
 Hi,

 I have a select_list that is hidden in the DOM but when I say
 browser.select_list(:id = 'name').select(value_from_select_list) it
 doesn't complain.

 Now I can say select only when_present which it wont as it's not
 visible, Should it not complain in the first place when selecting a
 value in the hidden field?

 Thanks

-- 
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] Looking for a method to identify the current cursor ?

2011-11-05 Thread Joe DiMauro
Does anyone know of a means with Watir-Webdriver to identify which
type of cursor is present when focus is on a HTML element?

For example:
a) I-beam cursor is present when focus is on a text input field
b) Pointer cursor is present when focused on a link
c) Busy cursor is present while awaiting the completion of some task

I'm looking for a solution that will work with IE, FF, or Chrome on
Windows, OSX and Linux.

I looked at the Watir-Webdriver RDocs, and searched both here and at
Stack Overflow but didn't see anything that jumped out as a way to
interact with the cursor.

Thanks,
Joe

-- 
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: Get machine name for MAC

2011-10-21 Thread Joe DiMauro
Joe,

Here's a partial answer to why
   puts ENV[COMPUTERNAME]
returned nil.

Not every environment variable that is available on Windows is also on
OSX (or Linux).

To see which Env variables are available on your platform try this
code, the results will differ form Windows, to OSX, to Linux.

irb
ENV.each do | key, value |
puts key.to_s +  =   + value.to_s
end


On Oct 20, 8:47 am, Joe Fl joeflec...@gmail.com wrote:
 Hi,

 This is a ruby question but how do I get the name of my MAC using
 ruby.

 I have found:

 require 'socket'
 puts Socket.gethostname

 (not what I am looking for)

 puts ENV[COMPUTERNAME]

 puts ENV['USERDOMAIN']
 puts ENV['LOGONSERVER']

 they all return nil

 any help would be appreciated.

 Thank you,
 Joe

-- 
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: Handling a MAC Pro book File Upload window.

2011-10-18 Thread Joe DiMauro
Another thing I noticed. Due to the path ending with
\criptDataFile.xls

It appers that the backslash followed by the two characters cr
is being interpeted as a Carridge Return.  You can see this
in the error message:

No such file or directory - Users/josephfleck/Documents/Download
Docs/ iptDataFile.xls (Errno::ENOENT)
  ^
 Notice the space instead of the characterscr indicating
 that \cr was interpreted as a Carriage Return, not the first
 two characters in the file name criptDataFile.xls


So try all these:
1. Use a full pathname, not a relative path (as previously mentioned)
 Unless Ruby is running with the Root level of your Mac as it
working
directory, (which I'm pretty sure its not), then the Users
directory will not be a valid relative path.)

2. Remove the backslashes. They are not necessary on Mac/Linus OS,
(as previously mentioned), and may cause issues (e.g. \cr)

3. Always a good idea (as previously mentioned), to upgrade to the
latest version of the gems, (and Ruby if possible)

If you are also running safariWatir you may not be able to upgrade
to Ruby 1.9.x.  I don't recall if safariWatir supports 1.9.x yet.

4. The space in the directory name should not be an issue, since the
full path is quoted,  but whenever possible using directory
   and file names without spaces is always safer.


Joe DiMauro


On Oct 17, 4:42 pm, Chuck van der Linden sqa...@gmail.com wrote:
 or escape the space with a backslash? same as you are doing for the
 slashes?  (but Michael's solution of using double-quotes might be even
 easier)

 On Oct 17, 1:50 pm, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:

  On Mon, Oct 17, 2011 at 10:01 PM, Joe Fleck joeflec...@gmail.com wrote:
    No such file or directory - Users/josephfleck/Documents/Download Docs/

  iptDataFile.xls

  Try putting the file in a folder that has no spaces, something
  like Users/josephfleck

  Ž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


[wtr-general] Re: watir-webdriver unable to detect firefox

2011-10-18 Thread Joe DiMauro
It appears that it can't find the file specified by the first
require statement.

require 'watir-webdriver'

Add the line
require 'rubygems
as the first require in your scripts.

Joe

-- 
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: confused with versioning in Watir

2011-10-11 Thread Joe DiMauro
Babu,

What do you now get fromWatir::VERSION

Joe


On Oct 11, 1:15 pm, Babu suvodasgu...@gmail.com wrote:
 i already removed the older version of firewatir and commonwatir
 activesupport (3.1.1)
 builder (3.0.0)
 child-process-manager (0.0.3)
 childprocess (0.2.2)
 commonwatir (2.0.2)
 fattr (2.2.0)
 ffi (1.0.9)
 firewatir (1.9.4)
 flexmock (0.9.0)
 hoe (2.12.3)
 json_pure (1.6.1)
 minitest (2.6.1)
 multi_json (1.0.3)
 rake (0.9.2)
 rautomation (0.6.3)
 rubygems-update (1.8.10)
 rubyzip (0.9.4)
 s4t-utils (1.0.4)
 selenium-webdriver (2.7.0)
 session (3.1.0)
 user-choices (1.1.6.1)
 watir (2.0.2)
 watir-webdriver (0.3.5, 0.3.4)
 win32-api (1.4.8)
 win32-process (0.6.5)
 windows-api (0.4.0)
 windows-pr (1.2.1)
 xml-simple (1.1.0)

 still i have 1.4.1 on Watir::IE::VERSION
 thanks

 On Oct 11, 1:53 pm, Chuck van der Linden sqa...@gmail.com wrote:

  Are there some individual files he could hunt down and remove, and
  then just re-install the watir gem?

  Would getting rid of the 1.6.5 versions of commonwatir and firewatir
  help?

  On Oct 11, 9:40 am, Babu suvodasgu...@gmail.com wrote:

   if i uninstall ruby then i have to install all the  gems again
   manually since in my office there is firewall issue so i download and
   install all the gems manually.

   On Oct 11, 11:12 am, Željko Filipin zeljko.fili...@wa-research.ch
   wrote:

As I said, you probably have 1.4.1 installed from exe file. Uninstall 
ruby
and install it again.

Zeljko

On Tuesday, October 11, 2011, Babu suvodasgu...@gmail.com wrote:
 hi joe,
 i did exactly what you told.
 =
 C:\Suvo
 Watir::FileField
 Watir::Button
 Watir::SelectList
 Watir::Link
 Watir::Image
 Watir::TableCell
 Watir::TableRow
 Watir::TableBody
 Watir::TableBodies
 Watir::Table
 Watir::Label
 Watir::Span
 Watir::Div
 Watir::P
 Watir::SpanDivCommon
 1.4.1

 C:\Suvogem list watir

 *** LOCAL GEMS ***

 watir (2.0.2)
 watir-webdriver (0.3.5, 0.3.4)

 C:\Suvo

 still i have 1.4.1 on Watir::IE::VERSION
 here is my more deatils:
 ==
 C:\Suvoruby -v
 ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]

 C:\Suvogem -v
 1.8.10

 C:\Suvogem list

 *** LOCAL GEMS ***

 activesupport (3.1.1)
 builder (3.0.0)
 child-process-manager (0.0.3)
 childprocess (0.2.2)
 commonwatir (2.0.2, 1.6.5)
 fattr (2.2.0)
 ffi (1.0.9)
 firewatir (1.9.4, 1.6.5)
 flexmock (0.9.0)
 hoe (2.12.3)
 json_pure (1.6.1)
 minitest (2.6.1)
 multi_json (1.0.3)
 rake (0.9.2)
 rautomation (0.6.3)
 rubygems-update (1.8.10, 1.8.9)
 rubyzip (0.9.4)
 s4t-utils (1.0.4)
 selenium-webdriver (2.7.0)
 session (3.1.0)
 user-choices (1.1.6.1)
 watir (2.0.2)
 watir-webdriver (0.3.5, 0.3.4)
 win32-api (1.4.8)
 win32-process (0.6.5)
 windows-api (0.4.0)
 windows-pr (1.2.1)
 xml-simple (1.1.0)

 thanks

 On Oct 11, 8:41 am, Joe DiMauro joe...@comcast.net wrote:
 Babu,

 I can see why you are confused as the value returned from the method
 Watir::IE::VERSION does not match the version of the gem.

 Watir::IE::VERSION gives you the version of the IE Browser.
 Watir::VERSION gives you the version of Watir.

 That said, here are some things to check:
 1. What versions of the gem are installed? You can have multiple
 versions.
 2. Cleanup any unneeded version
 3. See what  is reported using Watir::IE:VERSION
 4. See what is reported using Watir::VERSION

 Lets start with step 1.
 Use the gem list command to see what versions are installed. For
 example:
     C:\Users\Joe\workspacegem list watir

     *** LOCAL GEMS ***

     watir (1.9.2, 1.6.5)
     watir-webdriver (0.3.5, 0.3.2)

 Notice that it reports on any gem that contaisn watir in its name.

 Step 2.
 Now use the gem cleanup command to remove the old version.
     C:\Users\Joe\workspacegem cleanup watir
     Cleaning up installed gems...
     Attempting to uninstall watir-1.6.5
     Successfully uninstalled watir-1.6.5
     Clean Up Complete

 Recheck the versions
     C:\Users\Joe\workspacegem list watir

     *** LOCAL GEMS ***

     watir (1.9.2)
     watir-webdriver (0.3.5, 0.3.2)
     watirworks (0.1.4)

 Step 3.
 Now that we know that only the Watir (1.9.2) em is installed lets 
 look
 at what Watir::IE::VERSION returns.
     C:\Users\Joe\workspaceirb
     irb(main):001:0 require 'watir'
     = true
     irb(main):002:0 Watir::IE::VERSION
     (irb):3: warning: toplevel constant VERSION referenced by
 Watir::IE::VERSION
     = 1.8.7

 Hey that's the version of IE I have installed. Cool!

 So now lets get the version of Watir:
     C:\Users\Joe\workspaceirb
     irb(main

[wtr-general] Re: trying to click a link without an id or name.

2011-10-11 Thread Joe DiMauro
You can always use the links :index
For example if this were the first link on the page:

browser.link(:index = 1).click   (If using Watir which uses One based
indexing by default)
browser.link(:index = 0).click   (If using Watir-WebDriver which uses
Zero based indexing)

Joe D.

On Oct 11, 2:48 pm, Joe Fl joeflec...@gmail.com wrote:
 Hi,

 Is there anyway to click a link when it doesn't have an id or name
 attached to it?

 HTML code:
 span class=related-topics
 Topics:
 a href=http://.com/channels/naph-member-community/
 navigational_categories/discussions/pages/detail/
 ChannelResourceCategory/90Ambulatory/Outpatient Care/a

 Thank you,
 Joe

-- 
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: Will Watir 1.8.0 run on JRuby 1.5.0?

2011-10-07 Thread Joe DiMauro
No, it will not work because is can not be installed.
JRuby does not support native extensions or the `mkmf' library

As a part of the installation process Watir (as with many gems)
needs to  complile native extensions. Neither JRuby (Ruby on Java)
nor  IronRuby (Ruby on .NET)  support that ability.

Thus until either JRuby or IronRuby  support that
need, or Watir is re-designed to install without the need
for that compilation step, you can't install it and thus it would run.

And since Java is platform independent (while Internet Explorer
is Windows only) So even if Watir could install on JRuby
it would still only work within JRuby on Windows.

However both commonwatir, and firewatir (1.9.x),
as well as watir-webdriver (0.3.2, 0.3.1) do not require the
compilation
of the native libraries, and thus do install.

Here's proof that they (and some other gems) can be installed in
JRuby:
--

C:\Users\Joe\workspacejruby -v
jruby 1.6.3 (ruby-1.8.7-p330) (2011-07-07 965162f) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_26) [Windows Vista-amd64-java]

C:\Users\Joe\workspacejgem list

*** LOCAL GEMS ***

bouncy-castle-java (1.5.0146.1)
builder (3.0.0)
childprocess (0.2.1)
choice (0.1.4)
commonwatir (1.9.2)
ffi (1.0.9 java)
firewatir (1.9.2)
google-spreadsheet-ruby (0.1.5)
hoe (2.12.0)
jruby-openssl (0.7.4)
jruby-win32ole (0.8.4)
json_pure (1.5.3)
log4r (1.1.9)
nokogiri (1.5.0 java)
oauth (0.4.5)
rake (0.8.7)
rautomation (0.6.3)
roo (1.9.6)
ruby-ole (1.2.11.1)
rubyzip (0.9.4)
s4t-utils (1.0.4)
selenium-webdriver (2.4.0)
sources (0.0.1)
spreadsheet (0.6.5.7)
todonotes (0.1.0)
user-choices (1.1.6.1)
watir-webdriver (0.3.2, 0.3.1)
xml-simple (1.1.0)

Here's output from a failed Watir installation in JRuby:
--

C:\Users\Joe\workspacejgem install watir -v1.9.2
Building native extensions.  This could take a while...
ERROR:  Error installing watir:
ERROR: Failed to build gem native extension.

c:/JRuby/jruby-1.6.3/bin/jruby.exe extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf'
library very well.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
checking for strncpy_s()... IOError: Cannot run program cc (in
directory C:\JRuby\jruby-1.6.3\lib\ruby\gems\1.8\gems\win32-
api-1.4.8\ext): CreateProcess error=2, The system cannot find the
file specified
 popen at org/jruby/RubyIO.java:3540
xpopen at c:/JRuby/jruby-1.6.3/lib/ruby/site_ruby/shared/
mkmf.rb:323
  open at c:/JRuby/jruby-1.6.3/lib/ruby/site_ruby/shared/
mkmf.rb:260
xpopen at c:/JRuby/jruby-1.6.3/lib/ruby/site_ruby/shared/
mkmf.rb:316
 egrep_cpp at c:/JRuby/jruby-1.6.3/lib/ruby/site_ruby/shared/
mkmf.rb:538
 have_func at c:/JRuby/jruby-1.6.3/lib/ruby/site_ruby/shared/
mkmf.rb:758
  checking_for at c:/JRuby/jruby-1.6.3/lib/ruby/site_ruby/shared/
mkmf.rb:652
  postpone at c:/JRuby/jruby-1.6.3/lib/ruby/site_ruby/shared/
mkmf.rb:286
  open at c:/JRuby/jruby-1.6.3/lib/ruby/site_ruby/shared/
mkmf.rb:260
  postpone at c:/JRuby/jruby-1.6.3/lib/ruby/site_ruby/shared/
mkmf.rb:286
  open at c:/JRuby/jruby-1.6.3/lib/ruby/site_ruby/shared/
mkmf.rb:260
  postpone at c:/JRuby/jruby-1.6.3/lib/ruby/site_ruby/shared/
mkmf.rb:282
  checking_for at c:/JRuby/jruby-1.6.3/lib/ruby/site_ruby/shared/
mkmf.rb:651
 have_func at c:/JRuby/jruby-1.6.3/lib/ruby/site_ruby/shared/
mkmf.rb:755
(root) at extconf.rb:9
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=c:/JRuby/jruby-1.6.3/bin/jruby


Gem files will remain installed in c:/JRuby/jruby-1.6.3/lib/ruby/gems/
1.8/gems/win32-api-1.4.8 for inspection.
Results logged to c:/JRuby/jruby-1.6.3/lib/ruby/gems/1.8/gems/win32-
api-1.4.8/ext/gem_make.out
--

I've had limited success with firewatir and watir-webdriver on JRuby,
but I'll stick to plain old Ruby, as I have no pressing need for
JRuby.

Sorry,
Joe


On Oct 6, 7:15 pm, wolfv wolfvo...@gmail.com wrote:
 Will Watir 1.8.0 run on JRuby 1.5.0?

-- 
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: Newbie Dilemma

2011-09-23 Thread Joe DiMauro
Bala

On Sep 21, 8:18 am, bala balachandran.kan...@gmail.com wrote:

 1. If I select Watir-Webdriver, can also use the same test script
with
 Watir. I do understand that there will be limitations. But will it
 require a huge change in the commands that access page elements,
doing
 some actions etc. We will be using multiple browsers along with it
 different versions.

Answer: Yes, but you will need to account for the differences between
Watir and Watir-WebDriver.
The majority of methods are supported on either, but some do differ,
or only exist
in one or the other.

For a script to run with either put them inside if statements so
that the correct
block of code, (specific to one or the other), is executed based on
which one is being used.


 2. Our Dev env's are user/password based while Test is certificate
based. Is it really possible to use some tools like autoit to
 navigate through certificate list and select one.

Answer: On Windows is should, but you might look into using the
Rautomation
 gem instead, as it is now installed with Watir 1.9.2 or later, and
AutoIt
 is no longer part of Watir, but can still be accessed with
Rautomation)

4. Is it possible to make use of developer's machine to perform
distributed execution without interfering their work routine?.

Answer: Probably not. Watir / FireWatir and even Watir-WebDriver will
open a web browser window. The Developer will probably be annoyed
by a browser opening an running. You can run headless  but as
has been pointed out on this froum in the past, you are then not
testing against either IE or Firefox, but against the headless
browser.

Sorry can't help you on your other questions with definite answers.

Joe

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