[wtr-general] setting browser through rake

2009-04-27 Thread aidy lewis
Hi, Has anyone managed to set the browser through 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' Watir::Bro

[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 : > On Fri, May 1, 2009 at 15:02, ash 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): > > http://www.ruby-doc.org/core/classes/Stri

[wtr-general] visible? method firefox

2009-05-05 Thread aidy lewis
Hi, Do we have a visible? method that works in Firefox? -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to

[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 : > 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 creating a lot of collat

[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 : > Ruf, > > I quite like it, but I would wrap your assertions etc in Rspec and use > their outputting\reporting. > > Aidy >

[wtr-general] override js confirm FireWatir

2009-06-02 Thread aidy lewis
Hi, I am trying to override a js confirm in FireWatir: $jssh_socket.send("window.confirm=function(){return true};\n", 0) read_socket Without success, has anyone managed to do this? Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed

[wtr-general] Re: override js confirm FireWatir

2009-06-03 Thread aidy lewis
Chuck 2009/6/2 Chuck van der Linden : > > Have you reviewed the general info on the types of popups and how to > handle them?  http://wiki.openqa.org/display/WTR/Pop+Ups > The aim was to override the js confirm function without using wsh or the autoit wrapper that is shown in these examples, whi

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

[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 >> >>  def wait_for?(seconds=0) >>   slept = 0 >>   until yield || slept == seconds >>     sleep 0.5 >>     slept += 0.5 >>   end >>   yield >>  end >> >> >> bool

[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 : > 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 to be of t

[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, 1).rows[0

[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 watir-general@googlegroups.

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

[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] 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, pleas

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

[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 : > I have created a new wiki page: > > http://wiki.openqa.org/display/WTR/Platforms > > Feel free to comment, edit, improve, fix bugs... > > Željko > -- > http://watirpodcast.com/ > > > > > --~--

[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 : > 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. Talked to Jari on Sat

[wtr-general] Re: Platforms

2009-10-05 Thread aidy lewis
me it's worth taking a look at for > experimentation, helping out with the project and/or looking at changes and > potential compatibility issues. > > hth, > > Charley Baker > blog: http://blog.charleybaker.org/ > Lead Developer, Watir, http://wtr.rubyforge.org > QA Architect

[wtr-general] Re: javascript popup handler times out if there is no pop up

2009-10-07 Thread aidy lewis
You could overwrite the the pop-up with something like: browser.document.parentWindow.execScript("window.confirm=function(){return true}"); browser.document.parentWindow.execScript("window.alert=function(){return true}"); browser.document.parentWindow.execScript("window.

[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 : > On Fri, Oct 9, 2009

[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 : > 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 he

[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 : 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 subscribed to the Google

[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 wrote: > On Fri, Oct 9, 2009 at 1:46 PM, aidy lewis > wrote: >> I have written a new example here: >> http://wiki

[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 wrote: > On Fri, Oct 9, 2009 at 1:46 PM, aidy lewis > wrote: >> I have written a new example here: >> http://wiki

[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 : > Hi All, > > Is there any way to disable java script of IE/Firefox through ruby+watir? > > Thanks > > Arihan > > > > > > --~--~-~--~~~---~--~~ You

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

2009-10-15 Thread aidy lewis
lPref(\"#{key}\", #{value});" $jssh_socket.send("#{jssh_command}\n", 0) read_socket() end @browser.set_bool_preference("javascript.enabled", false) Aidy Aidy 2009/10/15 aidy lewis : > Using the mozilla component classes you could set javascript.e

[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 : > 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, 2009 at 10:36 AM,

[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] cannot register window class in IE8

2009-10-21 Thread aidy lewis
Hi, Has anyone received 'cannot register window class' errors when running Watir tests in IE8? 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-

[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 : > > I haven't heard of this. Can your provide a stack trace and complete > error message? > > Bret > > aidy lewis wrote: >> Hi, &

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

2009-10-22 Thread aidy lewis
&cat=&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 > wrote: >> >> Hi Bret, >>

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

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

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

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

[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 : > Its in my fork on github. You can have a look. > - Angrez > > On Wed, Oct 28, 2009 at 7:31 PM, aidy lewis > wrote: >> >> Angrez, >> >> Is that code on github though? &

[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 : > firefox.rb file contains code for basic authentication. > > On Wed, Oct 28, 2009 at 10:42 PM, aidy lewis > wrote: >> >> What file and methods should I be looking at?

[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] 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] Re: Slightly OT: using two ie objects for execScript

2009-11-04 Thread aidy lewis
Watir::IE. 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 wrote: >> >> Hi, >> >> Does anyone know why I need to use two ie objects here? >>

[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 : > > Sorry for the delay guys... I am still working on the fix. Got delayed > in setting up the environment in my new b

[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 : > That's funny. > > Thanks. > Wesley Chen. > For life, the easier, the better. > >

[wtr-general] Delete cookies in Firewatir

2009-11-17 Thread aidy lewis
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/Cookies Thanks Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribe

[wtr-general] Re: Delete cookies in Firewatir

2009-11-17 Thread aidy lewis
istent with IE and FF. > > - Angrez > > On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis > wrote: >> >> Angrez, >> >> Have you included cookie manipulation methods in FireWatir yet? >> >> If not I was think of using the Mozilla Classes >> >>

[wtr-general] Re: Delete cookies in Firewatir

2009-11-17 Thread aidy lewis
there. > > - Angrez > > On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis > 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 Wat

[wtr-general] Re: Delete cookies in Firewatir

2009-11-18 Thread aidy lewis
gt; >> I've never used it. I would like to hear from some people who have. What >> functionality do you use the cookiemanager for? >> >> Bret >> >> Angrez Singh wrote: >> > Yes, I have seen that preety interesting stuff. Need to see what all >&

[wtr-general] Re: Delete cookies in Firewatir

2009-11-18 Thread aidy lewis
, 2009 at 07:15, Angrez Singh wrote: >> >> Aidy, >> >> You can go ahead and write it. I'll write the corresponding methods in >> Watir. >> >> -Angrez >> >> On Wed, Nov 18, 2009 at 3:56 PM, aidy lewis >> wrote: >>> >>>

[wtr-general] Re: Delete cookies in Firewatir

2009-11-18 Thread aidy lewis
Ethan 2009/11/18 aidy lewis : > Going to put the URI in, for #read_cookies or something > > 2009/11/18 Ethan : >> That seems to be lacking the URI to set the cookie on. Would the method just >> infer that from the current location of the browser, or should that be be >&g

[wtr-general] Re: Delete cookies in Firewatir

2009-11-19 Thread aidy lewis
or if not supplied > > Browser#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 > wrote: >> >> Etha

[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 : > Angrez et al > > It is unlikely that we would want to get all cookies, but

[wtr-general] execute js in IE8

2009-11-25 Thread aidy lewis
Hi, I am trying to execute some js in IE8: browser.ie.document.parentWindow.execScript("window.confirm=function(){return true}"); However, I am getting an 'Access denied' error when I have scripting allowed in my IE settings and I am on the same domain as the application server. Aidy --~--~-

[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 : > Do you get the same thing if you try > browser.document.parentWindow.eval(whatever) ? > > On Wed, Nov 25, 2009 at 13:26, aidy lewis wro

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

2009-11-26 Thread aidy lewis
#js off (0..4).each { |zone| toggle_javascript_capability(false, zone) } Need to close and re-start the browser though Aidy 2009/11/25 aidy lewis : > Ethan, > > Same thing, but good suggestion. > > I am not even sure of the differences between eval and execScrip

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

Re: [wtr-general] Watir 1.6.5 and Ruby 1.9.1

2009-11-30 Thread aidy lewis
y done, this topic had been discussed > on many other forums as well > > Karim Rayani > > On Mon, Nov 30, 2009 at 6:37 PM, aidy lewis > wrote: >> >> Hi, >> >> I am trying to install Watir 1.6.5 on Ruby 1.9.1, but this is the >> issue. I am encoun

Re: [wtr-general] Watir 1.6.5 and Ruby 1.9.1

2009-11-30 Thread aidy lewis
Hi, As @Jarib pointed out, I need to unzip the devkit into C:\Ruby19. Thanks Aidy 2009/11/30 aidy lewis : > Hi, > > I can install Watir straight > > gem install watir --ignore-dependencies > > I think the problem has something to do with the win32 gems > > Aidy

[wtr-general] Install Wiki includes Ruby 1.9.1

2009-11-30 Thread aidy lewis
http://wiki.openqa.org/display/WTR/Install+Ruby 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 read the following guidelines: http://wiki.openqa.

[wtr-general] Re: Open-source in test automation

2008-10-07 Thread aidy lewis
alex, On 07/10/2008, Pete Dignan <[EMAIL PROTECTED]> wrote: > > Alex - if you can wait a few months, Watircraft (www.watircraft.com) > is starting work on a framework using RSpec (rspec.info), designed for > use with Watir, that we intend to open-source. It should be available > in late Dece

[wtr-general] Re: HOW TO IMPROVE THE EFFICIENCY OF DEVELOP THE WATIR CODE

2008-10-07 Thread aidy lewis
On 07/10/2008, bugs apple <[EMAIL PROTECTED]> wrote: > > I am very interesting in your code for learning the objects in discovery.rb, > but it does not work in my machine, and it work well in firewatir. > Have you the similar method code for the IE watir to discovery the objects > on page? Or cou

[wtr-general] Re: Bug Fix For Watir 1.5.6

2008-10-07 Thread aidy lewis
On 07/10/2008, bugs apple <[EMAIL PROTECTED]> wrote: > ie.text_field(:name => "test").set "abb", If you are just hooking onto one attribute use ie.text_field(:name, "test").set "abb" for > 1 ie.text_field(:name => "test", :id => "aidy").set "abb" or ie.text_field(:name => "test", :index=> 1).

[wtr-general] Re: How to locate the element with node(child node, father node) or directory attributes?

2008-10-07 Thread aidy lewis
> On Tue, Oct 7, 2008 at 5:16 AM, wesley chen <[EMAIL PROTECTED]> wrote: > > When I locate the element A, anchor = ie.document.getElementByTagName("A") how can I locate the element close to A with > node(child node, father node) or directory attributes? > anchor.getAttribute("title") anchor.getE

[wtr-general] if page loading

2008-10-07 Thread aidy lewis
Hi, Is there anything in the external api that will check to see if the page is currently loading? Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to wa

[wtr-general] Re: HOW TO IMPROVE THE EFFICIENCY OF DEVELOP THE WATIR CODE

2008-10-08 Thread aidy lewis
Hi, On 08/10/2008, bugs apple <[EMAIL PROTECTED]> wrote: > > Even if I go through the JAF code, but the discoveryobject.rb still does not > work in Watir Environment, maybe it was banded in FireWatir. > I will write something at weekend and put it on the wiki. Aidy --~--~-~--~~

[wtr-general] verify label text

2008-10-13 Thread aidy lewis
Hi, I need to verify a radio button text of 'MPEG 1' MPEG 1 However, I am unsure on how to hook onto the label other than text. I have tried xpath, without success. Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[wtr-general] Re: verify label text

2008-10-13 Thread aidy lewis
Željko 2008/10/13 Željko Filipin <[EMAIL PROTECTED]>: > On Mon, Oct 13, 2008 at 3:06 PM, aidy lewis <[EMAIL PROTECTED]> > wrote: >> I need to verify a radio button text of 'MPEG 1' > > Don't you just _love_

[wtr-general] Re: Outlook recommendations

2008-10-15 Thread aidy lewis
Hi Moochie, On 15/10/2008, Moochie <[EMAIL PROTECTED]> wrote: > > I've got to automate a test script that opens outlook and emails a > message to our application. Then I verify the email appears within > the application. > > Has anyone done any scripting agains outlook? > > Does anyone have

[wtr-general] Re: Any good conferences this year about watir/ruby/rspec?

2008-10-16 Thread aidy lewis
juuser , 2008/10/16 juuser <[EMAIL PROTECTED]>: > > Hello. > > Sorry for this little offtopic question, but I was wondering if anyone > happens to know if there's any good conferences coming up about watir > or ruby or rspec in this year where I could attend to? > > Or any good website where such

[wtr-general] 'ruby-coding conventions'

2008-10-27 Thread aidy lewis
Hi, My boss has just asked for a Ruby coding conventions document. I don't know of one; I know there are Ruby idioms outlined in 'The Ruby Way', but not an official document. Does anyone have or know off a Ruby coding conventions document? Aidy --~--~-~--~~~---~--~-

[wtr-general] Re: Watir and TeamCity

2008-10-29 Thread aidy lewis
2008/10/29 al3kc <[EMAIL PROTECTED]>: > > Did anyone try to integrate Watir scripts with TeamCity continuous > build system? Is there way TeamCity to kick off Watir scripts > automatically? 1) Must run from interactive session 2) Team city rake runner is experimental 3) Fair a bit of setup (FireW

[wtr-general] OT: RubyMine

2008-11-04 Thread aidy lewis
http://www.jetbrains.com/ruby/index.html 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 read th

[wtr-general] Re: Can firewatir locate a link by url and index together?

2008-11-04 Thread aidy lewis
On 04/11/2008, Michael Hwee <[EMAIL PROTECTED]> wrote: > > > yes, next version of firewatir will support multiple attributes. > Michael did the original work on this, so maybe he could give you more information on what objects support multiple attributes and what do not? Aidy --~--~-~-

[wtr-general] Re: Can firewatir locate a link by url and index together?

2008-11-04 Thread aidy lewis
HI, 1.6.1 should contain some objects that we can use multiple attributes upon. http://jira.openqa.org/browse/WTR-233 Aidy 2008/11/4 Angrez Singh <[EMAIL PROTECTED]>: > As of now FireWatir doesn't support multiple attributes but you can do the > same using XPath query which is quite efficient

[wtr-general] already initialized constant ATTACHER

2008-11-10 Thread aidy lewis
Hi, Does anyone know why I would get this: Watir.rb:113: warning: already initialized constant ATTACHER ? Thanks Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group,

[wtr-general] Re: require firewatir in 1.6.2

2008-11-11 Thread aidy lewis
Hi Bret, On 11/11/2008, Bret Pettichord <[EMAIL PROTECTED]> wrote: > > aidy lewis wrote: > > Do we still need to require 'firewatir' in 1.6.2. > > Probably not, although it doesn't hurt. > > > And if not shall I > > 'gem unist

[wtr-general] require firewatir in 1.6.2

2008-11-11 Thread aidy lewis
Hi, Do we still need to require 'firewatir' in 1.6.2. And if not shall I 'gem unistall firewatir'? Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to wa

[wtr-general] Re: Very slow typing speed for firefox 2 : watir 1.6.2

2008-11-12 Thread aidy lewis
On 12/11/2008, Natasha Ranney <[EMAIL PROTECTED]> wrote: > Hi Charley, > > I found the same behavior. It was typing at 1 character per second. > > Firefox version: 2.0.0.17 > OS: Windows XP > JSSH: 0.9 > > It would be great if you can sort this out. > > Thanks, > Natasha > How are you running you

[wtr-general] (eval):1:in `klass': uninitialized constant Watir::IE

2008-11-13 Thread aidy lewis
Hi, I have written a simple test and I am attempting to use threads for multiple browsers require 'thread' threads = [] 3.times do threads << Thread.new {concurrency_test} end threads.each {|x| x.join} I am getting this error c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/brows

[wtr-general] Re: Watir 1.6.2 has been uploaded to Rubyforge

2008-11-14 Thread aidy lewis
Hi, On 13/11/2008, Bret Pettichord <[EMAIL PROTECTED]> wrote: > > We don't have a way to do this right now. However, the -p argument to > the gem install command allows you to specify a proxy server. > You can also set an HTTP proxy variable with this syntax in the command line: set HTTP_PRO

[wtr-general] Re: Should a logger be included in Watir?

2008-11-14 Thread aidy lewis
Hi, On 14/11/2008, Chuck vdL <[EMAIL PROTECTED]> wrote: > > OTOH I really would like to see some kind of fully integrated > 'logging' built into watir.. Somethig where I could just set a flag > to enable the logging and specify a few things like where to establish > the logging file, and the

[wtr-general] Re: Efficient code writing

2008-11-20 Thread aidy lewis
Natasha, I would try to stay away from using globals and use an instance variable instead or pass your browser object across classes. You could use traditional Rspec instead of Test::Unit - this will also give you a HTML report. There are examples on the Watir framework's page and on rsepc.info

[wtr-general] Re: Efficient code writing

2008-11-20 Thread aidy lewis
Natasha, On 20/11/2008, Natasha Ranney <[EMAIL PROTECTED]> wrote: > Hi Aidy, > > Thanks for your inputs. > > I am not very clear what can we use Rspec for? How is it better that > Test::Unit? Unit tests can be a way to describe your software system. Traditional Rspec is a layer above xUnit to ma

[wtr-general] Re: Handling assert failures effectively

2008-11-20 Thread aidy lewis
Hi, On 20/11/2008, Natasha Ranney <[EMAIL PROTECTED]> wrote: > Hi Tifanny, > > Thanks for sharing this link. > > One way to to get rid of the dirty console output is to completely redirect > it to a log file. These methods will prevent console output: def puts_off Kernel.module_eval %q{

[wtr-general] Re: Was(Re: Watir Podcast) Now(Ruby and .Net)

2008-11-24 Thread aidy lewis
Hi, > > For the other one, I was asked to automate an application that is written in > .Net. I'm just wondering if Paul or Bret have been working with the > individuals that have put together Watin. > > > > There doesn't appear to be a good form on Watin like the Watir forms, I'm > just curious o

[wtr-general] Re: Was(Re: Watir Podcast) Now(Ruby and .Net)

2008-11-25 Thread aidy lewis
Bret, On 25/11/2008, Bret Pettichord <[EMAIL PROTECTED]> wrote: > > I don't want to answer Paul's questions for him, but everyone should > understand that Watir is not for Ruby applications. It is for web > applications written in any language. It works great for .Net applications. > > Bret

[wtr-general] Re: Help required : Ruby code error

2008-11-26 Thread aidy lewis
Natasha, Lower case you 'I' in 'If' Also dont underscore your module names. What editor you using? Aidy On 26/11/2008, Natasha <[EMAIL PROTECTED]> wrote: > > Hi All, > > Please could you help me understand the fix for a syntax error in the > following code: > > >

[wtr-general] Re: Help required : Ruby code error

2008-11-27 Thread aidy lewis
Hi Natasha, Below is a list of editors On 27/11/2008, Natasha Ranney <[EMAIL PROTECTED]> wrote: > Hi Aidy/Charley/John, > > I am using Notepad to write my scripts and at times I use SciTE. Open-Source\Free Software * Netbeans Ruby: http://www.netbeans.org/downloads/index.html * Aptana Radrail

[wtr-general] Re: indexes with watir and firewatir

2008-11-28 Thread aidy lewis
Hi, An example of the problem below ['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, 1).rows[0].html Aidy On

[wtr-general] indexes with watir and firewatir

2008-11-28 Thread aidy lewis
Hi, Has anyone experienced index variations in Watir and FireWatir? This in FireWatir row.cell(:index, 0) Will be this in Watir row.cell(:index, 1) We think this is because Watir uses win32ole and FireWatir uses JavaScript. If this is a known and common bug, we will fix it. Aidy --~--~-

[wtr-general] Re: Click_no_wait for firewatir

2008-11-28 Thread aidy lewis
On 28/11/2008, al3kc <[EMAIL PROTECTED]> wrote: > > Hi all, > > Does click_no_wait method exists in firewatir? I didn't found it in > firewatir sorce files and it does not work in my tests. > I use firewatir - 1.2.1 Try something like this: def click_no_wait(object_name) $jssh_socket.sen

[wtr-general] Re: Unable to execute assert method through Module

2008-11-28 Thread aidy lewis
Natasha, Try putting this include in your module include Test::Unit::Assertions Bret wrote around this topic some time ago http://www.io.com/~wazmo/blog/archives/2006_05.html#000238 Aidy On 28/11/2008, Natasha <[EMAIL PROTECTED]> wrote: > > Hello All, > > I am unable to call the assert me

[wtr-general] browser.attach

2008-12-04 Thread aidy lewis
Hi, On the wiki I am informed that the browser.attach method is not supported in 1.6.2 What alternative method can I use to hook onto an existing browser? Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Wati

[wtr-general] Re: browser.attach

2008-12-05 Thread aidy lewis
Hi Bret, 2008/12/4 Bret Pettichord <[EMAIL PROTECTED]>: > > Where do you see that it is not supported? > http://wiki.seleniumhq.org/display/WTR/Browser.new "Compatibility Watir 1.6.2 does not support Browser.attach. This will be supported in a future version" Aidy --~--~-~--~~

[wtr-general] Browser class

2008-12-15 Thread aidy lewis
Hi, Can anyone tell me where the code is that uses the Browser class to wrap up the separate implementations of Watir and FireWatir? So we can do this: browser ||= Watir::Browser.new I tried re-opening the Browser class class Watir::Browser def add_some_addtional_methods end end But go

[wtr-general] Re: Browser class

2008-12-15 Thread aidy lewis
technically Watir::Browser is a > module, not a class. Thus: > >module Watir::Browser > def add_some_addtional_methods > > end > >end > > > However, if your intent is to add a method to both Watir::IE and > FireWatir::Firefox, this won'

[wtr-general] object map

2008-12-15 Thread aidy lewis
Hi, Is anyone still use an object map? def project_action_dropdown browser.select_list(:id, /ProjectListControl_ddlActions/) end project_action_dropdown.select("aaa") I found it highly cumbersome and timeconsuming and felt I didn't really need it when using RegEx. What are other's opinions?

[wtr-general] Re: object map

2008-12-15 Thread aidy lewis
> http://www.bitbucket.org/marekj/watirloo/src/tip/test/select_list_as_face_test.rb > > > marekj | Semantic Page Objects Automation > > Watirloo: Browser Page Helper Framework > http://www.bitbucket.org/marekj/watirloo/ > for IE, Firefox and others? > > > > > > On Mo

  1   2   >