[wtr-general] Watir-classic execute_script no longer working in IE11

2015-01-16 Thread Chris E
Hello all,

Recently Microsoft submitted a patch that appears to break/remove 
*ExecuteScript. *I think this is causing *driver.execute_script* to fail 
with access denied error message when using watir-classic.
Since IE11 removes support for *ExecuteScript*, is it possible to use *eval 
*instead?

*Environment:*
Win7x64.
ruby 2.0.0p195 (2013-05-14) [i386-mingw32]
IE11 v11.0.9600.175.01. 
Update version: 11.0.15 kb3008923

*Relevant links:*
https://connect.microsoft.com/IE/feedback/details/1078055/executescript-failing-with-access-denied-when-kb3025390-is-installed
http://msdn.microsoft.com/en-us/library/ie/bg182625(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/ie/ms536420(v=vs.85).aspx

*Error message:*
irb(main):043:0> driver.execute_script(';')
WIN32OLERuntimeError: (in OLE method `execScript': )
OLE error code:80070005 in 
  Access is denied.

HRESULT error code:0x80020009
  Exception occurred.
from 
c:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-classic-3.7.0/lib/watir-classic/page-container.rb:29:in
 
`method_missing'
from 
c:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-classic-3.7.0/lib/watir-classic/page-container.rb:29:in
 
`rescue in execute_script'
from 
c:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-classic-3.7.0/lib/watir-classic/page-container.rb:22:in
 
`execute_script'
from (irb):43
from c:/Ruby200/bin/irb:12:in `'
irb(main):044:0>

Thanks for the help.
-Chris

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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[wtr-general] Watir-WebDriver vs Selenium WebDriver Python bindings

2012-10-27 Thread Chris Smalley
Hello,

I'm making a case for Watir-WebDriver at work, and I'd like your insights. 
 First, a little background:

Automated front end testing is going to be owned by the QA department. 
 We're a small group of QAs, some more technical than others, but none of 
us are programmers. 

Over the past three months I have been developing a Watir-WebDriver 
codebase.  It's coming along and I have some reusable code that is now 
running hourly on a continuos integration.  Lately my work has garned some 
attention, and I find myself in a tough position.  On one hand, people are 
enthused.  On the other hand, they are curious about using the Python 
bindings to use WebDriver.  The reason is, there are more devs that know 
Python (one dev in particular has done a fair amount of Selenium WebDriver 
work in Python), and a few of the QAs know Python too.  They seem to think 
this is a language issue, and while I'm biased cause I love Ruby, my 
argument is that the Watir API simply outclasses the Selenium bindings 
(including the Ruby bindings!).  I don't want this to turn into a Python 
vs. Ruby conversation, but I'd like some insight on the Selenium WebDriver 
bindings vs Watir-WebDriver.  What are some things that the Selenium 
bindings (particularly Python) do well?  What about Watir-WebDriver?

Since we're not programmers, and we will likely not hire programmers for 
QA, my reasons for using Watir-WebDriver are largely due to the simplicity 
and directness of it.  It's very easy to get up and running, and therefore 
it would be easy to train in new QAs and have them grok the codebase.  I've 
compared Watir-WebDriver code to Selenium Python code and it's just 
staggering how much easier and more natural the Watir-WebDriver code flows. 
 I've also written simple tests with the Selenium Python bindings and, in 
my opinion, it's not nearly as intuitive and requires a lot more code to do 
the same thing.  It doesn't hurt that the Watir community is awesome - that 
really fuels the fire.

Basically, my job is to stick up for Watir-WebDriver.  I firmly believe 
that it's the best way to use WebDriver, and I also believe it has a great 
future.  I'm looking for any insights you have.  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] Watir vs Watir Web-driver

2011-11-18 Thread chris
In the Watir book, during the Installation chapter it say that if you are 
new to Watir, start with the webdriver gem, why is it best for new users to 
start with the webdriver gem?

-- 
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] CFP: Second Writing About Testing peer conference, Durango CO May 13/14

2010-10-25 Thread Chris McMahon
Details available here:
http://chrismcmahonsblog.blogspot.com/2010/10/call-for-participation-second-writing.html

Writing About Testing is a peer conference for those interested in
influencing the public discourse on software testing and software
development by writing and speaking on those subjects. The discussion
revolves around blogging, giving presentations at conferences and user
groups, and writing for established media outlets, both for pay and
for other reasons. There will very likely be representatives from
established media outlets attending. Having software writers and
publishers talking to each other face to face is a unique aspect of
WAT.

For the first WAT conference we asked only that participants be
interested and have had already written about software. The second WAT
will be a little different.

For the second WAT we ask that applicants propose a talk (informal is
fine, no slides required) of 30-45 minutes about some subject critical
to their work as a tester or developer, or designer or business
analyst, but which is not generally recognized as being part of such
work. A list of suggestions for such talks is below. The purpose of
this is to expand the practice of software beyond the current
artificial boundaries of recognized software activity.

-- 
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] Re: Differences between Watir, FireWatir, Webdriver ?

2010-08-14 Thread Chris



> ps: Why don't people make them become consistent and unique for all
> browsers ( IE, FF, Safari... )?

Unlurking for a minute because this is an interesting question.

IE has a proprietary API published by Microsoft.  Microsoft also has a
long history of jacking anyone who emulates their public APIs by
changing them so as to make critical applications no longer function
with MS products.  So no one is interested in emulating the
proprietary IE API.

Firefox runs so many places that it is essentially an OS unto itself.
To drive FF via its API, you have to pretty much turn it into a telnet
server and turn the tests running in the browser into little telnet
clients.

Safari has its own Mac-specific API, and shares a rendering engine
with Chrome.

The *watir projects attempted to address each individual API from
within the Watir framework itself.  And they did a good job.  But
Simon Stewart had this crazy idea to do it independently himself.  And
when Simon went to work for Google, google took over some of the
maintenance of that code, called Webdriver.  Today, I don't think
anyone would argue that the Webdriver library is better than what
exists in the Watir framework.

Webdriver is robust enough now to be very useful, and both the
Selenium and Watir projects are migrating to using Webdriver as the
only browser engine.  Webdriver itself could use a lot more
documentation than it has, and I actually wanted to work on that this
summer, but my life didn't allow it.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] OT: selenium-webdriver Ruby help?

2010-04-04 Thread Chris McMahon
I know a few of you are working in watir-webdriver.  I am doing a
small script using selenium-webdriver and I ran across something that
looks like a bug in the framework, that might be interesting.  If you
would like to help me figure this out, let me know off the list,
christopher dot mcmahon on gmail.

Thanks!

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com

To unsubscribe, reply using "remove me" as the subject.


[wtr-general] Re: FireWatir broken on OSX 10.6.1 Snow Leopard

2009-11-03 Thread Chris


awesome, thank you

On Nov 3, 8:51 am, Charley Baker  wrote:
> Hey Chris,
>
>   This has been fixed in the latest release candidate 1.6.5.rc2, the change
> was calling firefox-bin to start it up instead of the firefox shell 
> script.http://github.com/bret/watir/commit/3c3a130b2e8f48a1d1e0c5ceab4f44f6b...
>
> If you want to give 1.6.5.rc2 a try, here are the gems and some 
> instructionshttp://wiki.openqa.org/display/WTR/Development+Builds
> otherwise I am planning to do an official release of 1.6.5 this week barring
> any reported problems.
>
> Charley Baker
> Lead Developer, Watir,http://www.watir.com
>
> On Tue, Nov 3, 2009 at 8:12 AM, Chris McMahon 
> > wrote:
>
> > Hi...
>
> > Oddly enough my problem is described exactly in a Selenium thread here:
> >http://stackoverflow.com/questions/1364523/firefox-bin-quit-unexpecte...
>
> > Firefox runs normally until I try to use FireWatir. The error message is as
> > described in the stackoverflow page.
>
> > When I do
>
> > mv /Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib
> > /Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib.orig
>
> > Firefox won't launch normally or under FireWatir, and reports
>
> > SQLite Version Error/The application has been updated, but your version of
> > SQLite is too old and the application cannot run.
>
> > (Interestingly, the identical issue at mozilla
> >http://support.mozilla.com/en-US/forum/1/486263is marked "solved" even
> > though the only successful strategy was to roll back FF to an earlier
> > version.  Also, more information here:
> >http://jira.openqa.org/browse/SRC-743)
>
> > I don't see any sign of an authoritative fix.  If anyone has one, please
> > let me know.
>
>
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] FireWatir broken on OSX 10.6.1 Snow Leopard

2009-11-03 Thread Chris McMahon
Hi...

Oddly enough my problem is described exactly in a Selenium thread here:
http://stackoverflow.com/questions/1364523/firefox-bin-quit-unexpectedly-while-running-selenium-test

Firefox runs normally until I try to use FireWatir. The error message is as
described in the stackoverflow page.

When I do

mv /Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib
/Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib.orig

Firefox won't launch normally or under FireWatir, and reports

SQLite Version Error/The application has been updated, but your version of
SQLite is too old and the application cannot run.

(Interestingly, the identical issue at mozilla
http://support.mozilla.com/en-US/forum/1/486263 is marked "solved" even
though the only successful strategy was to roll back FF to an earlier
version.  Also, more information here:
http://jira.openqa.org/browse/SRC-743)

I don't see any sign of an authoritative fix.  If anyone has one, please let
me know.

--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Basic authentication on Linux with FireWatir

2009-10-29 Thread Chris


FWIW: 
http://chrismcmahonsblog.blogspot.com/2006/05/internet-explorer-basic-authorization.html

On Oct 28, 1:20 am, Angrez Singh  wrote:
> I have added the basic authentication mechanism to Firewatir. Its not yet
> released. Me & Bret need to finalize on the syntax, method name etc so that
> its easier to use both with Watir/Firewatir.
>
> - Angrez
>
> On Wed, Oct 28, 2009 at 10:28 AM, Raveendran P  wrote:
> > Hi Aedorn,
>
> >            I got some idea's from Selenium.I implemented it in my Watir
> > scripts. Have you tried this way?  -- >http://bit.ly/21zDrH
>
> >             Awaiting your reply
>
> > Thanks
>
> > On Wed, Oct 28, 2009 at 6:03 AM, Ethan  wrote:
>
> >> Yeah, you should be able to get a handle to the window where you enter
> >> username/password, get the text fields on that window, set them, click the
> >> 'ok' button. That'd all be in javascript over the jssh socket.
>
> >> On Tue, Oct 27, 2009 at 20:28, aidy lewis wrote:
>
> >>> The Firefox browser is completly scriptable. I would suggest looking
> >>> at the Mozilla js classes.
>
> >>> 2009/10/27 Chris :
>
> >>> > I looked into this a long time ago, and there is no way to persist a
> >>> > Basic Auth session in a browser.  You have to have credentials for
> >>> > every page request and every frame within every page.   I was hacking
> >>> > around deep in the guts of Watir trying to make this work and failed.
>
> >>> > Nor do I know of any other tool that makes this possible.  There might
> >>> > be something fancy you could do in multiple libraries used by Watir,
> >>> > buiret I did not have that kind of mandate.
>
> >>> > I suggest a well-designed set of manual tours.
>
> >>> > -Chris
>
> >>> > On Oct 27, 1:53 pm, Aedorn Varanis  wrote:
> >>> >> This doesn't really solve the problem.
>
> >>> >> On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis <
> >>> aidy.le...@googlemail.com>wrote:
>
> >>> >> > Can you not set your trusted uri's in about:config
>
> >>> >> > network.automatic-ntlm-auth.trusted-uris ?
>
> >>> >> > Aidy
>
> >>> >> > 2009/10/27 Aedorn Varanis :
> >>> >> > > I took a look around but it doesn't like there's any answer to
> >>> this. I've
> >>> >> > > recently been tasked to automate testing of a product, and the
> >>> only thing
> >>> >> > I
> >>> >> > > can't seem to solve is basic authentication, which is rather funny
> >>> to me,
> >>> >> > > but not so much to those who are waiting on this being done.
>
> >>> >> > > So how can one go about doing basic authentication with
> >>> FireWatir/Firefox
> >>> >> > on
> >>> >> > > Linux currently?
>
> > --
> > Regards,
> > P.Raveendran
> >http://raveendran.wordpress.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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Basic authentication on Linux with FireWatir

2009-10-28 Thread Chris



On Oct 28, 1:20 am, Angrez Singh  wrote:
> I have added the basic authentication mechanism to Firewatir. Its not yet
> released. Me & Bret need to finalize on the syntax, method name etc so that
> its easier to use both with Watir/Firewatir.

That's cool.  I could have used that some time ago.  :-)
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Basic authentication on Linux with FireWatir

2009-10-27 Thread Chris


I looked into this a long time ago, and there is no way to persist a
Basic Auth session in a browser.  You have to have credentials for
every page request and every frame within every page.   I was hacking
around deep in the guts of Watir trying to make this work and failed.

Nor do I know of any other tool that makes this possible.  There might
be something fancy you could do in multiple libraries used by Watir,
but I did not have that kind of mandate.

I suggest a well-designed set of manual tours.

-Chris

On Oct 27, 1:53 pm, Aedorn Varanis  wrote:
> This doesn't really solve the problem.
>
> On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis wrote:
>
>
>
> > Can you not set your trusted uri's in about:config
>
> > network.automatic-ntlm-auth.trusted-uris ?
>
> > Aidy
>
> > 2009/10/27 Aedorn Varanis :
> > > I took a look around but it doesn't like there's any answer to this. I've
> > > recently been tasked to automate testing of a product, and the only thing
> > I
> > > can't seem to solve is basic authentication, which is rather funny to me,
> > > but not so much to those who are waiting on this being done.
>
> > > So how can one go about doing basic authentication with FireWatir/Firefox
> > on
> > > Linux currently?
>
>
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Answering incomplete requests

2009-10-23 Thread Chris


> 1. Stop responding to incomplete requests. Maybe they will repost with
> more information. Maybe not. Anyway, just ignore them.
> 2. Humiliate them and question their right to claim to be a tester if
> they can't even report a problem correctly. Make it clear that Watir is
> only for testers who have some basic competence.
> 3. What else?

2. is a bad option.  That one nearly killed the Perl community a
decade ago, and it's still an issue.

one option might be to emulate the Perl community of the time and
start a 'watir-beginners' list, with a commitment from some veterans
to spend time there, but emphasize that it is a list for newbies to
help each other.
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] had to issue 3 'gem install watir' commands

2009-10-16 Thread Chris McMahon
hi Watir people, long time no email.

I want to use Watir for a little project. I was installing it on a Vista
desktop.  Because it took 3 tries to get everything, Bret suggested I
mention that here.  Here is the full transcript of the installation, which
happened to still be up in my shell:


C:\Users\ChrisMc>irb
irb(main):001:0> exit

C:\Users\ChrisMc>gem install watir
Bulk updating Gem source index for: http://gems.rubyforge.org
Install required dependency win32-process? [Yn]  Y
Install required dependency windows-pr? [Yn]  Y
Install required dependency windows-api? [Yn]  Y
Install required dependency win32-api? [Yn]  Y
Select which gem to install for your platform (i386-mswin32)
 1. win32-api 1.4.5 (ruby)
 2. win32-api 1.4.5 (x86-mswin32-60)
 3. win32-api 1.4.4 (ruby)
 4. win32-api 1.4.4 (x86-mswin32-60)
 5. Skip this gem
 6. Cancel installation
> 2
Install required dependency win32-api? [Yn]  Y
Select which gem to install for your platform (i386-mswin32)
 1. win32-api 1.4.5 (ruby)
 2. win32-api 1.4.5 (x86-mswin32-60)
 3. Skip this gem
 4. Cancel installation
> 1
Install required dependency test-unit? [Yn]
Install required dependency hoe? [Yn]  Y
Install required dependency rubyforge? [Yn]  Y
Install required dependency json_pure? [Yn]  Y
Install required dependency rake? [Yn]  Y
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install watir
checking for strncpy_s()... no
creating Makefile

nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.


Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.
5 for inspection.
Results logged to
c:/ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.5/ext/gem_make.ou
t

C:\Users\ChrisMc>gem install watir
Install required dependency win32-process? [Yn]  Y
Install required dependency windows-pr? [Yn]  Y
Install required dependency activesupport? [Yn]  Y
Install required dependency commonwatir? [Yn]  Y
Install required dependency user-choices? [Yn]  Y
Install required dependency xml-simple? [Yn]  Y
Install required dependency s4t-utils? [Yn]  Y
Install required dependency builder? [Yn]  Y
Install required dependency firewatir? [Yn]  Y
Successfully installed watir-1.6.2
Successfully installed win32-process-0.6.1
Successfully installed windows-pr-1.0.8
Successfully installed activesupport-2.3.4
Successfully installed commonwatir-1.6.2
Successfully installed user-choices-1.1.6
Successfully installed xml-simple-1.0.12
Successfully installed s4t-utils-1.0.4
Successfully installed builder-2.1.2
Successfully installed firewatir-1.6.2
Installing ri documentation for watir-1.6.2...
Installing ri documentation for win32-process-0.6.1...
Installing ri documentation for windows-pr-1.0.8...
Installing ri documentation for activesupport-2.3.4...
Installing ri documentation for commonwatir-1.6.2...
Installing ri documentation for user-choices-1.1.6...
Installing ri documentation for s4t-utils-1.0.4...
Installing ri documentation for builder-2.1.2...
While generating documentation for builder-2.1.2
... MESSAGE:   Unhandled special: Special: type=17, text=""
... RDOC args: --ri --op c:/ruby/lib/ruby/gems/1.8/doc/builder-2.1.2/ri
--title
Builder -- Easy XML Building --main README --line-numbers --quiet lib
CHANGES Ra
kefile README doc/releases/builder-1.2.4.rdoc
doc/releases/builder-2.0.0.rdoc do
c/releases/builder-2.1.1.rdoc
(continuing with the rest of the installation)
Installing ri documentation for firewatir-1.6.2...
Installing RDoc documentation for watir-1.6.2...
Installing RDoc documentation for win32-process-0.6.1...
Installing RDoc documentation for windows-pr-1.0.8...
Installing RDoc documentation for activesupport-2.3.4...
Installing RDoc documentation for commonwatir-1.6.2...
Installing RDoc documentation for user-choices-1.1.6...
Installing RDoc documentation for s4t-utils-1.0.4...
Installing RDoc documentation for builder-2.1.2...
Installing RDoc documentation for firewatir-1.6.2...

C:\Users\ChrisMc>gem install watir
Successfully installed watir-1.6.2
Installing ri documentation for watir-1.6.2...
Installing RDoc documentation for watir-1.6.2...

C:\Users\ChrisMc>gem install watir
Successfully installed watir-1.6.2
Installing ri documentation for watir-1.6.2...
Installing RDoc documentation for watir-1.6.2...

C:\Users\ChrisMc>

--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: after massive watir crawl..

2009-08-30 Thread Chris McMahon


>
> looks to me that something must be stuck somewhere, and I need to
> clear that away, but I don't know what I need to clear away.. I
> restarted the computer, but the problem does not go away.
>
> Could anyone tell me what I need to clear away in order to have smooth
> internet access??

I seem to recall that Ruby under some circumstances will hog memory
until Bad Things Happen.

If you're crawling all these pages and saving bits of information, be
sure you're writing out to a file along the way and flushing the write
buffer when you do it.

-Chris
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] nice PNSQC paper on security testing with Ruby/Watir

2009-08-13 Thread Chris


>From Jim Knowlton, this showed up on Twitter just now, I read it over,
very well done I think:
http://docs.google.com/fileview?id=0B2VIeFg5LMV6NTZkMzM2MDktNDAyNC00ZTliLWI3MjAtYWE3OTJlYTk4YzA0&hl=en

Apparently this is a draft, and Knowlton is soliciting comments.
@jimknowlton
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Data driven test using .CSV file

2009-07-26 Thread Chris McMahon



On Jul 25, 9:03 am, RAM  wrote:
> Hi allI am very new to Watiranybody here knows how to
> import value from  .CSV files and Export Results into an .CSV file in
> Watir.
> Please reply and provide links if similar subject is already posted.

I wrote a toy framework that does exactly this:
http://chrismcmahonsblog.blogspot.com/2009/04/ui-test-framework-design-using-watir.html

Please let us know if that is useful.

-Chris
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir vs Selenium

2009-05-01 Thread Chris McMahon


I've worked with Selenium the past two years.  It's an excellent
tool.

For one thing, support for multiple browsers is excellent because the
way Selenium goes about manipulating pages is consistent from browser
to browser.  Watir is rapidly achieving support for multiple browsers,
but it is using different mechanisms to manipulate each browser.

I recently found an instance where Watir was far better than
Selenium.  I had a need to analyze a web site that contained a lot of
poorly-formed HTML.  Selenium would not recognize the pages at all,
but Watir worked quite well.

At one time Watir was somewhat easier to learn, although I think
Selenium (especially with Selenium-RC) has been catching up.
Traditionally Selenium appealed more to developers new to testing and
Watir more to testers new to development, but I think that distinction
is disappearing.

So I'd say: try them both, build a few dozen assertions about the
behavior of your particular site with each, and see which is more
comfortable.

On May 1, 1:51 am, venky  wrote:
> Hi All,
>
> I had worked with watir. I would like to explore selenium too as both
> are open source. I am very curious to know the advantages and
> disadvantages of watir and selenium when both are compared. If the
> answer is "It depends on requirement" kindly let me know for which
> requirement which is the best tool to choose.
> I had googled "watir vs selenium". But I would be satisfied if most of
> the experienced QA engineers here share their experience, as it would
> be very helpfull to all.
>
> Comparison with Watir and other open source are welcome...
>
> Thanks,
> Venkathttp://www.prog2impress.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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: thinking about automation frameworks/harnesses

2009-04-29 Thread Chris McMahon



On Apr 29, 12:47 am, JArkelen  wrote:
> It wasn't broad criticism, it was just my 2 cents about combining test
> data and object data.

I don't know what you mean by "object data".  Probably a character
flaw on my part, but that's why I was hoping for an example of what
you meant.  And since the original example is so tiny (and so
imperative), refactoring it shouldn't take more than a minute or so.
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: thinking about automation frameworks/harnesses

2009-04-28 Thread Chris McMahon



On Apr 28, 8:56 am, JArkelen  wrote:
> No, I have my own framework/directory structure for my tests and I'm
> perfectly happy with it.

It seems hardly sporting to issue such a broad criticism and then
leave without an example.  :-)

I wrote this to illustrate some principles of UI-test design, such
that I could explain it to an audience in less than 30 minutes, not
knowing how sophisticated that audience might be.  It is intentionally
simple, and it is pretty much an imperative programming style.  If you
see a way to make it better while keeping it simple, I'd very much
like to see what you have in mind.

Also, I'm a pretty crappy OO programmer, so again, I would learn
something to see what changes you have in mind.

-Chris
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: thinking about automation frameworks/harnesses

2009-04-28 Thread Chris McMahon



On Apr 28, 12:13 am, JArkelen  wrote:
> I can imagine why you want to separate the test data from the test
> script, but mixing it with the object data makes it confusing in my
> opinion.
> It would be better to separate both the test data and the object data
> to start with.

Probably so.
Want to refactor it and put it in a comment?
-Chris
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] thinking about automation frameworks/harnesses

2009-04-27 Thread Chris



Bret has mentioned on any number of occasions that one of the hardest
things for a new user of Watir to grasp is how to go about building a
test framework or a test harness.

I wrote a simple, but useful, test harness in about 50 lines of code,
that demonstrates a few important principles of a test harness here:
http://chrismcmahonsblog.blogspot.com/2009/04/ui-test-framework-design-using-watir.html

This code is a very simple emulation of the harness I've been using
for the past two years, which is currently supporting more than 10,000
individual assertions about the behavior of an application, so I know
this scheme is effective and scalable.

Please note:  I wrote this demo as part of my campaign to get a new
job.  If you use it for the same purpose, it would behoove you to say
where you got it.  It might also be helpful to make it a little
fancier.   Also, if you use it as a basis for your own test harness,
I'd appreciate it if you let me know.

-Chris
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Apply a patch to FireWatir and JSSH

2009-04-27 Thread Chris McMahon


> Does anyone know what that means/can post a step by step guide for
> it?  Or is there a better way to run multiple instances?

Use Selenium-RC?  :-)

Seriously though, this would be a great feature to have.  The problem
is that Firefox depends on a "profile".  Selenium is smart enough to
start each FF instance pointed at its own profile, but jssh never
built that in.

But since jssh is abandonware, it'll be tough to get that feature
working well.  Sai Venkat just this week checked in a spike to use
WebDriver's "Firedriver" (I think) rather than jssh, but it'll be some
time I think before any of this is well-supported in Watir.

-Chris


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: FireWatir bug/anomaly

2009-04-12 Thread Chris McMahon


> Calling the "methods" method on the element reveals that the "set"  
> method you are calling is not present. I was surprised to see that  
> this method exists - I've always used the "select" method, which works  
> fine. The RDoc reveals that set should be an alias for select.
>
> I would suggest using the select method for the time being:
> @browser.select_list(:id,"cAbb").select("software jobs")
>
> However, if you wish to use the set method, add the following code to  
> your firewatir/htmlelements.rb file in the SelectList class beneath  
> the select method's definition:
> alias :set :select

Alex, thanks very much.  I should have thought of some of that
myself-- it has been some time since I've worked closely with Watir.

Seems like I should have gotten a NoMethodError trying what I did, but
I'm glad that there *is* a right method.

-Chris
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Test Automation? Pashaw!

2009-04-04 Thread Chris McMahon



On Apr 4, 2:22 pm, Paul Rogers  wrote:
> get a copy of Lisa Crispins and Janet Gregorys book. There lots of good
> stuff in there about this kind of situation.

And may I point out in particular (ahem) page 260 sidebar "Giving
Testers Better Work".  Automation exercises function; people exercise
aesthetic judgments.  Conflating or confusing the two is a dire
mistake.

--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] FireWatir bug/anomaly

2009-04-04 Thread Chris


This snippet show the issue on FF3/Mac.  select_list on craigslist
seems to be invisible.  FWIW, Selenium IDE can address the select_list
with no problem

require 'rubygems'
require 'firewatir'

@browser = Watir::Browser.new
@browser.goto("http://newyork.craigslist.org/jjj/";)

#CAN'T ADDRESS BY INDEX
@browser.select_list(:index,1).set("software jobs")
#CAN'T ADDRESS BY ID
@browser.select_list(:id,"cAbb").set("software jobs")
#CAN'T SET THE select_list VIA 'value=foo'
@browser.select_list(:id,"cAbb").set("sof")

FireWatir generates no error for any of these calls.

--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] at liberty

2009-04-03 Thread Chris

I was laid off yesterday from my job as a software tester on a
distributed agile team.

If you know of anyone looking for an agile tester/QA person (former
ThoughtWorker), let me know.  I live in rural Colorado so
telecommuting is
required.

I'm a pretty good Ruby programmer but most of my experience is in
Watir/FireWatir, Selenium, API test clients of various kinds, and test
controller scripting, not application development.

Let me know if I can send anyone a resume.

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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: soa testing

2009-03-13 Thread Chris McMahon



On Mar 12, 8:31 am, Charley Baker  wrote:
> No, Watir is a library to Automate browsers for web testing. That being
> said, Ruby has SOAP libraries(soap4r) that we're using quite extensively to
> test SOAP based services. The benefit of using a real language as opposed to
> VendorScript is that there are libraries for just about anything you'd want
> to do - XML, SOAP, databases, MQ, etc.

And net/http and json are awfully nice for REST/JSON testing.  My
company has an extensive and powerful public REST API, and I poke
around in it a lot with net/http and json.

No browsers in sight.
-Chris
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: QA Position Available w/ Watir

2009-01-29 Thread Chris


> LOL!
>
> Nice to see you around Chris, hope all's well at Socialtext HQ!

Things are smokin' at ST HQ.  We are coming up on 10,000 test steps;
that is, 10,000 assertions of behavior at the UI level.
Unfortunately, we're using Selenium :-).   FWIW, we have a little more
than 12,000  assertions at the unit/integration level.  The purpose of
all this automation, of course, is to allow testers to examine
interesting parts of the application.  Closely. At their leisure. With
their eyeballs.

If it's any consolation though, the CI-like testrunner script that
checks out code, creates a test env, runs the tests, and reports the
results: is all Ruby.  As are the exploratory API tools.  I like me
some Ruby.

Congratulations to all the Watirfolk on all the great integrations in
recent times.  I applaud you all.

-C
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: QA Position Available w/ Watir

2009-01-29 Thread Chris

I've tried getting people in working remote before
> that I know and respect... no dice.

Dude, you *still* haven't gotten those HR people fired?  :-)
-C
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Selenium 2.0 plans to drive native browsers

2009-01-04 Thread Chris



On Jan 3, 11:55 am, "aidy lewis"  wrote:
> Chris wrote
>
> > but I would not be surprised in the coming years to see Selenium and Watir 
> > growing closer together.
>
> I am not so sure these worlds will collide, however we can learn and
> borrow off each other.
> Selenium and WebDriver are primarily Java apps, the family of Watir
> tools are explicitly Ruby.

Yes, but last I heard the implementations of Ruby in the JVM (JRuby,
etc) are getting pretty robust.
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Selenium 2.0 plans to drive native browsers

2009-01-03 Thread Chris



On Jan 2, 5:20 pm, Alister Scott  wrote:
> I noticed that Selenium 2.0 plans to include integration of WebDriver
> to focus on driving native browsers.
> http://blog.browsermob.com/2009/01/plans-for-selenium-in-2009/http://code.google.com/p/webdriver/1
> Sounds a bit like Watir to me.

Delurking for a minute...
Since the very beginning of both projects, there has been talk from
both about integrating the two in a single framework.  While that work
seems to be nowhere in sight right now, such a project has always been
possible.  Instead it seems like Watir people have chosen to
concentrate on FireWatir and SafariWatir integration first.  I think
this makes a lot of sense, but I would not be surprised in the coming
years to see Selenium and Watir growing closer together.


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Running in pure Linux shell mode (headless)

2008-10-30 Thread Chris



> So question is: Is it possible to run FireWatir in something like that or
> you need a graphics environment such as xWindows where FireFox can be
> launched?

Once you get this set up and working it's a really nice way to go.

We use the 'blackbox' window manager and run FF under x11vnc on
display 0.

Then you can reverse tunnel to your host like

ssh -L 5900:localhost:5900 [EMAIL PROTECTED] 'x11vnc -localhost -shared
-display :0'

Connect your favorite VNC client to localhost:5900 to watch the
browser running in the window manager.

This is particularly nice if you are running acceptance tests in a CI
system, or in my case, in an infinite loop 24/7.  Linux machines
rarely need restarting, so my Linux host runs for days and days and
days without need for maintenance.
--~--~-~--~~~---~--~~
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: Google test automation conference

2008-10-23 Thread Chris



On Oct 22, 2:25 pm, Bret Pettichord <[EMAIL PROTECTED]> wrote:
> You have to apply to attend and there are not that many seats available.
> So most people that want to go, don't tell others to improve their odds
> of getting chosen.

Dude, that's unfair.  :-)
I'll be happy to post the announcement next year.  Y'all remind me...

That said, it's unlikely to be in North America again any time soon.
The first one was in London, the second one was in NYC.  This one was
supposed to be in Hyderabad but the logistics didn't work out, so it's
in Seattle instead.
-Chris
--~--~-~--~~~---~--~~
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: Google test automation conference

2008-10-22 Thread Chris



On Oct 21, 4:57 pm, "Paul Rogers" <[EMAIL PROTECTED]> wrote:
> Is any one going to this? I will be there.

I'll be there.
Nice, I don't think I've seen you since, umm, the Denver airport in
umm, 2006 or so?
-Chris
--~--~-~--~~~---~--~~
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: firefox2.0 and jssh

2008-10-13 Thread Chris



On Oct 13, 7:39 am, "Angrez Singh" <[EMAIL PROTECTED]> wrote:
> I am not sure if that works on Mac. As I don't have anything to test it
> here. Need to find out a way to do that in Mac.

I've had this working on Mac in the past.  But finding (or compiling
yourself) the correct jssh was troublesome.   Google is your
friend.

Somewhere in the archives of this list is a link to the correct jssh
binary that will work on Mac.  Hopefully it's still around...

... or maybe you FireWatir people could provide a canonical jssh
binary for each platform, including Mac?  That would have been helpful
when I was fooling with this, a little more than a year ago.

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