[wtr-general] Watir 1.6.5 and Ruby 1.9.1

2009-11-30 Thread aidy lewis
Hi, I am trying to install Watir 1.6.5 on Ruby 1.9.1, but this is the issue. I am encountering: E:\gem install watir Building native extensions. This could take a while... ERROR: Error installing watir: ERROR: Failed to build gem native extension. E:/Ruby19/bin/ruby.exe extconf.rb

Re: [wtr-general] Re: execute js in IE8

2009-11-26 Thread aidy lewis
{ |zone| toggle_javascript_capability(false, zone) } Need to close and re-start the browser though Aidy 2009/11/25 aidy lewis aidy.le...@googlemail.com: Ethan, Same thing, but good suggestion. I am not even sure of the differences between eval and execScript. Cheers Aidy 2009/11/25 Ethan

[wtr-general] Re: execute js in IE8

2009-11-25 Thread aidy lewis
Ethan, Same thing, but good suggestion. I am not even sure of the differences between eval and execScript. Cheers Aidy 2009/11/25 Ethan notet...@gmail.com: Do you get the same thing if you try browser.document.parentWindow.eval(whatever) ? On Wed, Nov 25, 2009 at 13:26, aidy lewis

[wtr-general] Re: Delete cookies in Firewatir

2009-11-19 Thread aidy lewis
#remove_cookie(opts) where opts is a hash of :domain and :name Browser#remove_all_cookies or Browser#remove_cookie(:all)? Thanks, Angrez On Wed, Nov 18, 2009 at 10:16 PM, aidy lewis aidy.le...@googlemail.com wrote: Ethan 2009/11/18 aidy lewis aidy.le...@googlemail.com: Going to put the URI

[wtr-general] Re: Delete cookies in Firewatir

2009-11-19 Thread aidy lewis
How about this browser.get_cookies(:domain = 'domain') browser.get_cookies(:all) browser.remove_cookies(:domain = 'domain') remove_cookies(:all) ? Aidy 2009/11/19 aidy lewis aidy.le...@googlemail.com: Angrez et al It is unlikely that we would want to get all cookies, but get cookies

[wtr-general] Re: Delete cookies in Firewatir

2009-11-18 Thread aidy lewis
the cookiemanager for? Bret Angrez Singh wrote: Yes, I have seen that preety interesting stuff. Need to see what all we can make into FireWatir. On Tue, Nov 17, 2009 at 4:57 PM, aidy lewis aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com wrote:     have you seen this by Matt

[wtr-general] Re: Delete cookies in Firewatir

2009-11-17 Thread aidy lewis
that its consistent with IE and FF. - Angrez On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis aidy.le...@googlemail.com wrote: Angrez, Have you included cookie manipulation methods in FireWatir yet? If not I was think of using the Mozilla Classes https://developer.mozilla.org/en/Code_snippets

[wtr-general] Re: Delete cookies in Firewatir

2009-11-17 Thread aidy lewis
these methods there. - Angrez On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis aidy.le...@googlemail.com wrote: Are you going to take this up then, otherwise I can do it, if you provide your preferred method names. Not sure how we are going to do it in Watir though. Aidy 2009/11/17 Angrez Singh

[wtr-general] Re: Watir Help

2009-11-11 Thread aidy lewis
This missing 'a's were a problem with an older version of Cucumber and the parser on win32. This is an old example I wrote some time ago http://code.google.com/p/cucumber-and-watir Aidy 2009/11/10 Wesley Chen cjq@gmail.com: That's funny. Thanks. Wesley Chen. For life, the easier, the

[wtr-general] Re: Working on Chrome watir

2009-11-07 Thread aidy lewis
Sai, Jarib, Would it not be an idea to put Chrome and Firewatir on top of WebDriver, to avoid duplication of browser access methods with all that entails? Aidy 2009/11/7 sai saidesertrose2...@gmail.com: Sorry for the delay guys... I am still working on the fix. Got delayed in setting up

[wtr-general] Re: Slightly OT: using two ie objects for execScript

2009-11-04 Thread aidy lewis
. the second is the #ie method of Watir::IE, which returns the win32ole object representing the browser. On Tue, Nov 3, 2009 at 10:43, aidy lewis aidy.le...@googlemail.com wrote: Hi, Does anyone know why I need to use two ie objects here? http://pastie.org/681645 http://pastie.org/681647 Aidy

[wtr-general] Slightly OT: using two ie objects for execScript

2009-11-03 Thread aidy lewis
Hi, Does anyone know why I need to use two ie objects here? http://pastie.org/681645 http://pastie.org/681647 Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send

[wtr-general] OT: Syntax highlighing for Cucumber features in Notepad++

2009-10-29 Thread aidy lewis
The file is attached --~--~-~--~~~---~--~~ 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:

[wtr-general] IE8 Developer tools

2009-10-28 Thread aidy lewis
IE8 has Developer tools, so we do not need to download extraneous tools. Press F12 and then clicking on the far-left hand arrow will allow you to select and read HTML elements Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

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

2009-10-28 Thread aidy lewis
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

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

2009-10-28 Thread aidy lewis
What file and methods should I be looking at? Thanks Aidy 2009/10/28 Angrez Singh ang...@gmail.com: Its in my fork on github. You can have a look. - Angrez On Wed, Oct 28, 2009 at 7:31 PM, aidy lewis aidy.le...@googlemail.com wrote: Angrez, Is that code on github though? Aidy 2009

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

2009-10-28 Thread aidy lewis
Sorry Angrez But where is the getWindows method coming from? Aidy 2009/10/28 Angrez Singh ang...@gmail.com: firefox.rb file contains code for basic authentication. On Wed, Oct 28, 2009 at 10:42 PM, aidy lewis aidy.le...@googlemail.com wrote: What file and methods should I be looking

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

2009-10-27 Thread aidy lewis
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

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

2009-10-27 Thread aidy lewis
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

[wtr-general] Re: cannot register window class in IE8

2009-10-22 Thread aidy lewis
Hi Bret, I am getting an unspecified WIN32OLERuntimeError. Not much information, I know. Aidy 2009/10/22 Bret Pettichord b...@pettichord.com: I haven't heard of this. Can your provide a stack trace and complete error message? Bret aidy lewis wrote: Hi, Has anyone received 'cannot

[wtr-general] Re: cannot register window class in IE8

2009-10-22 Thread aidy lewis
-5466c779b85dcat=lang=cr=sloc=p=1 In a nutshell, three potential options: 1. Ctrl-F5 2. Delete temporary internet files 3. Disable Fireshot plugin in FF and try again On Thu, Oct 22, 2009 at 11:38 AM, aidy lewis aidy.le...@googlemail.com wrote: Hi Bret, I am getting an unspecified

[wtr-general] Advanced Firewatir

2009-10-20 Thread aidy lewis
Matt Ellis has blogged has experiences with the jssh, Mozilla classes and FireWatir http://tinyurl.com/ykarwvv Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send

[wtr-general] Re: Disable java script of firefox through Ruby+watir

2009-10-15 Thread aidy lewis
Using the mozilla component classes you could set javascript.enabled to equal true Aidy 2009/10/15 arihan sinha arihan.si...@googlemail.com: Hi All, Is there any way to disable java script of IE/Firefox through ruby+watir? Thanks Arihan

[wtr-general] Re: Disable java script of firefox through Ruby+watir

2009-10-15 Thread aidy lewis
}); $jssh_socket.send(#{jssh_command}\n, 0) read_socket() end @browser.set_bool_preference(javascript.enabled, false) Aidy Aidy 2009/10/15 aidy lewis aidy.le...@googlemail.com: Using the mozilla component classes you could set javascript.enabled to equal true Aidy 2009/10/15 arihan sinha

[wtr-general] Re: how to ALT+Shift+T ?

2009-10-15 Thread aidy lewis
If you are trying to change IE options would it not be better to alter the registry settings? Aidy 2009/10/15 Paul Rogers paul.rog...@shaw.ca: you'll have to use autoit. This page has the key combinations http://www.autoitscript.com/autoit3/docs/functions/Send.htm Paul On Thu, Oct 15,

[wtr-general] Re: Does anyone have examples of using rspec with safariwatir

2009-10-14 Thread aidy lewis
Hi, If there were better examples, then I wouldn't have to re-write them. Your comments should have been taken off-line. Aidy On 13/10/2009, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Oct 9, 2009 at 1:46 PM, aidy lewis aidy.le...@googlemail.com wrote: I have written a new

[wtr-general] Re: Does anyone have examples of using rspec with safariwatir

2009-10-14 Thread aidy lewis
Hi, If there were better examples, then I wouldn't have to re-write them. Your comments should have been taken off-line. Aidy On 13/10/2009, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Oct 9, 2009 at 1:46 PM, aidy lewis aidy.le...@googlemail.com wrote: I have written a new

[wtr-general] Re: Does anyone have examples of using rspec with safariwatir

2009-10-09 Thread aidy lewis
Hi, Cucumber or Rspec? I will add to zeljko's link today. The example doesn't even use matchers. Richard Downie has a Waitr\Cucumber example here: http://wiki.github.com/aslakhellesoy/cucumber/watircuke, but I don't agree with his approach. Aidy 2009/10/9 Željko Filipin

[wtr-general] Re: Does anyone have examples of using rspec with safariwatir

2009-10-09 Thread aidy lewis
I have written a new example here: http://wiki.openqa.org/display/WTR/RSpec Aidy 2009/10/9 aidy lewis aidy.le...@googlemail.com: Hi, Cucumber or Rspec? I will add to zeljko's link today. The example doesn't even use matchers. Richard Downie has a Waitr\Cucumber example here: http

[wtr-general] Re: Watir 1.6.5.rc1 - release candidate available for testing

2009-10-09 Thread aidy lewis
Hi Charley 2009/10/5 Charley Baker charley.ba...@gmail.com: wrote: http://wiki.openqa.org/display/WTR/Development+Builds Would it not be an idea to install the gem(s) directly from github? Aidy --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Re: Platforms

2009-10-05 Thread aidy lewis
I am not so sure you can use Celerity through the standard Ruby MRI. Aidy 2009/10/5 Željko Filipin zeljko.fili...@wa-research.ch: I have created a new wiki page: http://wiki.openqa.org/display/WTR/Platforms Feel free to comment, edit, improve, fix bugs... Željko --

[wtr-general] Re: Platforms

2009-10-05 Thread aidy lewis
Hi, Does anyone know of a verified Windows Ruby 1.9.1 installer? Aidy 2009/10/5 Charley Baker charley.ba...@gmail.com: Watir in the github master should be working with 1.9.1. Jari made some fixes, so for Watir we should be good. The one dependency we do have on user-choices isn't working.

[wtr-general] Watir 1.7

2009-07-31 Thread aidy lewis
Hi Guys, Do we have a timeline on when Watir 1.7 will be released? Aidy --~--~-~--~~~---~--~~ 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

[wtr-general] api for ff 3.5?

2009-07-30 Thread aidy lewis
Hi, Is there a windows firefox jssh.xpi for 3.5? Aidy --~--~-~--~~~---~--~~ 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

[wtr-general] socket error

2009-06-10 Thread aidy lewis
Hi, Has anyone experienced this socket error with the jssh: An established connection was aborted by the software in your host machine. - recvfrom(2) And managed to solve it? -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis

[wtr-general] Watir Session @skillsmatter

2009-06-09 Thread aidy lewis
Ruby and Watir are now getting some traction in London... http://skillsmatter.com/event/agile-testing/utilising-watir-to-test-in-an-agile-environment -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis --~--~-~--~~~---~--~~ You received

[wtr-general] Re: WatirCraft LLC is closing

2009-06-04 Thread aidy lewis
Ironically Watir's easy-to-use API may have been WatirCraft's downfall Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to

[wtr-general] Re: example problem

2009-06-03 Thread aidy lewis
Chuck, Your comments are highly simplistic: We still have differences with list based indexes; Watir being one based and Firewatir zero based (as Watir wraps OLE and FireWatir, javascipt), the text representation of the HTML (browser.text), #click_no_wait, and to my knowledge parallelism. Aidy

[wtr-general] Re: forms in subframes - elements not found

2009-06-03 Thread aidy lewis
ff.frame(:index, 1).form(:name, lay0803234_src350a).select_list(:id, LOV6) .inspect Try :index, 0 Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to

[wtr-general] Re: Check div for null return

2009-06-03 Thread aidy lewis
def wait_for?(seconds=0) slept = 0 until yield || slept == seconds sleep 0.5 slept += 0.5 end yield end boolean = wait_for?(35) { @@ie.div(:text, 'Loading...').exists? } assert(boolean) #you may get more benefit from using Rspec or Cucumber Aidy 2009/6/3 Jer

[wtr-general] Re: Check div for null return

2009-06-03 Thread aidy lewis
. Is it simply a true or false? 2009/6/3 aidy lewis aidy.le...@googlemail.com  def wait_for?(seconds=0)   slept = 0   until yield || slept == seconds     sleep 0.5     slept += 0.5   end   yield  end boolean = wait_for?(35) { @@ie.div(:text, 'Loading...').exists? } assert(boolean) #you may

[wtr-general] Re: XPath and ñ

2009-06-03 Thread aidy lewis
As I side note I have replaced REXML with nokogiri which will greatly improve the speed of your IE tests (at a guess 3 - 5 times faster) http://github.com/aidylewis/watir/blob/467c42a079c6f0b3e78a187353e288f8e3787503/watir/lib/watir/ie-class.rb Aidy

[wtr-general] Re: Check div for null return

2009-06-03 Thread aidy lewis
2009/6/3 Jerry Lane lane...@gmail.com: Can I just use a simple if to do that thou? Something simple such as   if boolean = true     puts 'Test Passed'   else     puts 'Test Failed'   end xUnit saves you from writing your own assertions (as above). Although I believe it

[wtr-general] Re: forms in subframes - elements not found

2009-06-03 Thread aidy lewis
Hi Jason How then would you explain this? require 'rubygems' require 'watir' ['watir', 'firewatir'].each { | g | require g } ie = Watir::IE.new ff = FireWatir::Firefox.new [ie, ff].each { |b| b.goto(http://www.google.com;) } ff.table(:index, 1).rows[0].html ie.table(:index,

[wtr-general] Re: WATiR DSL I Have been working on...update

2009-05-05 Thread aidy lewis
Ruf, I quite like it, but I would wrap your assertions etc in Rspec and use their outputting\reporting. Aidy 2009/5/5 Ruf, Wadud wadud@capgemini.com: All, As I mentioned a few weeks back I have created a DSL for  WATiR, I call it the WATiR Scripting Langauge – WSL. I have been

[wtr-general] Re: WATiR DSL I Have been working on...update

2009-05-05 Thread aidy lewis
Ruf, I would also suggest you get rid of #start and #finish and use setup\teardown, Before\After, initialize\at_exit. Aidy 2009/5/5 aidy lewis aidy.le...@googlemail.com: Ruf, I quite like it, but I would wrap your assertions etc in Rspec and use their outputting\reporting. Aidy 2009/5

[wtr-general] Re: Stripping url

2009-05-04 Thread aidy lewis
or goto the command line ri String ri String#split Aidy 2009/5/4 Željko Filipin zeljko.fili...@wa-research.ch: On Fri, May 1, 2009 at 15:02, ash ashbr...@gmail.com wrote: I don't really know Ruby yet And if you want to know what can you do with strings in Ruby (for future reference):

[wtr-general] setting browser through rake

2009-04-27 Thread aidy lewis
Hi, Has anyone managed to set the browser through Rake? rake require 'cucumber/rake/task' require 'watir' Cucumber::Rake::Task.new(default, features) do |t| t.cucumber_opts = -f TeamCityFormatter -f html --out story-results.html end task :ff do ENV['ENVIRONMENT']='systest'

[wtr-general] Re: Load Error while running feature in cucumber (watir/cucumber)

2009-04-03 Thread aidy lewis
require 'cucumber', not 'spec' or install full rspec. Aidy On 02/04/2009, Bret Pettichord b...@pettichord.com wrote: Doesn't look like a Watir bug. pallavi shashidhar wrote: Hi, I have ruby 1.8.6 and watir 1.6.2 installed in my system . I have installed cucumber 0.2 and have

[wtr-general] autoit and CI

2009-04-02 Thread aidy lewis
Hi, Is anyone having any problems running autoit through CI? I am using interactive mode. Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to

[wtr-general] Re: Watir::Element#visible? not working

2009-03-23 Thread aidy lewis
-gene...@googlegroups.com] On Behalf Of aidy lewis Sent: 23 March 2009 14:26 To: watir-general@googlegroups.com Subject: [wtr-general] Re: Watir::Element#visible? not working require 'watir/contrib/visible' Aidy Capgemini is a trading name used by the Capgemini Group

[wtr-general] Re: post request

2009-03-23 Thread aidy lewis
From Ruby yes http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html Aidy On 23/03/2009, gtardini gtard...@gmail.com wrote: Hi all, first post! I wanted to know if it was possible to initiate a post request directly from watir ( or firewatir ). Thanks a lot in advance,

[wtr-general] Cucumber, Celerity FireWatir

2009-03-20 Thread aidy lewis
http://video.google.com/videoplay?docid=470645360297935233 Aidy --~--~-~--~~~---~--~~ 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

[wtr-general] Re: Watir in JRuby?

2009-03-18 Thread aidy lewis
You could run your tests through Celerity which wraps HtmlUnit in a Watir API through JRuby Aidy On 17/03/2009, Jim Knowlton jknowlton...@gmail.com wrote: Does anyone know the status of porting Watir to JRuby? I saw some posts last year that indicated it was on the wish list, but that a

[wtr-general] Re: get attribute through xpath

2009-03-16 Thread aidy lewis
to address it, but offhand I'd start by asking if perhaps it's inside a frame or something? did you try using the IE developer toolbar to have a look at that item and see where it exists inside the DOM of the page? On Mar 14, 9:23 am, aidy lewis aidy.le...@googlemail.com wrote: Hi, I am unable

[wtr-general] get attribute through xpath

2009-03-14 Thread aidy lewis
Hi, I am unable to retrieve an attribute of the below HTML snippet through standard Watir methods a id=dtrSeriesRightsWindowAnchor href=http://site.co.uk/index.htm; title=Awaiting approval I have tried the following XPath

[wtr-general] Celerity, Cucumber and FireWatir

2009-02-17 Thread aidy lewis
Hi, I will be doing a talk on Celerity, Cucumber and FireWatir at SkillsMatter London, on March 9th: http://skillsmatter.com/event/ruby-on-rails/lrug-march Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[wtr-general] Re: Where to hold public training?

2009-02-13 Thread aidy lewis
Natasha, I am based in London: if we could get 5 or 6 people we could form a user-group. But there is also LRUG: http://lrug.org/ Aidy On 13/02/2009, Natasha Ranney itsn...@yahoo.co.uk wrote: Is it possible to have some in London? Not sure if there are any Watir users in London. Thanks,

[wtr-general] Re: How to get the data in a SQL 2005 database table with ruby?

2009-02-11 Thread aidy lewis
require 'dbi' module Databases class SQLServerConnection def initialize(server_name, db, user_name=nil, password=nil) @db = db if user_name.nil? or password.nil?

[wtr-general] Re: How to get the data in a SQL 2005 database table with ruby?

2009-02-10 Thread aidy lewis
This uses windows authentication, but get the idea require 'dbi' module Database class SQLServerConnection attr_reader :row def initialize(server_name, db) @db = db @dbh=DBI.connect(DBI:ADO:Provider=SQLOLEDB;Data Source=#{server_name};Intitial catalog...@db};Integrated

[wtr-general] Re: Unable to open IE window

2009-02-05 Thread aidy lewis
At a guess try updating your windows api gem Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: Hi! Recently installed ruby to use watir, and I get a strange error when I execute the steps in Watir in 5 minutes http://wiki.openqa.org/display/WTR/Watir+in+5+Minutes These are the steps I

[wtr-general] Re: Eclipse is displaying the execution summary

2009-02-05 Thread aidy lewis
Hi, For dynamic and duck typed languages I am not sure that you need and IDE. IDE's may be useful when you have got to build a lot of scaffold in languages like Java and C#. They also can be slow. I use: Notepad++ It's Explorer plugin And the command line

[wtr-general] Re: Retaining variables between tests in a thread-safe manner

2009-02-05 Thread aidy lewis
You could use a Singleton or pass your browser object around as a parameter. Aidy 2009/2/5 Justin Ko justin.t...@gmail.com: We are creating a smoke test for our web based application using the Test/Unit module in Ruby (v1.8.6) with Watir (v1.6.2). The smoke test would consist of a series

[wtr-general] Re: Unable to open IE window

2009-02-05 Thread aidy lewis
gem list -r win* gem update windows-api -y Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: How do I do that? On Feb 5, 12:36 pm, aidy lewis aidy.le...@googlemail.com wrote: At a guess try updating your windows api gem Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: Hi

[wtr-general] Re: Unable to open IE window

2009-02-05 Thread aidy lewis
This will work require 'watir' Watir::Browser.default = ie @browser ||= Watir::Browser.new Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: Hi! Thanks for answering so fast Aidy Unfortuneatly it still doesn't work =( (Going crazy soon...) /jasmin On Feb 5, 1:59 pm, aidy lewis

[wtr-general] Re: Unable to open IE window

2009-02-05 Thread aidy lewis
that Aidy mentioned before with those gems. Charley Baker blog: http://charleybakersblog.blogspot.com/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Thu, Feb 5, 2009 at 6:51 AM, aidy lewis aidy.le...@googlemail.com wrote: This will work require 'watir

[wtr-general] Re: browser seems to hang sporadically

2009-02-04 Thread aidy lewis
Hi Lisa, 2009/2/3 Lisa Crispin lisa.cris...@gmail.com: Has anyone seen this problem running Watir suites in Vista (64-bit) / IE7? We have a number of Watir suites, plus one big giant suite that includes all the others, the giant one takes maybe 3 hours to run. I ran this giant suite for 3+

[wtr-general] Re: Unable to install WATIR on VM client machine

2009-02-04 Thread aidy lewis
Try downloading the packaged gem and place on C: C: gem install -l watir 2009/2/4 Natasha itsn...@yahoo.co.uk: Hi All, I am having trouble installing WATIR on VM client machine. I have installed Ruby on the VM client machine. Now I have been trying to install Watir on it. I tried

[wtr-general] Re: Unable to install WATIR on VM client machine

2009-02-04 Thread aidy lewis
activesupport gem. I have been looking for that gem. Regards, Natasha On Feb 4, 3:04 pm, aidy lewis aidy.le...@googlemail.com wrote: Try downloading the packaged gem and place on C: C: gem install -l watir 2009/2/4 Natasha itsn...@yahoo.co.uk: Hi All, I am having trouble installing

[wtr-general] Re: Unable to install WATIR on VM client machine

2009-02-04 Thread aidy lewis
Does Natatsha need to copy the whole Ruby folder or will just the gems folder do? Aidy 2009/2/4 Bret Pettichord b...@pettichord.com: it is possible to simply copy over your ruby directory after you have installed watir on another machine. i've done this. bret aidy lewis wrote: Good

[wtr-general] Re: Unable to install watir

2009-02-04 Thread aidy lewis
Is this a proxy error? set HTTP_PROXY=http://[proxy]:port Aidy 2009/2/4 arunaprabha...@gmail.com arunaprabha...@gmail.com: Hi, 1.Downloaded ruby186-26.exe 2.Installed it 3.got following error when im tried to install watir: C:\Documents and Settings\lagem update --system Updating

[wtr-general] Re: Unable to install WATIR on VM client machine

2009-02-04 Thread aidy lewis
. i've done this. bret aidy lewis wrote: Good point. Not sure if you can just copy over your gem folder. Or create the VM after you have installed your test environment Aidy 2009/2/4 Natasha itsn...@yahoo.co.uk: Thanks Aidy. I have tried doing that. Its keeps prompting me to install

[wtr-general] Re: NoMethodError: undefinied method 'goto' for # Watir::IE:0x3294480

2009-02-03 Thread aidy lewis
#How about this require 'watir' class Browser def initialize @browser ||= Watir::IE.new @browser.speed = :zippy @browser.bring_to_front @browser.maximize end def close @browser.close puts we have closed the browser end #watir methods not in Browser fall into

[wtr-general] Re: unit test load order

2009-02-03 Thread aidy lewis
Unit tests should be independent. I don't think we can make the same assumption about business facing tests. This is another reason why I believe xUnit to be an inadequate narrative for Story Testing. However, if I remember correctly Bret wrote something to re-order Test::Unit methods. Aidy On

[wtr-general] Re: NoMethodError: undefinied method 'goto' for # Watir::IE:0x3294480

2009-02-02 Thread aidy lewis
What is the purpose of the BrowserFactory class? Has not Watir got its own 'factory' in Common Watir? Aidy On 02/02/2009, ab.ostrow...@gmail.com ab.ostrow...@gmail.com wrote: Hi there! def setup @browser = Wayn::BrowserFactory.create @user = Wayn::User.new(@browser)

[wtr-general] Re: NoMethodError: undefinied method 'goto' for # Watir::IE:0x3294480

2009-02-02 Thread aidy lewis
them through it on this list. Aidy On 02/02/2009, aidy lewis aidy.le...@googlemail.com wrote: What is the purpose of the BrowserFactory class? Has not Watir got its own 'factory' in Common Watir? Aidy On 02/02/2009, ab.ostrow...@gmail.com ab.ostrow...@gmail.com wrote: Hi

[wtr-general] Re: NoMethodError: undefinied method 'goto' for # Watir::IE:0x3294480

2009-02-02 Thread aidy lewis
I meant to say: Pushing a free flowing language (e.g. English) into objects ... Aidy On 02/02/2009, aidy lewis aidy.le...@googlemail.com wrote: And your class also shows leakage: http://en.wikipedia.org/wiki/Leaky_abstraction Pushing a free flowing language (e.g. English) - in my

[wtr-general] Re: ie.text.include?

2009-02-01 Thread aidy lewis
if you use Rspec, your verification could be a little more readable: require 'rspec' ie.text.should include(whatever) Aidy On 28/01/2009, Mark Anderson mander...@drillinginfo.com wrote: Oh, yes, I'm aware of irb. I use it in combination with SciTE. In fact, I used it to go through

[wtr-general] Ruby\Watir Contract Tester required London

2009-01-30 Thread aidy lewis
Hi, We have a 3 month contract being offered in a large media company in West London. We use Watir and Cucumber Some .Net experience would also be handy. Give me an e-mail off-line if you are interested. Aidy --~--~-~--~~~---~--~~ You received this message

[wtr-general] Re: Including watir in ruby program

2009-01-29 Thread aidy lewis
Hi, What do you get with this? gem list --local watir and this? require 'rubygems' require 'watir' test_site = http://www.google.com/; ie=Watir::IE.new ie.goto test_site Aidy On 29/01/2009, malar malar.je...@gmail.com wrote: Hi, I successfully Installed Ruby 186.26 and

[wtr-general] Re: Including watir in ruby program

2009-01-29 Thread aidy lewis
Hi, Not sure. Trying taking out require 'rubygems'. Otherwise 'gem update watir -y' Are you on Windows? Aidy On 29/01/2009, malar b malar.je...@gmail.com wrote: hi, c:/gem list --local watir this code Results ***LOCAL GEMS*** watir1.6.2 Automated Tool for web application if i run

[wtr-general] Rspec beta book

2009-01-29 Thread aidy lewis
http://www.pragprog.com/titles/achbd/the-rspec-book Aidy --~--~-~--~~~---~--~~ 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,

[wtr-general] exception on an exists?

2009-01-29 Thread aidy lewis
Hi, Has anyone received an exception on object.exists? i = 0 until browser.link(:text, /Delete Asset/).exists? or i = 10 browser.link(:text, /Refresh/).click sleep 5 end This: 'browser.link(:text, /Delete Asset/).exists?' should be returning true of false, but is

[wtr-general] Re: exception on an exists?

2009-01-29 Thread aidy lewis
Please forgive me for being stupid i == 10 not i = 10 Aidy On 29/01/2009, aidy lewis aidy.le...@googlemail.com wrote: Hi, Has anyone received an exception on object.exists? i = 0 until browser.link(:text, /Delete Asset/).exists? or i = 10 browser.link(:text, /Refresh

[wtr-general] Re: Page load time script

2009-01-28 Thread aidy lewis
Natasha, There easiest way to do this is to use BadBoy and JMeter. If you need help with this drop me a mail off-line. Aidy On 28/01/2009, Natasha itsn...@yahoo.co.uk wrote: Hello All, Am writing a script to find the load time for certain web pages. I tried it in a way that my

[wtr-general] Re: Integration with Rally

2009-01-27 Thread aidy lewis
Hi Richard 2009/1/27 Richard Lawrence rslawre...@gmail.com: A Cucumber editor is one of the things on my list of projects. I could see that making Cucumber + Watir an easy sell for customer acceptance tests. Not sure when I'll actually start on it, though. Richard I understand that you

[wtr-general] unknown property or method `toString' when using xpath

2009-01-22 Thread aidy lewis
Hi, Has anyone received this? unknown property or method `toString' HRESULT error code:0x8000 Catastrophic failure When using xpath:? browser.image(:xpath, //*...@id='ctl00_mainContent_TcabControl1_CreateClipControl1_imgbtnSave']).click The method executes though. Thanks Aidy

[wtr-general] Re: Win 32 apps

2009-01-22 Thread aidy lewis
On 22/01/2009, John Fitisoff jfitis...@yahoo.com wrote: There's a recent Ruby book that discusses some automation techniques, think it has 'agile testing' in the title (but unfortunately can't remember the name of it right now).

[wtr-general] Re: using a table cell variable

2009-01-20 Thread aidy lewis
2009/1/17 wesley chen cjq@gmail.com: Try : row = checkbox_id.match(/\d\d/).to_i row = checkbox_id.match(/\d\d/).to_s.to_i Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to

[wtr-general] unknown property or method `eval'

2009-01-19 Thread aidy lewis
Hi, Could anyone tell why I would receive this error unknown property or method `eval' HRESULT error code:0x80020006 Unknown name. (WIN32OLERuntimeError) with this line browser.document.parentWindow.eval('canPlayFlash').should == true browser is the Watir object

[wtr-general] using a table cell variable

2009-01-16 Thread aidy lewis
Hi, Has anyone had problems using a variable in the cell array? checkbox_id = ingest.find_enabled_checkbox(Search_ItemDetail_SpoolGrid).id row = checkbox_id.match(/\d\d/) browser.table(:id, /Search_ItemDetail_SpoolGrid/)[row][3].text This is the stack trace undefined method `-'

[wtr-general] Re: overriding javascript

2009-01-08 Thread aidy lewis
Hi Tony, Certainly works, even though I have changed #click_no_wait to #click. I think we need to put this example in the js pop-up wiki and we need an example for alerts as well. For Firewatir you could re-open the FireWatir class and use #$jssh_socket.send class FireWatir::Firefox def

[wtr-general] watir trunk

2009-01-08 Thread aidy lewis
Hi, Could someone please give me the path to the new Watir trunk ( I understand it has moved from OpenQa) Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email

[wtr-general] Re: overriding javascript

2009-01-08 Thread aidy lewis
The trouble however with this method is that we will never know if it executes the js or not or does what it is supposed to do. Aidy 2009/1/8 aidy lewis aidy.le...@googlemail.com: Hi Tony, Certainly works, even though I have changed #click_no_wait to #click. I think we need to put

[wtr-general] Re: overriding javascript

2009-01-05 Thread aidy lewis
) ie.maximize ie.document.parentWindow.execScript(window.confirm=function(){return true;}) ie.frame(:name, view).button(:value, Display a confirm box).click_no_wait Thanks, Jagdeep On Jan 4, 3:44 am, aidy lewis aidy.le...@googlemail.com wrote: Hi Charley, Thanks for the advice but I am stilling

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

2009-01-04 Thread aidy lewis
Hi Chris, 2009/1/4 Chris christopher.mcma...@gmail.com: Yes, but last I heard the implementations of Ruby in the JVM (JRuby, etc) are getting pretty robust. My argument would be do we really need a JVM? Do we need Java libraries? Are JVM's optimised for dynamic languages? Does it matter? As

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

2009-01-03 Thread aidy lewis
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

[wtr-general] Re: FireWatir Installation

2008-12-29 Thread aidy lewis
Hi Bret, 2008/12/29 Bret Pettichord b...@pettichord.com: It is good that you are doing this. Suggestions. If target is Windows + Mac + Linux 1. gem install firewatir I was thinking about this: can we still gem install watir on a Mac and GNU\Linux even though classic Watir may not run?

[wtr-general] FireWatir Installation

2008-12-28 Thread aidy lewis
Hi, Can anyone please have a quick look at this to see if it is accurate? http://github.com/aslakhellesoy/cucumber/wikis/setting-up-firewatir I am explicitly using the word FireWatir because: 1. Many people still think Watir is just Windows and IE 2. Many of the Rspec guys use Macs and\or

[wtr-general] persistant 'about:blank' window on Vista.

2008-12-27 Thread aidy lewis
Hi, I am not currently at home, so I am on a Vista machine. Has anyone seen a persistant 'about:blank' ie window on Vista? require 'watir' Watir::Browser.default = ie browser = Watir::Browser.new browser.goto(www.gmail.com) (left with two ie windows: about:blank and gmail) Aidy

  1   2   >