[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 Unknown
  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 `main'
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 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] 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 charley.ba...@gmail.com 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 christopher.mcma...@gmail.com

  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] 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 ang...@gmail.com 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 jazzezr...@gmail.com 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 notet...@gmail.com 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 aidy.le...@googlemail.comwrote:

  The Firefox browser is completly scriptable. I would suggest looking
  at the Mozilla js classes.

  2009/10/27 Chris christopher.mcma...@gmail.com:

   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 aed...@gmail.com wrote:
   This doesn't really solve the problem.

   On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis 
  aidy.le...@googlemail.comwrote:

Can you not set your trusted uri's in about:config

network.automatic-ntlm-auth.trusted-uris ?

Aidy

2009/10/27 Aedorn Varanis aed...@gmail.com:
 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 ang...@gmail.com 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 aed...@gmail.com wrote:
 This doesn't really solve the problem.

 On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis aidy.le...@googlemail.comwrote:



  Can you not set your trusted uri's in about:config

  network.automatic-ntlm-auth.trusted-uris ?

  Aidy

  2009/10/27 Aedorn Varanis aed...@gmail.com:
   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\ChrisMcirb
irb(main):001:0 exit

C:\Users\ChrisMcgem 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\ChrisMcgem 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=!-- HI --
... 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\ChrisMcgem 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\ChrisMcgem 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] 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=0B2VIeFg5LMV6NTZkMzM2MDktNDAyNC00ZTliLWI3MjAtYWE3OTJlYTk4YzA0hl=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 rahulbhai...@gmail.com 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 venkatesh...@gmail.com 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 johnvanarke...@gmail.com 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, 12:13 am, JArkelen johnvanarke...@gmail.com 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] Re: thinking about automation frameworks/harnesses

2009-04-28 Thread Chris McMahon



On Apr 28, 8:56 am, JArkelen johnvanarke...@gmail.com 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: 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] 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: 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] 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] Re: soa testing

2009-03-13 Thread Chris McMahon



On Mar 12, 8:31 am, Charley Baker charley.ba...@gmail.com 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

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: 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: Selenium 2.0 plans to drive native browsers

2009-01-04 Thread Chris



On Jan 3, 11:55 am, aidy lewis aidy.le...@googlemail.com 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
-~--~~~~--~~--~--~---