Re: [wtr-general] Error in installation of gem

2009-12-29 Thread lu.hr2009 lu.hr2009
hi

I am trying to install watir in my PC. while I am running the command
gem update --system or gem install watir
It always throws following error

ERROR:  While executing gem ... (OptionParser::AmbiguousOption)
ambiguous option: -system

because my company hava domain manager.
how to resolve it,thank you!

2009/12/9 chethan sarathy chethan2...@yahoo.co.in

 H

 I All,

 Here is the solution for Ruby Installation  Updating the Gems.

 Pls read this article for more info
 http://rubyforge.org/forum/forum.php?forum_id=35591

 Steps:

- Find the New Ruby Installer 186-27_rc2.exe. in
http://rubyforge.org/frs/?group_id=167
- Install the same (run the command ruby -v some times it throws error
in that case uninstall  install again).
- Run gem update (earlier gem update --system doesn't work).
- Run gem install watir.

Done.

This will start running Watir   :)

Thanks to Shivananda  gemcutter google group for all the help they
extended.

Cheers,
Chethan




 --
 The INTERNET now has a personality. YOURS! See your Yahoo! 
 Homepagehttp://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/.


 --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general




-- 
善待自己,相信自己,好运常伴自己!

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Re: [wtr-general] XPath and IE

2009-12-29 Thread Željko Filipin
On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com wrote:

//*[local-name()=tr]/*[local-name()=td][text()=test_project]/../*[local-name()=td]/*[local-name()=a]/*[local-name()=img]...@title=Remove]/..

I know this does not solve your problem, but do you really need to use such
complicated xpath? I would try to access the element with the simplest xpath
possible.

Željko
--
watir.com - community manager
watirpodcast.com - host

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Re: [wtr-general] XPath and IE

2009-12-29 Thread Angrez Singh
Can you post the HTML? Why are you using XPath for accessing elements?
- Angrez

On Tue, Dec 29, 2009 at 3:28 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com wrote:
 
 //*[local-name()=tr]/*[local-name()=td][text()=test_project]/../*[local-name()=td]/*[local-name()=a]/*[local-name()=img]...@title=Remove]/..

 I know this does not solve your problem, but do you really need to use such
 complicated xpath? I would try to access the element with the simplest xpath
 possible.


 Željko
 --
 watir.com - community manager
 watirpodcast.com - host



  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

[wtr-general] safariwatri - get elements by xpath

2009-12-29 Thread Hans Dushanthakumar
Hi,

   Not sure if this is the right group for safari-watir questions, but here 
goes:

   I'm trying to get a few tests built using watir (and cucumber/rspec) to run 
across firefox  safari. Noticed that the elements_by_xpath function that 
watir provides isnt available in safariwatir.

   eg: The following line returns a list of all matching elements if browserObj 
was created using watir, however I dont see that function listed if I used 
safariwatir instead.

   browserObj.elements_by_xpath(.//*...@id='bookEntry']/div)

   Anyone aware of any way I could achieve this in safariwatir?

Thanks,
Hans


  
__
See what's on at the movies in your area. Find out now: 
http://au.movies.yahoo.com/session-times/

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] safariwatri - get elements by xpath

2009-12-29 Thread Željko Filipin
On Tue, Dec 29, 2009 at 1:33 PM, Hans Dushanthakumar hansrd...@yahoo.com
wrote:
   browserObj.elements_by_xpath(.//*...@id='bookEntry']/div)

If I understood your xpath, you are trying to access a div that is a child
of an element that as an id. Something like this should work:

browser.div(:id, 'bookEntry').div(:index, 1)

I do not think safariwatir has xpath support.

Željko
--
watir.com - community manager
watirpodcast.com - host

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Re: [wtr-general] XPath and IE

2009-12-29 Thread Angrez Singh
Let me guess here you are trying to delete the project  you don't have ID
for delete button as the number of projects are not fixed.
Is that correct?
If yes, then does project name is unique across the applications?

- Angrez

On Tue, Dec 29, 2009 at 6:20 PM, Josh Moore joshsmo...@gmail.com wrote:

 Hi, I attached the html as a file because it is pretty big.  I am using
 XPath because we are using XHTML and the namespace seems to render the other
 accessor methods useless.

 Josh


  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


 On Dec 29, 2009, at 6:33 PM, Angrez Singh wrote:

 Can you post the HTML? Why are you using XPath for accessing elements?
 - Angrez

 On Tue, Dec 29, 2009 at 3:28 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:

 On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com
 wrote:
 
 //*[local-name()=tr]/*[local-name()=td][text()=test_project]/../*[local-name()=td]/*[local-name()=a]/*[local-name()=img]...@title=Remove]/..

 I know this does not solve your problem, but do you really need to use
 such complicated xpath? I would try to access the element with the simplest
 xpath possible.


 Željko
 --
 watir.com - community manager
 watirpodcast.com - host




 --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general



 --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general





-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Re: [wtr-general] XPath and IE

2009-12-29 Thread Željko Filipin
On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com wrote:

//*[local-name()=tr]/*[local-name()=td][text()=test_project]/../*[local-name()=td]/*[local-name()=a]/*[local-name()=img]...@title=Remove]/..

Does this work (not tested)?

browser.image(:title = Remove, :after? = browser.cell(:text =
test_project))

Željko

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

[wtr-general] IE 8 Crashes

2009-12-29 Thread Jeff Savin
Hi,

I have a simple automation application built in Ruby 1.8.6 and Watir
1.6.5.  The application takes control of the browser and goes through
3 or 4 pages of an online website. It fills in a couple forms and
pushes a few buttons, nothing fancy.

This application works as tested on several computers, including XP
and Vista, IE 7 and 8.  On one particular computer, Windows Vista Home
Premium Edition SP2 and IE 8, the application successfully opens a new
browser, but the second it sends an automation command (browser.goto),
IE8 crashes.  This happens each and every time and I'm wondering if
anyone else has had the same experience.

Thanks,
Jeff

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] Difficulty installing Watir (needs make); slow performance with FireWatir

2009-12-29 Thread Charley Baker
Hi Jesse,



On Wed, Dec 23, 2009 at 6:42 PM, Jesse jedelst...@ucmerced.edu wrote:

 Hello! I'm using Ruby and Watir to automatically look up some data
 about court decisions from an online database. The site doesn't play
 nice with the common solutions for non-interactively accessing sites
 (like Mechanize) so I turned to Watir. My code doesn't have anything
 proprietary, but it won't do much for you unless you have a
 subscription to LexisNexis Academic - anyway, here's the code:
 http://pastebin.com/me3a3041

 So this mostly works as advertised but I've had a couple problems.
 Incidentally, I'm doing this on both OS X 10.6 and Windows XP, with
 Ruby 1.8.7 and RubyGems 1.3.5.

 Ruby 1.8.7 on Windows? The recommended version to use for now is 1.8.6 26
from the one click installer
http://rubyforge.org/frs/download.php/29263/ruby186-26.exe

This won't require you to build required dependencies as you mention below.
Some of the win32 libraries that we depend on have precompiled libraries for
this version of Ruby built with msvc6 (mswin32), which automatically get
picked up instead of built.

The other option is rather experimental but uses the new release candidate
of the Windows Ruby installer. Available on the same page on rubyforge,
you'd need both the installer for the 186 version and the devkit for the
same. Dig in if you want, I've been doing some playing around with it and
need to spend more time sussing out what issues there may be and writing up
instructions since it is going to replace the current one click as the de
facto standard fairly soon.



 1) I can't seem to install Watir. On Windows, running 'gem install
 watir' gives the following errors:
 Building native extensions.  This could take a while...
 ERROR:  Error installing watir:
   ERROR: Failed to build gem native extension.

 C:/Ruby/bin/ruby.exe extconf.rb
 checking for strncpy_s()... no
 creating Makefile

 make
 'make' is not recognized as an internal or external command,
 operable program or batch file.

 I understand that this is because the computers I'm trying to install
 on don't have the appropriate compiler or the 'make' program. And I'm
 guessing this is an issue because Watir needs to use the Win32 IDE in
 order to control Internet Explorer. But is there any way to install
 Watir and not have to worry about this stuff? I'm trying to make this
 script for a user who's not so computer-savvy, and he won't know what
 to do with compilers and cygwin and all that fun stuff. I found some
 binary versions of older Watir versions online, but they've proven to
 be useless - even breaking my copy of Ruby, presumably because I
 wasn't installing them right.

 2) I'm experiencing severe slowdown with FireWatir, getting worse and
 worse as a session goes on. Basically, my program is intended to look
 up thousands of strings from a search engine. But performance seems to
 get worse every time - by the 20th pass, the thing is taking around
 two seconds longer to retrieve the data (including entering a string
 into a search box, waiting for the search to come back, and running
 some regexes on the returned page to get the needed data). From a
 little testing my suspicion is that this is a known problem, as
 indicated by this posting:
 http://rubyforge.org/pipermail/wtr-development/2007-November/000669.html

 I've worked around it by just relaunching Firefox every 20 trials or
 so, which seems to take care of the problem. Any ideas for another
 solution to the slowdown issue? This is reproducible with OS X 10.6
 running Firefox 3.5.6, and with Windows XP running Firefox 3.0.16 (the
 newest version didn't seem to work), both being controlled by
 FireWatir 1.6.5.


Not sure why the slowdown, possibly Angrez can comment on this. There
certainly seem to be some cases where the jssh plugin is generally slow as
you mentioned, though we've not narrowed that down.




 Jesse

 --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

[wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir

2009-12-29 Thread George
Hello,

What does your code look like?



On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote:
 Hi

 Has anyone here answer for this please.

 Regards
 Pallavi.



 -- Forwarded message --
 From: Pallavi Sharma write2pall...@gmail.com
 Date: Tue, Dec 22, 2009 at 10:23 AM
 Subject: Regarding Getting Page Text in Watir and FireWatir
 To: watir-general@googlegroups.com

 Hello

 If i try to get the page text for watir and firewatir a peculiar problem
 arises;

 for watir if there is br tag then with the test a new line appers

 but for Firewatir this doesn't happen.

 I am not able to run directly my test cases made in watir into firewatir due
 to this behaviour as the split fails on the output of this method .

 Is there is something we could do about it/ or any other way??

 Regards
 Pallavi.

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] XPath and IE

2009-12-29 Thread Josh Moore
Hi,

I was able to figure out another solution by using the table object and 
iterating over it.  However, if you have any ideas on the XPath I would still 
be interested in hearing about them.

Thanks,

Josh

On Dec 29, 2009, at 6:33 PM, Angrez Singh wrote:

 Can you post the HTML? Why are you using XPath for accessing elements?
 - Angrez
 
 On Tue, Dec 29, 2009 at 3:28 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:
 On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com wrote:
  //*[local-name()=tr]/*[local-name()=td][text()=test_project]/../*[local-name()=td]/*[local-name()=a]/*[local-name()=img]...@title=Remove]/..
 
 I know this does not solve your problem, but do you really need to use such 
 complicated xpath? I would try to access the element with the simplest xpath 
 possible.
 
 
 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
 
 
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines: 
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to 
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at 
 http://groups.google.com/group/watir-general
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines: 
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to 
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at 
 http://groups.google.com/group/watir-general

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

[wtr-general] Re: IE 8 Crashes

2009-12-29 Thread Tiffany Fodor
Hi Jeff!

I haven't heard of this problem.  Can you provide any errors you're
getting when the browser crashes?

Have you verified that you can manually access the URL in an IE8
browser on this system?  If so, have you tried stepping through
opening a new browser and then going to the site through irb?  You
could also try the same steps with a Firefox browser to narrow the
problem down a bit.

Hope this helps!

-Tiffany

On Dec 29, 9:51 am, Jeff Savin jeff.sa...@gmail.com wrote:
 Hi,

 I have a simple automation application built in Ruby 1.8.6 and Watir
 1.6.5.  The application takes control of the browser and goes through
 3 or 4 pages of an online website. It fills in a couple forms and
 pushes a few buttons, nothing fancy.

 This application works as tested on several computers, including XP
 and Vista, IE 7 and 8.  On one particular computer, Windows Vista Home
 Premium Edition SP2 and IE 8, the application successfully opens a new
 browser, but the second it sends an automation command (browser.goto),
 IE8 crashes.  This happens each and every time and I'm wondering if
 anyone else has had the same experience.

 Thanks,
 Jeff

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: unexpected popup window which has no title ::: need help

2009-12-29 Thread Tiffany Fodor
Thanks for providing the solution that worked for you.  It may help
someone else with the same problem.

-Tiffany

On Dec 28, 2:17 am, Pallavi Sharma write2pall...@gmail.com wrote:
 Chetan

 If its an unexpected window with no title and you just wish to detect and
 close it, then Auto IT script which is provided in popup helps would work.

 I am facing the difficulty in identifying the specific button like OK,
 Cancel

 Adding watir general groups for everyone's benefit.

 Regards
 Pallavi.

 On Mon, Dec 28, 2009 at 2:45 PM, Chetan Patel chat.pa...@gmail.com wrote:
  HI Pallavi,

  Greetings,

  This is chetan patel and working as software eng at indusface ,Baroda
  ,Gujarat.

  I have got your reference from Google group (firewatir)

  I am facing same problem u have , how to manage  unexpected popup window
  which has no title(I have installed autoIt on my machine)

  Please send me snap of code if you have got any solutions.

  Thanks,

  Chetan J.

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] Error in installation of gem

2009-12-29 Thread lu.hr2009 lu.hr2009
thread name can i have it ,thank you.
watir-1.5.4.gem have  downloaded,it can help me ?

2009/12/29 Wesley Chen cjq@gmail.com

 It is a different topic, please open a new thread.

 Please see the doc: http://wiki.openqa.org/display/WTR/Installation
 And then try again.

 Thanks.
 Wesley Chen.
 For life, the easier, the better.


 2009/12/29 lu.hr2009 lu.hr2009 lu.hr2...@gmail.com

 hi


 I am trying to install watir in my PC. while I am running the command
 gem update --system or gem install watir
 It always throws following error

 ERROR:  While executing gem ... (OptionParser::AmbiguousOption)
 ambiguous option: -system

 because my company hava domain manager.
 how to resolve it,thank you!

 2009/12/9 chethan sarathy chethan2...@yahoo.co.in

  H

 I All,

 Here is the solution for Ruby Installation  Updating the Gems.

 Pls read this article for more info
 http://rubyforge.org/forum/forum.php?forum_id=35591

 Steps:

- Find the New Ruby Installer 186-27_rc2.exe. in
http://rubyforge.org/frs/?group_id=167
- Install the same (run the command ruby -v some times it throws
error in that case uninstall  install again).
- Run gem update (earlier gem update --system doesn't work).
- Run gem install watir.

Done.

This will start running Watir   :)

Thanks to Shivananda  gemcutter google group for all the help they
extended.

Cheers,
Chethan




 --
 The INTERNET now has a personality. YOURS! See your Yahoo! 
 Homepagehttp://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/.


 --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general




 --
 善待自己,相信自己,好运常伴自己!

  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general




-- 
善待自己,相信自己,好运常伴自己!

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir

2009-12-29 Thread Pallavi Sharma
Hi

My code looks like this:

Say the input is:

h1 hello br bye br /h1

Now if you do from watir saying

puts ie.text

it will print

hello
bye

so text is seperated by new line

but with firewatir

ff.text

output is:

hello bye

separated by space.

So thats my problem. As the delimiter used by watir and firewatir is not
same, i cannot simply run my same watir scripts in fire watir.

Any solution or feedback on it...

Regards
Pallavi.


On Wed, Dec 30, 2009 at 4:52 AM, George george.sand...@gmail.com wrote:

 Hello,

 What does your code look like?



 On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote:
  Hi
 
  Has anyone here answer for this please.
 
  Regards
  Pallavi.
 
 
 
  -- Forwarded message --
  From: Pallavi Sharma write2pall...@gmail.com
  Date: Tue, Dec 22, 2009 at 10:23 AM
  Subject: Regarding Getting Page Text in Watir and FireWatir
  To: watir-general@googlegroups.com
 
  Hello
 
  If i try to get the page text for watir and firewatir a peculiar problem
  arises;
 
  for watir if there is br tag then with the test a new line appers
 
  but for Firewatir this doesn't happen.
 
  I am not able to run directly my test cases made in watir into firewatir
 due
  to this behaviour as the split fails on the output of this method .
 
  Is there is something we could do about it/ or any other way??
 
  Regards
  Pallavi.

 --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Re: [wtr-general] Difficulty installing Watir (needs make); slow performance with FireWatir

2009-12-29 Thread Angrez Singh
I have heard a lot about Firewatir slowing up entering the text in textbox
control. While running unit test cases i was not able to reproduce it. May
be if you can send a working code which I can run on my machine, I'll look
into what is causing the problem.

Thanks,
Angrez

On Tue, Dec 29, 2009 at 11:20 PM, Charley Baker charley.ba...@gmail.comwrote:

 Hi Jesse,



 On Wed, Dec 23, 2009 at 6:42 PM, Jesse jedelst...@ucmerced.edu wrote:

 Hello! I'm using Ruby and Watir to automatically look up some data
 about court decisions from an online database. The site doesn't play
 nice with the common solutions for non-interactively accessing sites
 (like Mechanize) so I turned to Watir. My code doesn't have anything
 proprietary, but it won't do much for you unless you have a
 subscription to LexisNexis Academic - anyway, here's the code:
 http://pastebin.com/me3a3041

 So this mostly works as advertised but I've had a couple problems.
 Incidentally, I'm doing this on both OS X 10.6 and Windows XP, with
 Ruby 1.8.7 and RubyGems 1.3.5.

 Ruby 1.8.7 on Windows? The recommended version to use for now is 1.8.6 26
 from the one click installer
 http://rubyforge.org/frs/download.php/29263/ruby186-26.exe

 This won't require you to build required dependencies as you mention below.
 Some of the win32 libraries that we depend on have precompiled libraries for
 this version of Ruby built with msvc6 (mswin32), which automatically get
 picked up instead of built.

 The other option is rather experimental but uses the new release candidate
 of the Windows Ruby installer. Available on the same page on rubyforge,
 you'd need both the installer for the 186 version and the devkit for the
 same. Dig in if you want, I've been doing some playing around with it and
 need to spend more time sussing out what issues there may be and writing up
 instructions since it is going to replace the current one click as the de
 facto standard fairly soon.



 1) I can't seem to install Watir. On Windows, running 'gem install
 watir' gives the following errors:
 Building native extensions.  This could take a while...
 ERROR:  Error installing watir:
   ERROR: Failed to build gem native extension.

 C:/Ruby/bin/ruby.exe extconf.rb
 checking for strncpy_s()... no
 creating Makefile

 make
 'make' is not recognized as an internal or external command,
 operable program or batch file.

 I understand that this is because the computers I'm trying to install
 on don't have the appropriate compiler or the 'make' program. And I'm
 guessing this is an issue because Watir needs to use the Win32 IDE in
 order to control Internet Explorer. But is there any way to install
 Watir and not have to worry about this stuff? I'm trying to make this
 script for a user who's not so computer-savvy, and he won't know what
 to do with compilers and cygwin and all that fun stuff. I found some
 binary versions of older Watir versions online, but they've proven to
 be useless - even breaking my copy of Ruby, presumably because I
 wasn't installing them right.

 2) I'm experiencing severe slowdown with FireWatir, getting worse and
 worse as a session goes on. Basically, my program is intended to look
 up thousands of strings from a search engine. But performance seems to
 get worse every time - by the 20th pass, the thing is taking around
 two seconds longer to retrieve the data (including entering a string
 into a search box, waiting for the search to come back, and running
 some regexes on the returned page to get the needed data). From a
 little testing my suspicion is that this is a known problem, as
 indicated by this posting:
 http://rubyforge.org/pipermail/wtr-development/2007-November/000669.html

 I've worked around it by just relaunching Firefox every 20 trials or
 so, which seems to take care of the problem. Any ideas for another
 solution to the slowdown issue? This is reproducible with OS X 10.6
 running Firefox 3.5.6, and with Windows XP running Firefox 3.0.16 (the
 newest version didn't seem to work), both being controlled by
 FireWatir 1.6.5.


 Not sure why the slowdown, possibly Angrez can comment on this. There
 certainly seem to be some cases where the jssh plugin is generally slow as
 you mentioned, though we've not narrowed that down.




 Jesse

 --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 

Re: [wtr-general] Error in installation of gem

2009-12-29 Thread Wesley Chen
Watir latest version is 1.6.5. Please don't use Watir1.5.4.


Thanks.
Wesley Chen.
For life, the easier, the better.


2009/12/30 lu.hr2009 lu.hr2009 lu.hr2...@gmail.com

 thread name can i have it ,thank you.
 watir-1.5.4.gem have  downloaded,it can help me ?

 2009/12/29 Wesley Chen cjq@gmail.com

 It is a different topic, please open a new thread.

 Please see the doc: http://wiki.openqa.org/display/WTR/Installation
 And then try again.

 Thanks.
 Wesley Chen.
 For life, the easier, the better.


 2009/12/29 lu.hr2009 lu.hr2009 lu.hr2...@gmail.com

 hi


 I am trying to install watir in my PC. while I am running the command
 gem update --system or gem install watir
 It always throws following error

 ERROR:  While executing gem ... (OptionParser::AmbiguousOption)
 ambiguous option: -system

 because my company hava domain manager.
 how to resolve it,thank you!

 2009/12/9 chethan sarathy chethan2...@yahoo.co.in

  H

 I All,

 Here is the solution for Ruby Installation  Updating the Gems.

 Pls read this article for more info
 http://rubyforge.org/forum/forum.php?forum_id=35591

 Steps:

- Find the New Ruby Installer 186-27_rc2.exe. in
http://rubyforge.org/frs/?group_id=167
- Install the same (run the command ruby -v some times it throws
error in that case uninstall  install again).
- Run gem update (earlier gem update --system doesn't work).
- Run gem install watir.

Done.

This will start running Watir   :)

Thanks to Shivananda  gemcutter google group for all the help they
extended.

Cheers,
Chethan




 --
 The INTERNET now has a personality. YOURS! See your Yahoo! 
 Homepagehttp://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/.


 --
 You received this message because you are subscribed to the Google
 Groups Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general




 --
 善待自己,相信自己,好运常伴自己!

  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general




 --
 善待自己,相信自己,好运常伴自己!

 --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general