[wtr-general] Unable to Load mysql.so file

2009-03-04 Thread piyush_pahuja
I want to connect my Ruby code with mysql. I am working with Windows OS. I have installed dbi and mysql gem. But require 'mysql' is not working fine. It is giving error :- Invalid access to memory location. - c:/ruby/lib/ruby/gems/1.8/gems/ mysql-2.7.3-x86-mswin32/ext/mysql.so (LoadError) from

[wtr-general] Re: clicking on a link, with certain parameters changing every time

2009-03-04 Thread Rasika
Thanks for rresponses I used ie.link(index,2).text to fetch the values value.split to use them in next step. But another issue, Index of link always changes, and there is no other attribute to identify this link. How can I make sure I am clicking on correct link every time? On Mar 5, 2:53 am, S

[wtr-general] Re: clicking on a link, with certain parameters changing every time

2009-03-04 Thread Rasika
Thanks On Mar 4, 6:40 pm, bwaybandit wrote: > you need to use ruby string functions to get to this. > > in this case for example you could (assuming your url is in a variable > called foo), use foo.slice(foo.length-3,3). this would return 4,5. you > can split this off a comma delimiter and get

[wtr-general] Re: Sleep function

2009-03-04 Thread wesley chen
If you want to sleep 5 mins, please try the code below: require 'watir' t=Time.now while (Time.now-t)<1 sleep 300 end puts "OK" Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General

[wtr-general] Re: Watir users: What is your role at work?

2009-03-04 Thread Zhimin
Lisa, Thanks for your comments. You mentioned Java developers, I am a one (likes programming in Ruby better though). From personal experiences and observations, I found programmers tend to not to write as easy-to-read test scripts as testers because of programming habits. For example, Java prog

[wtr-general] Re: Watir users: What is your role at work?

2009-03-04 Thread Jim Knowlton
George, BTW I actually have a blog where I talk about my experiences with Ruby/Watir/RSpec...feel free to check it out. The url is http://www.agilerubytester.com. On Mar 4, 7:39 am, "george.sand...@gmail.com" wrote: > I was just curious to know who is purely a QA tester (like myself) and > who

[wtr-general] Re: Watir users: What is your role at work?

2009-03-04 Thread Jim Knowlton
I'm a test developer who uses Ruby/Watir for developing automated tests. As with Lisa, the test code is managed like production code (checked into Subversion, tagged, etc). I think one of the big advantages of the Ruby/Watir solution is that the language is fairly straightforward for someone to

[wtr-general] Re: Watir users: What is your role at work?

2009-03-04 Thread Lisa Crispin
We do treat the test scripts same as production code, checked in, tagged with the builds, pairing etc. But the programmers won't work on the Watir scripts much because they prefer working in Java - in hindsight maybe we should have gone with a different tool. However, we testers prefer Ruby! Zhimi

[wtr-general] Re: Watir users: What is your role at work?

2009-03-04 Thread Charley Baker
I'm a test developer, with a background in testing as well as development. Test scripts and automation testing should be run as development projects - scm, code reviews, ideally paired programming, branch cuts, working with the production code developers, running, creating and sharing tests. Ther

[wtr-general] Re: Watir users: What is your role at work?

2009-03-04 Thread Zhimin
I am a developer. We use rWebUnit (extension of Watir) and iTest2 IDE for our acceptance testing. We classified test scripts into two parts: * high level test cases: written (and reviewed) by Business Analysts & Testers (who do not have programming skills) * web page classes and support funct

[wtr-general] Re: enabled_popup internal error

2009-03-04 Thread Jim Matthews
OK, too bad you did not include this originally. I think I know what the problem is. At least I see something that is a problem. You have: hwnd = page_container.enabled_popup(waitTime) hwnd belongs to the browser, not the page, so you have to reference the borwser object like: hwnd = $ie.ena

[wtr-general] Re: enabled_popup internal error

2009-03-04 Thread andrew . dahl
Here is the code def startClicker( page_container, button , waitTime= 9, user_input=nil ) # get a handle if one exists hwnd = page_container.enabled_popup(waitTime) if (hwnd) # yes there is a popup puts 'popup found' w = WinClicker.new w.makeWindowActive(hwnd) if ( user_in

[wtr-general] Re: clicking on a link, with certain parameters changing every time

2009-03-04 Thread SuperKevy
You want the URL I'm assuming.. then parse that for the info at the end ---Sample of Google. Whats the URL to the Privacy link -- require 'watir' include Watir ie. = IE.new ie.goto('http://www.google.com') puts ie.link(:text,'Privacy').attribute_value('href') --~--~-~--~~--

[wtr-general] Re: Defa

2009-03-04 Thread Andy Sipe
Whoops - hit send to early... I would add that you'll see this if you have no valid test methods. A valid test method looks like: def test_something end They have to start with test. -andy On Wed, Mar 4, 2009 at 3:50 PM, Andy Sipe wrote: > The default Test::Unit behavior is to fail a tes

[wtr-general] Re: Defa

2009-03-04 Thread Andy Sipe
The default Test::Unit behavior is to fail a test when there are no tests in a class. It does this by injecting a test case called 'default_test'. What you are seeing is that default behavior. -andy On Wed, Mar 4, 2009 at 3:33 PM, venky wrote: > > Hi > > I am using > > class Index_builder .

[wtr-general] Re: enabled_popup internal error

2009-03-04 Thread Jim Matthews
OK, I looked at example 4. I noticed that the example incorrectly says require 'Watir' instead of require 'watir' (the W should be lowercase). and I assume that you did the : require 'watir/contrib/enabled_popup' and I assume you have done some sort of attach of "browser" that connects it to a

[wtr-general] Defa

2009-03-04 Thread venky
Hi I am using class Index_builderhttp://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--

[wtr-general] Re: Watir users: What is your role at work?

2009-03-04 Thread JArkelen
Hi, I'm a test automater en performance tester and use Watir for our functional regression tests. On Mar 4, 6:14 pm, Lisa Crispin wrote: > Hi George, > I'm a tester, I have learned enough Ruby to maintain and write new Watir > scripts, and I know enough Java to sometimes be able to look at a tra

[wtr-general] Re: enabled_popup internal error

2009-03-04 Thread andrew . dahl
I was basing my code on example 4. Use click_no_wait on a button I know will cause a popup, and then call enabled_popup. The call from enabled_popup never returns. I can post the entire exception trace if that helps. On Mar 4, 8:26 am, Jim Matthews wrote: > From your first post, I am not sure ho

[wtr-general] Re: Watir users: What is your role at work?

2009-03-04 Thread Lisa Crispin
Hi George, I'm a tester, I have learned enough Ruby to maintain and write new Watir scripts, and I know enough Java to sometimes be able to look at a traceback and figure out what the problem might be! It's a great question, I'm curious to know now too. Most Watir people I know have solid programm

[wtr-general] Sleep function

2009-03-04 Thread maximore
Hi I am curious how the Sleep function works. let assume on a 500Mhz processor computer .. how is the delay generated . Let say if I want a delay of 5min or 5sec --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[wtr-general] Re: Does Watir work with ruby 1.9.1

2009-03-04 Thread Thomas Preymesser
2009/2/20 Karthikeyan K : > > Since Ruby 1.9.1 is out, I tried installing and it. Now I have problem > with Watir is it is throwing error on loading libraries (syntax > error). So my question is, is watir comapatible with Ruby 1.9.1? in general you can look for 1.9 compatibility at http://isitrub

[wtr-general] Re: Comparing Tag Text when a Exists

2009-03-04 Thread Darin Duphorn
I figured it out. regxmyvar = Regexp.new text.gsub("*",".*") -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Darin Duphorn Sent: Wednesday, March 04, 2009 9:38 AM To: watir-general@googlegroups.com Subject: [wtr-general] Re:

[wtr-general] Watir users: What is your role at work?

2009-03-04 Thread george.sand...@gmail.com
I was just curious to know who is purely a QA tester (like myself) and who is both a tester and a developer... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email t

[wtr-general] Re: Comparing Tag Text when a Exists

2009-03-04 Thread Darin Duphorn
I've also tried to ignore the by using Regexp and wildcards #Excel Value 123 fake street* Crookston, MN 56716 #I'm trying to replace * in excel with a wild card to ingnore the tag regxmyvar = Regexp.new text.gsub("*","/\.*/") - Does this look correct? puts regxmyvar /#{regxmyvar}/,:index=>

[wtr-general] Re: enabled_popup internal error

2009-03-04 Thread Jim Matthews
>From your first post, I am not sure how you are trying to use ie.enabled_popup. I assume you are trying to something like what is described on the wiki: http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups I do not know which example you are following. If you take this one for example, requ

[wtr-general] Comparing Tag Text when a Exists

2009-03-04 Thread Moochie
html #text - 123 fake street #text - Crookston, MN 56716 >From Excell text = 123 fake street Crookston, MN 56716 $ie.p(:text=>text,:index=>index).exists? puts "Pass" else puts "Failed" - Makes it here. end So I had the function insert the text into excel using: to se

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

2009-03-04 Thread Cliff Cyphers
Late to the thread but wanted to add something recently observed while running firefox through strace. It appears there are some flow control issues which may explain the slow typing speed. It's also been noted with some puts in the read_socket method the problem isn't as severe, as the slight d

[wtr-general] Re: popup handling

2009-03-04 Thread bwaybandit
k never mind the browser. require 'watir/contrib/enabled_popup' that statement needs to move into your class where you are doing your popup stuff. those global requires kill ya. On Mar 3, 6:45 am, Vikas Tulashyam wrote: > Hi friends, > I am getting an error while handling the popup. I have att

[wtr-general] Re: clicking on a link, with certain parameters changing every time

2009-03-04 Thread bwaybandit
you need to use ruby string functions to get to this. in this case for example you could (assuming your url is in a variable called foo), use foo.slice(foo.length-3,3). this would return 4,5. you can split this off a comma delimiter and get back ["4"] and ["5"]. - test.split',' this will not wo

[wtr-general] Re: Does Watir work with ruby 1.9.1

2009-03-04 Thread German
Hi, I was trying the same and got errors too. I add more details below. There problems are caused by required libs that were yet not migrated to Ruby 1.9. Here is what i got after i installed a fresh Ruby (1.9.1), then RubyGems (1.3.1), then Watir (1.6.2): c:/ruby1.9/lib/ruby/gems/1.9.1/gems/u

[wtr-general] Re: popup handling

2009-03-04 Thread bwaybandit
what browser are you using? On Mar 3, 6:45 am, Vikas Tulashyam wrote: > Hi friends, > I am getting an error while handling the popup. I have attached the > code and following is the error message�� > > :/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/ > enabled_popup.rb:5: uninitializ

[wtr-general] does watir supports silverlight?

2009-03-04 Thread POS
Hi I am trying to automate silverlight applications. currently am working with Testpartner tool. Testpartner doesnt supports SilverLight. "Does Watir supports Silverlight?" So can somebody help me with necessary information regarding this? Thanks in advance --~--~-~--~~

[wtr-general] clicking on a link, with certain parameters changing every time

2009-03-04 Thread Rasika
Hi All, >>The web page I am accessing has all links as 'href', no name, no id. >> Most of the links I can access by text >> But there is a specific link, where text as well as certain parameters in >> href also change >> right now I can access it with index, but that is also subject to change.

[wtr-general] Re: Can we check Modal dialog's properties by using Watir

2009-03-04 Thread Prince3105
Hi any idea?? On Mar 3, 10:58 am, Prince3105 wrote: > Hi Experts, > > Just i want to check the modalDialog's properties like enabled, > readonly... I have searched enough but cant get a solution. If is it > possible of validating the properties of a ModalDialog, please post > the reference u

[wtr-general] Re: Error while running Watir

2009-03-04 Thread ray
I have tried like you said, seems not work.:( My OS is win2003_X64 server. Any one have occurred this? On 3月4日, 下午5时10分, amit wrote: > Hello, > > The problem which had occurred has been resolved. > > Thanks to all those posts regarding the same. > > What i had done is.. > > 1:Open the command pr

[wtr-general] Re: enabled_popup internal error

2009-03-04 Thread andrew . dahl
Its not my code that is throwing the error. Here is the code for enabled popup from my watir install. The line generating the error is hwnd_modal, arr = GetWindow.call(hwnd, GW_ENABLEDPOPUP) - hwnd is undefined. module Watir module PageContainer include Win32 def enabled_popup(timeout=4

[wtr-general] Re: Error while running Watir

2009-03-04 Thread amit
Hello, The problem which had occurred has been resolved. Thanks to all those posts regarding the same. What i had done is.. 1:Open the command prompt. 2:gem uninstall win32-api 3:gem install win32-api 4:Various option appeared which are Select which gem to install for your platform (i386-mswi

[wtr-general] Error while running Watir

2009-03-04 Thread amit
Hello, I had successfully install watir 1.6.2. Now when i try to run an application i get an error which says "This application has failed to start because msvcr80-ruby18.dll was not found.Re-installing the application may fix the problem" But when i re-installed it i get the same