[wtr-general] from a script go into irb

2012-03-29 Thread Paul Rogers
I think I remember that there used to be a way of leaving a running watir script and going into an irb session. I really cant remember how to do that, can some one remind me please? And, will this work with watir-webdriver? Thanks Paul -- Before posting, please read http://watir.com/support.

Re: [wtr-general] Re: type-ahead select lists

2011-05-26 Thread Paul Rogers
I have some code that I wrote about 3 years ago that does this. Ive put it here, but Im not sure it would be much use as it is because of the version of watir it was written against, and looking through it appears to be IE only. Im afraid I dont have time to help out with it, but if you can make

Re: [wtr-general] Re: Automating omniture tags

2010-06-10 Thread Paul Rogers
I think that omniture writes the tags in using javascript. It will probably show if you use firebug to examine the source Paul On Thu, Jun 10, 2010 at 12:39 PM, Adam Reed reed.a...@gmail.com wrote: #2 - is it possible the source you're looking at is only for a single frame/iframe, and not the

Re: [wtr-general] Recent Stack Overflow Questions Tagged Watir

2010-06-10 Thread Paul Rogers
I answered the proxy one: http://stackoverflow.com/questions/2970777/how-do-i-route-watir-through-a-proxy-pragmatically/3018927#3018927 On Thu, Jun 10, 2010 at 3:52 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: How to find a particular table cell in Watir

Re: [wtr-general] Re: fire_event onblur

2010-06-07 Thread Paul Rogers
you probably need this: browser.text_field(record['object'].to_sym, /#{record['name']}/).fire_event(onblur) On Mon, Jun 7, 2010 at 1:03 PM, niartseoj niarts...@gmail.com wrote: edited the post as previous was incorrectly formatted.. thanks On Jun 7, 2:46 pm, niartseoj niarts...@gmail.com

[wtr-general] anyone want to do a watir version?

2010-05-25 Thread Paul Rogers
http://seleniumexamples.com/blog/examples/play-pacman-with-selenium-2/ -- 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:

[wtr-general] job opening

2010-05-11 Thread Paul Rogers
Im looking for a testing person to join my team in Calgary. Local candidates only please. Drop me a resume if you are interested. Thanks Paul -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are

Re: [wtr-general] getElementsByTagName

2010-04-22 Thread Paul Rogers
browser.images.each do |img| puts img.alt end should do it I think On Thu, Apr 22, 2010 at 9:25 AM, thestumonkey thestumon...@gmail.comwrote: I am using getElementsByTagName in order to get a list of images on the page, and then checking the alt text against that in an excel spreadsheet.

Re: [wtr-general] Saving Javascript Files

2010-04-14 Thread Paul Rogers
I dont think its quite that simple, as the scripts and css can be relative paths, or use the base tag ( something like that anyway ) Ive recently written a spider to do some similar things, and the number of gotchas is surprisingly high. Paul On Wed, Apr 14, 2010 at 2:32 PM, Felipe Knorr Kuhn

Re: [wtr-general] Re: Error in IRB: LoadError: no such file to load -- watir

2010-04-07 Thread Paul Rogers
why dont you write up your experienes, we can probably put it on the wiki. Most of the docs are done by people who have been using watir for a while, and theyve done a pretty good job as volunteers. Paul On Wed, Apr 7, 2010 at 9:41 PM, John Williams jwil...@gmail.com wrote: Solution: In Ruby

Re: [wtr-general] Re: Help with Watir Page Checkers

2010-03-03 Thread Paul Rogers
the error checkers use the standard IE error page. Your app or web server can override these to display a different page to the user. Youd have to write your own checker for that. Paul On Wed, Mar 3, 2010 at 3:45 AM, yoggy samuelades...@googlemail.com wrote: Hi Marek, I did what you told me

Re: [wtr-general] NoMatchingWnidowFound Error..

2010-02-24 Thread Paul Rogers
does it work if you use /Google/ ( a regular expression) Some corporates customize the browser title bar, which may impact this Paul On Wed, Feb 24, 2010 at 9:40 AM, bobeym bobeymc...@gmail.com wrote: Hi, I'm getting NoMatchingWindowFound when i try to access an IE window in my

Re: [wtr-general] Re: IRB and Firewatir script

2010-02-18 Thread Paul Rogers
if it happens in irb ut not in a script, timing is quite likely the cause. Try adding sleep 1 between the lines Paul On Thu, Feb 18, 2010 at 10:32 AM, Tiffany Fodor tcfo...@comcast.net wrote: Hi! Are you getting an error message, or is nothing at all happening? Can you trigger the modal

Re: [wtr-general] Re: use verify instead of assert

2010-02-10 Thread Paul Rogers
you use @browser.link and not $browser as youve used elsewhere in your testcase Paul On Wed, Feb 10, 2010 at 2:08 PM, Matt thurman_m...@yahoo.com wrote: I am receiving the following error: 1) Error: test_a_order_now(TC_S001): NoMethodError: undefined method `link' for nil:NilClass

Re: [wtr-general] How to easily get button index?

2009-12-10 Thread Paul Rogers
i think the each is done by including enumberable ( http://ruby-doc.org/core/classes/Enumerable.html) module ( it was way back anyway), so any methods in the enumberable module should just work: ie.buttons.each_with_index do |button, i| puts index for bytton with id #{button.id} is #{ i + 1

[wtr-general] happy belated birthday watir.

2009-11-18 Thread Paul Rogers
If Im correct, watirs first public appearance was 5 years ago ( plus a few days as I forgot to send the email). Bret was teaching a class on test automation at StarWest, and I helped out. This was the first appearance of watir. During the class we found lots of bugs. Thanks to all the students

[wtr-general] Re: can not click a button

2009-11-04 Thread Paul Rogers
this uses an onmousedown event to execute the javascript. try ie.button(:id,PostButton).fire_event('onMouseDown') # case of this probably matters Paul On Wed, Nov 4, 2009 at 11:57 AM, jnxgn s...@jnxgn.cn wrote: I cannot click the button with the id of PostButton with the code:

[wtr-general] Re: How to get browser instance from inside an element?

2009-10-26 Thread Paul Rogers
can you explain why you need this? Paul On Mon, Oct 26, 2009 at 9:46 AM, Yuriy yuriy.chaba...@gmail.com wrote: Thanks a lot, Ethan! On Oct 26, 4:33 pm, Ethan notet...@gmail.com wrote: Unfortunately, there doesn't seem to be. I have run into this, and what I ended up doing was to iterate

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-26 Thread Paul Rogers
the 'register now' and the 'buy now' arent buttons. they look like buttons, but they are links. Use firebug to investigate the dom before posting here please. Paul On Mon, Oct 26, 2009 at 8:54 PM, abhisheksreepal abhisheksree...@gmail.comwrote: Thanks for the reply Ethan. I tried this puts

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-26 Thread Paul Rogers
the submit and reset buttons are also links Paul On Mon, Oct 26, 2009 at 9:23 PM, abhisheksreepal abhisheksree...@gmail.comwrote: Hi Paul, I am sorry. I should have added these comments. Just Navigate to Login screen.(By clicking Login link on top right corner) Please examine these two

[wtr-general] Re: How to get html meta details

2009-10-24 Thread Paul Rogers
try searching the list archives. Ive posted code to do it before. Paul On Sat, Oct 24, 2009 at 3:22 AM, Marlon marlonmoja...@gmail.com wrote: Hi please help how can I get/print the meta details for example in the code below, content title and name keywords I want to print title and

[wtr-general] Re: Team (was: Sai)

2009-10-22 Thread Paul Rogers
no, dont worry about making the change. Maybe if I do some commits I can work my way back up to active. On Thu, Oct 22, 2009 at 2:18 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 22, 2009 at 1:31 AM, Paul Rogers paul.rog...@shaw.ca wrote: until I read that I thought I

[wtr-general] Re: Sai

2009-10-21 Thread Paul Rogers
until I read that I thought I was still an active member of watir, even though I cant remember the last time I did a check in ;-( On Wed, Oct 21, 2009 at 5:18 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 8, 2009 at 7:07 AM, Bret Pettichord bpettich...@gmail.com wrote:

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

2009-10-15 Thread 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, Andrew andrew.d...@lthree.com wrote: I know this is probably easy. How do you send the key combination ALT- Shift-T to the

[wtr-general] Re: Capturing Java Script Errors

2009-10-14 Thread Paul Rogers
i tried this aqpproach a long time ago, and it didnt work if I remember. I have recollections of trying to see if the js error icon was there too. think in the end I just switched 'display js errors' on so the test would stop if there was an error. Paul On Wed, Oct 14, 2009 at 8:18 AM, Bret

[wtr-general] Re: Dwatir - Can this help running watir tests on remote machines?

2009-10-14 Thread Paul Rogers
first Ive heard of that project ( http://rubyforge.org/projects/dwatir/ ) Ive used watir remotely by using remote desktop. Paul On Wed, Oct 14, 2009 at 9:41 AM, Guy guy.kid...@gmail.com wrote: Hi All, Is there a way to run watir tests on remote machines (running few test suites in parallel

[wtr-general] Re: Issue with .click when selecting via id

2009-10-07 Thread Paul Rogers
there is probably some event tied to the element tat safariwatir doesnt fully implement. I dont know enough about safari watir to help any more than that though Paul On Wed, Oct 7, 2009 at 8:15 AM, QAguy qablogm...@gmail.com wrote: Hi. Thanks for the response. I know that safariwatir is

[wtr-general] Re: To check alignement of objects in a Page using Watir

2009-10-06 Thread Paul Rogers
If you really want to do this type of thing, id take a look at http://xbdiff.com I met Jeff, the creator of this about a year ago, and was amazed what he was trying to do. Paul On Tue, Oct 6, 2009 at 1:49 AM, Bill Agee billa...@gmail.com wrote: I believe there are ways to get the coordinates

[wtr-general] Re: Sai

2009-09-28 Thread Paul Rogers
You're a good writer, documentation is always in need of improvemnet. Paul On Mon, Sep 28, 2009 at 6:14 PM, Lisa Crispin lisa.cris...@gmail.comwrote: I'm in awe of anyone who contributes to open source tools. To me, the more recognition they get, the better. I am a guilty user of all these

[wtr-general] Re: Unable to find Items in Firefox

2009-08-19 Thread Paul Rogers
firefox is far more fussy about correct html than IE. try pasting the html into the w3c validator to make sure there are no structure errors. Paul On Wed, Aug 19, 2009 at 1:36 PM, Loft_Tester aaronr...@gmail.com wrote: I appologize if the text wraps on your screan, It did not when the entry

[wtr-general] Re: Testing Email

2009-08-10 Thread Paul Rogers
http://rubyforge.org/projects/rumbster/ works a treat! On Fri, Aug 7, 2009 at 8:35 PM, Darryl (gem dandy) Brown d-l-br...@roadrunner.com wrote: Hello Bret, I'm doing email testing on our web based monitoring cards. Currently using a tweaked version of the Python mock SMTP server -

[wtr-general] rutema test execution tool

2009-07-17 Thread Paul Rogers
has any one tried this? http://patir.rubyforge.org/rutema/index.html --~--~-~--~~~---~--~~ 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: Towards migrating to Watir.com

2009-06-22 Thread Paul Rogers
i asked around about the logo, but no one knew where it was. I just realised it might even be on one of my pcs here so I'll check in a bit. The graphics guy I work with will probably redraw it for me if I buy him lunch. I'll probably need a day or so to get the domain set up. Paul On Mon, Jun

[wtr-general] Re: Getting style information in FireFox

2009-06-12 Thread Paul Rogers
of that text_field. This is not working for me at all. I get an error message of SyntaxError: syntax error. I added the method right after the initialize method. I know you said that I may have to make modifications but i'm not even getting close right now On Jun 9, 5:10 pm, Paul Rogers

[wtr-general] Re: Towards migrating to Watir.com

2009-06-11 Thread Paul Rogers
http://watir001.wordpress.com/ - sucky header. Content much easier to find ( the graphic designer who I work with said that this one has landing points for the eye to act on ) the other one is hard to find stuff Are we still interested in using the logo that some one did for us? the wave thing in

[wtr-general] Re: Towards migrating to Watir.com

2009-06-11 Thread Paul Rogers
i thought there was something in svn, but I really cant be sure. Jonathan Kohl knew the person who created it, I'll send him an email and see if he has it Paul On Thu, Jun 11, 2009 at 4:36 PM, Alister Scott alister.sc...@gmail.comwrote: http://watir001.wordpress.com/- sucky header. Content

[wtr-general] Re: Getting style information in FireFox

2009-06-09 Thread Paul Rogers
this is what Ive used. Its hacked out of a bigger method, so may need some work cmd =document.defaultView.getComputedStyle( #{element_object} , null)[ '#{css_rule}' ];\n jssh_socket.send( cmd , 0 ) actual_val = read_socket() return actual_val I

[wtr-general] Re: override js confirm FireWatir

2009-06-03 Thread Paul Rogers
i think there is a 'no pop up' plug in for firefox, which deals with alert boxes, security pop ups etc. I did a quick google for it yesterday for an entirely different reason, and didnt find it, but I wasnt trying too hard. It might be another solution to this problem Paul On Wed, Jun 3, 2009 at

[wtr-general] Re: using autoitx to change IE setting and then switching back to watir control results in error

2009-05-19 Thread Paul Rogers
you can do this in the registry, but you have to restart IE require 'win32/registry' PROXY_SERVER_IP = 192.168.1.20 PROXY_SERVER_PORT = 3128 def set_browser_to_use_proxy log Enabling Proxy at #{PROXY_SERVER_IP}:#{PROXY_SERVER_PORT}

[wtr-general] Re: Roo error on Ubuntu 9.04

2009-05-12 Thread Paul Rogers
I think that means you need t install the ssh libraries. openssh maybe. Cant rememeber exactly im afraid Paul On Tue, May 12, 2009 at 4:22 PM, Richard Wijdenes richard.wijde...@gmail.com wrote: Hi all, After installing ruby, rubygems, firewatir, which all seems working fine, i would like

[wtr-general] Re: Connecting Watir to an IE control in a dotnet app?

2009-05-01 Thread Paul Rogers
can you use spy++ to get the hwnd of the brower and attach using that? Paul On Fri, May 1, 2009 at 2:06 PM, mwolfe mwolf...@gmail.com wrote: I'm trying to do this as well. see my blog for more details: http://www.wolfewebservices.com/blog/attaching-watir-embedded-ie-browser On Mar 19,

[wtr-general] Re: Select from auto-complete

2009-04-27 Thread Paul Rogers
you wont be ble to do this with watir at the moment. THe reason is that right now watir doesnt support all the event info on a key press ( most of the time watir works fine) There is some stuff on the wiki that begins to address this -

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread Paul Rogers
are the ads: images flash in a div in an iframe ? kind of difficult to help you with this one. Paul On Mon, Apr 27, 2009 at 8:35 PM, yogesh er.yogeshkhandel...@gmail.comwrote: yeah..i read that...sorry for the little information.. I need to check all the advertisement/images

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread Paul Rogers
but not able to get the expected result On Tue, Apr 28, 2009 at 8:28 AM, Paul Rogers paul.rog...@shaw.ca wrote: are the ads: images flash in a div in an iframe ? kind of difficult to help you with this one. Paul On Mon, Apr 27, 2009 at 8:35 PM, yogesh er.yogeshkhandel

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread Paul Rogers
substring.length verify(substring.length 100, 'ad test failed, could not locate ad on main page') end#end else end end Yogesh On Tue, Apr 28, 2009 at 9:08 AM, Paul Rogers paul.rog...@shaw.ca wrote: so what are you trying to test? The ads show up? the ads function correctly

[wtr-general] Re: How do I get the page status (200, 404, 500, etc)

2009-04-23 Thread Paul Rogers
can you get openssl to work on windows. I dont remember if this is easy or hard. Watir is different to net/http. If you did a watir request, and then a net/http request, thats 2 requests. And you need to get all the cookies etc from the browser into net/http. And you wont get any javascript or

[wtr-general] Re: How do I get the page status (200, 404, 500, etc)

2009-04-22 Thread Paul Rogers
i could never find a way of getting the status code easily. If you look through the watir source it does something like use a regular expression against the page title to try and figure it out. At one point watir would raise an exception when the page finished loading if it was an error, I think

[wtr-general] Re: What editor should I use for mac?

2009-04-21 Thread Paul Rogers
I started using a mac about 18 months ago and havent looked back. Ive been using a modified version of firewatir ( a very old one ) and actually prefered it to watir. Now I havent been doing any automation for about 6 months, so it may be different on the newer versions. I used text mate and

[wtr-general] Re: Get the data from ms-powerpoint

2009-04-20 Thread Paul Rogers
, 12:39 am, Paul Rogers paul.rog...@shaw.ca wrote: not with watir. But powerpoint probably has an ole interface so you can write your own ruby code to do it. Paul On Thu, Apr 16, 2009 at 1:25 PM, kiran gki...@gmail.com wrote: Hi all, Any idea on this? Is it possible to automate

[wtr-general] Re: How to check tab order

2009-04-17 Thread Paul Rogers
you can do this by setting focus to the first item, then using send_keys {TAB} and then checking with a method, the name of which I cant remember, but is something like ie.active_element Paul On Fri, Apr 17, 2009 at 11:11 AM, kiran gki...@gmail.com wrote: hi Fillipin, Thank you for your

[wtr-general] Re: Clicking OK with Ajax jQuery pop up

2009-04-17 Thread Paul Rogers
are you sure the jquery pop up is really a pop up and not just a div on the page? Poke at it with firebug or ie developer toolbar, and Im sure you'll find its just a div Paul On Fri, Apr 17, 2009 at 10:28 AM, Yahoo tom.feodor...@conchango.com wrote: I know, yet another issue with pop ups

[wtr-general] Re: Clicking OK with Ajax jQuery pop up

2009-04-17 Thread Paul Rogers
looked like, but I can't seem to see where to upload images. On Apr 17, 1:53 pm, Paul Rogers paul.rog...@shaw.ca wrote: are you sure the jquery pop up is really a pop up and not just a div on the page? Poke at it with firebug or ie developer toolbar, and Im sure you'll find its just

[wtr-general] Re: Clicking OK with Ajax jQuery pop up

2009-04-17 Thread Paul Rogers
played with the css to make it a little prettier. I'm not familiar with Firebug, so how could I get my watir code to click this OK button? On Apr 17, 2:53 pm, Paul Rogers paul.rog...@shaw.ca wrote: you wont see it with view source. Firebug ( in firefox) is the best way to find it. Im guessing

[wtr-general] Re: First level children only

2009-04-17 Thread Paul Rogers
this might be simpler: top_div = ie.div(:id , 'toplevel') top_div.divs.each do | a_child | next unless a_child.document.parentElement.invoke( id) == top_div.id puts an immediate child is + a_child.id end untested, but it seems sound, as long as you have useful identifiers of some

[wtr-general] Re: Test Results Report Methods

2009-04-15 Thread Paul Rogers
if you look in Lisa Crispins book, page 323, there is an example of a test reporting app like you describe. This was written in rails and was in use ( and still is ) at financial internet company. Disclaimer - I wrote this app ;-) I think there is a big opportunity for someone to write n open

[wtr-general] Re: cannot open internet explorer

2009-04-14 Thread Paul Rogers
this is a problem with a gem that watir installs. search the mailing list for Windows::API and you should find the solution Paul On Tue, Apr 14, 2009 at 10:04 AM, Samar Javid sfja...@gmail.com wrote: Hi, I'm a newbee at Watir. I've installed ruby and watir and am trying the quickstart

[wtr-general] Re: FireWatir bug/anomaly

2009-04-12 Thread Paul Rogers
there is some functionality in firewatir ( at least the version that I had been using) that doesnt generate exceptions when there is a javascript exception. Id fixed this some where once ( probably in a local copy of firewatir) , but I guess the code got lost Paul On Sun, Apr 12, 2009 at 8:16

[wtr-general] Re: Performance Testing

2009-04-04 Thread Paul Rogers
Andrew, how easy was it to set up the ami with a watir environment? How did you control running the scripts? Paul On Fri, Apr 3, 2009 at 1:22 PM, Andrew McFarlane welkin_...@hotmail.comwrote: I think that Paul already mentioned this, but I started down the road of creating a watir script

[wtr-general] Re: Checking form controls/fields using a hash

2009-04-03 Thread Paul Rogers
post). Hashes do not allow the exists? method, and it looks like has_key? only checks the key in the hash (not the actual text field on the webpage). Any other ideas? :) On Apr 2, 8:23 pm, Paul Rogers paul.rog...@shaw.ca wrote: I think ( i didnt look too hard ) that it will only see

[wtr-general] Re: Watir design patterns?

2009-04-03 Thread Paul Rogers
I didnt know about this book, I'll try and check it out. There is also xUnit Patterns by Gerard Mezaros ( i think thats the right spelling ) I think its more appropriate for regular developer unit tests though. Paul On Fri, Apr 3, 2009 at 3:58 PM, Bret Pettichord b...@pettichord.com wrote:

[wtr-general] Re: How do you find find frames.

2009-04-02 Thread Paul Rogers
his doesnt answer your question, may be relevant;-) Some time back I was using firefox/firewatir to try and figure out if a page had frames, and if it did how many etc. It proved surprisingly difficult, I think because sometimes ( I cant remember what/how/why) firefox ( or firewatir ) would give

[wtr-general] Re: Checking form controls/fields using a hash

2009-04-02 Thread Paul Rogers
ask, just to make certain: With the code I'm presenting above, does this actually check the existence of the form control, or is it merely checking that a value exists in the hash? On Apr 2, 2:40 pm, Paul Rogers paul.rog...@shaw.ca wrote: hash has a has_key? method Paul On Thu, Apr 2

[wtr-general] os and browser version

2009-03-25 Thread Paul Rogers
some one on irc wanted to get the browser and os versions. THis code uses the user-agent, so might not always be correct, but its probably good enough. Not sure if it works on IE8 It came from a module that was included into the Watir and FireWatir modules. Its from an old code base, so may need

[wtr-general] Re: os and browser version

2009-03-25 Thread Paul Rogers
...@googlegroups.com] *On Behalf Of *Paul Rogers *Sent:* Wednesday, March 25, 2009 5:12 PM *To:* watir-general@googlegroups.com *Subject:* [wtr-general] os and browser version some one on irc wanted to get the browser and os versions. THis code uses the user-agent, so might not always be correct

[wtr-general] Re: Overiding onclick javascript

2009-03-12 Thread Paul Rogers
I cant do much until I get back - middle of next week. I can try and help then Paul On Thu, Mar 12, 2009 at 3:36 PM, Charley Baker charley.ba...@gmail.comwrote: Paul Rogers put some event code on the wiki, I haven't used it but looked at it and it might give you a better approach for js

[wtr-general] Re: How to Drag and Drop with Watir?

2009-02-14 Thread Paul Rogers
at it Thank you kindly. marekj Watirloo: Semantic Page Objects in UseCases Human Readable Machine Executable Acceptance Testing http://github.com/marekj/watirloo/ On Fri, Feb 13, 2009 at 10:27 AM, Paul Rogers paul.rog...@shaw.ca wrote: The app Ive been working on is all drag and drop. I

[wtr-general] Re: Error Handling Help

2009-02-11 Thread Paul Rogers
this page http://msdn.microsoft.com/en-ca/library/ms533055(VS.85).aspx shows there are several different properties 'type' which probably apply to different types of elements. Im guessing that maybe a link as the focus when you run this code and type does not apply to links, hence the error

[wtr-general] Re: count the number of div elements (without divs.find_all)

2009-02-05 Thread Paul Rogers
some one else asked a similar question a while back. I pointed them to some kind of solution, but I really cant remember what it was. It may have been something like taking the html, and using scan to get the div tags, and then using index to find the ones you are after. Paul On Wed, Feb 4,

[wtr-general] Re: How to get table size

2009-02-05 Thread Paul Rogers
ie.table(...).style.width On Thu, Feb 5, 2009 at 12:51 PM, zeng0...@gmail.com zeng0...@gmail.com wrote: I tried ie.table(:class=calendar-grid, :index=1).attribute_value (width) and ie.table(:class=calendar-grid, :index=1).attribute_value(width (css)) but get and nil. In the IE

[wtr-general] Re: `assert_exists': Unable to locate element

2009-02-05 Thread Paul Rogers
i think this happens on Vista. try searching the maillist for vista and see if you get asolution. Im sure it has been solved, just dont remember right now how. Paul On Thu, Feb 5, 2009 at 11:47 AM, RK wctr...@gmail.com wrote: Hi Frnd, I have updated ruby Watir from 1.5.3 to 1.6.2 and

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

2009-02-04 Thread Paul Rogers
as long as you set the env variables to point to the ruby executable, gems etc it should be fine. I guy I used to work with wanted to check the whole ruby tree in to svn along with a batch file to set the env vars so it was really easy to set up a new machine. Paul On Wed, Feb 4, 2009 at 9:03

[wtr-general] Re: How to check if JavaScript popup occurs

2009-02-04 Thread Paul Rogers
theres lots of info on this in the mailing list and on the wiki. If you are having particulr problems, post the particular question. Paul On Wed, Feb 4, 2009 at 11:11 AM, SushilKarwa sushil.ka...@gmail.com wrote: Anybody? Thanks, Sushil On Feb 4, 5:02 pm, SushilKarwa

[wtr-general] Re: How to check if JavaScript popup occurs

2009-02-04 Thread Paul Rogers
no dialog was found end end but I get following error: undefined local variable or method `browser' for #Watir::IE: 0x5ecb3b4 How do I resolve this? On Feb 4, 11:19 pm, Paul Rogers paul.rog...@shaw.ca wrote: theres lots of info on this in the mailing list and on the wiki. If you

[wtr-general] Re: scripts for IE and Firefox both

2009-01-30 Thread Paul Rogers
puzzled though - are modal dialogs weird? Do most apps not use them? What do you use instead? thanks Lisa On Thu, Jan 29, 2009 at 4:35 PM, Paul Rogers paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca wrote

[wtr-general] Re: scripts for IE and Firefox both

2009-01-30 Thread Paul Rogers
software just yet. Paul On Fri, Jan 30, 2009 at 11:58 AM, Lisa Crispin lisa.cris...@gmail.com wrote: My hope was: 1 set of scripts, different runtime parameters, works on mac or linux firefox and windows IE. On Fri, Jan 30, 2009 at 11:25 AM, Paul Rogers paul.rog...@shaw.ca wrote: I think

[wtr-general] Re: scripts for IE and Firefox both

2009-01-30 Thread Paul Rogers
but how long did it take, and how many developers to get it working fine in all browsers. Paul On Fri, Jan 30, 2009 at 12:11 PM, Lisa Crispin lisa.cris...@gmail.com wrote: Our app works fine, maybe because it's so old school, who knows! ;- On Fri, Jan 30, 2009 at 12:05 PM, Paul Rogers

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

2009-01-29 Thread Paul Rogers
what exceptiondo you get? On Thu, Jan 29, 2009 at 9:41 AM, aidy lewis aidy.le...@googlemail.com wrote: 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?

[wtr-general] Re: scripts for IE and Firefox both

2009-01-29 Thread Paul Rogers
, 2009 at 3:49 PM, Lisa Crispin lisa.cris...@gmail.com wrote: I guess I mean regular js pop up boxes. A modal dialog window that pops up and you have to click ok to keep going. They look the same in firefox as in IE. Lisa On Thu, Jan 29, 2009 at 3:42 PM, Paul Rogers paul.rog...@shaw.ca wrote

[wtr-general] Re: scripts for IE and Firefox both

2009-01-29 Thread Paul Rogers
On Thu, Jan 29, 2009 at 4:35 PM, Paul Rogers paul.rog...@shaw.ca wrote: ok, modal dialogs are a different beast entirely. I dont have a need for dialog support right now, and am working on drag and drop support in watir. If you are only require ing this on windows, you might want to look

[wtr-general] Re: checking if a lightbox is showing

2009-01-20 Thread Paul Rogers
it depends how it is displayed or hidden. In the app I work on things are often moved off the visibile part of the screen by setting the css position to -1000, -1000 Paul On Tue, Jan 20, 2009 at 1:48 PM, Richard Lawrence rslawre...@gmail.com wrote: Has anyone found a good way to determine

[wtr-general] Re: Drag and Drop with widgets

2009-01-15 Thread Paul Rogers
Ive been working on getting this done. Do you know what library is being used? Paul On Thu, Jan 15, 2009 at 3:22 PM, Moochie dduph...@redbrickhealth.com wrote: Does anyone know how to move widgets on a page? The class is ui-sortable. I've search all over and I'm unable to find any helpful

[wtr-general] Re: firewatir - questions..

2009-01-13 Thread Paul Rogers
amazon doesnt give you the ability to have a gui, so its kind of difficult to use firefox there. Paul On Tue, Jan 13, 2009 at 8:23 AM, badoug...@gmail.com badoug...@gmail.com wrote: Hi. Basic questions, but I can't find the answers, and figured this is a good place to post. As I

[wtr-general] Re: Unable to click link that contains a BR tag between the text

2009-01-13 Thread Paul Rogers
can you use a reg exp on the link text ie.link(:text , /Cholestorol/).click Paul On Tue, Jan 13, 2009 at 10:16 AM, Moochie dduph...@redbrickhealth.com wrote: #This doesn't work to click the below link. $ie.link(:text,Total Cholesterol).click Any suggestions? A #text

[wtr-general] Re: Unable to click link that contains a BR tag between the text

2009-01-13 Thread Paul Rogers
returns? Thanks, DD -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Paul Rogers Sent: Tuesday, January 13, 2009 11:19 AM To: watir-general@googlegroups.com Subject: [wtr-general] Re: Unable to click link that contains a BR

[wtr-general] Re: Watir IE Memory Usage

2009-01-07 Thread Paul Rogers
ie has some real bad memory leaks, so the problem might be that IE leaks memory rather than a watir issue. In which case, do 400, and then restart IE ;-) in your sample code, all you seem to be doing is checking for some text - if thats all you are doing, then use something like net/http and

[wtr-general] Re: Assigning Div content a Text Value

2008-12-01 Thread Paul Rogers
i think you can do this, Id just question why you want to do this. body_div = ie.div(:id, 'EditorBody') body_div.document.innerText='Hellow World!' is whtat I think you need Paul On Mon, Dec 1, 2008 at 7:55 AM, Nathan Lane [EMAIL PROTECTED] wrote: You must have some kind of JavaScript

[wtr-general] Re: Watir Ruby in Steel

2008-12-01 Thread Paul Rogers
heres my guess - the firewatir code uses lots of whats really javascript embedded in the ruby file. I think the parser is having a hard time figuring out whats ruby and whats javascript If you poke around in the lines suggested by the parser, you might be able rearrange some of the code to

[wtr-general] Re: Watir Ruby in Steel

2008-12-01 Thread Paul Rogers
standards for how they want bugs filed) On Dec 1, 11:12 am, Paul Rogers [EMAIL PROTECTED] wrote: try changing it to def initialize( *args ) the * means that it takes a variable number of parameters as an niput to the method, I think youd use it like this def my_method( *args ) if args.length

[wtr-general] Re: how to handle javascript popups problem with firewatir

2008-11-28 Thread Paul Rogers
to handle javascript popups with The general answer is don't use the javascript popups. I'd like to hear Paul Rodgers discuss alternatives to them in the podcast on Friday. Thanks in advance Dave oops. I meant Paul Rogers, the one that isn't in 'bad company

[wtr-general] Re: Adding Date

2008-11-17 Thread Paul Rogers
I think watir now includes active support ( and if it doesnt its easy to add it anyway) then you can do things like this: irb(main):001:0 require 'date' = true irb(main):002:0 require 'activesupport' = true irb(main):003:0 Date.today + 2.days = Wed, 19 Nov 2008 Paul On Mon, Nov 17, 2008 at

[wtr-general] Re: Problems using visible

2008-10-30 Thread Paul Rogers
the html in the app is way to scary to simplify and post ( goto www.tynt.com and use the try it functionality if youd like to see ) I'll try and post a sample of this though Paul On Thu, Oct 30, 2008 at 1:52 AM, Tony [EMAIL PROTECTED] wrote: Hi Bret, Added the updated code to the ticket.

[wtr-general] Re: Problems using visible

2008-10-29 Thread Paul Rogers
for people in the future searching the archives, its also worth noting that visible? has some other problems. The app i work on 'hides' stuff from the user by moving it to coordinates -1000, -1000. THis way the thing is still in the dom, and can be made to appear quicker by changing its

[wtr-general] Re: Problems using visible

2008-10-28 Thread Paul Rogers
in my implementation I seem to also be checking the value of the visibility css attribute. Paul On Tue, Oct 28, 2008 at 8:04 AM, Tony [EMAIL PROTECTED] wrote: Hi All, Here's a solution to find the visible elements in Firefox. Override the Elements class in MozillaBaseElement.rb file to

[wtr-general] Google test automation conference

2008-10-21 Thread Paul Rogers
Is any one going to this? I will be there. Paul --~--~-~--~~~---~--~~ 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

[wtr-general] Re: background testing

2008-10-15 Thread Paul Rogers
pcs are relatively cheap, I consider getting another for running automation on. If you cant do that, try getting a VM like virtualbox and run your tests in that Paul On Tue, Oct 14, 2008 at 10:21 PM, Fukaya Yoshikazu [EMAIL PROTECTED] wrote: Thank you! Who's phrase or saying? Man should be

[wtr-general] Re: if page loading

2008-10-07 Thread Paul Rogers
you should be able to look in the wait method of Watir::IE and see what we poll for to see if the page is complete. There are 2 poperties that contain this info, one for the document and one for the window ( frames probably have one per doc) its called something likie readyStateComplete Paul