Hi,
I want display data in the same row using puts. For the reference see below.
Thanks in advance.
puts {a[4][1]):{a[4][2]} -- This is not working but. Tell me how to put this
value.
Regards
Sapna
___
Wtr-general mailing list
I am trying to get rid of all cookies via a function.
On this forum I found the Snippet thingy.
http://rubyforge.org/snippet/detail.php?type=snippetid=26
So I included that code in my script and trying to use it, but I can't figure
out how.
this is the code:
[code]
DeleteUrlCacheEntry =
On 6/12/07, Jeff Fry [EMAIL PROTECTED] wrote:
@ie.button(:class ='Button Menu', :index = 2).click
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:1098:in `send':
{:class=Button Menu, :index=2} is not a symbol (TypeError)
Hi Jeff,
I guess that button is one of those elements that
Hi Sapna,
If you have variable called var, you can display its value inside string
like this.
puts var = #{var}
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 6/8/07, Bret Pettichord [EMAIL PROTECTED] wrote:
However, if you are using the Watir::IE#modal_dialog method, you must
use Ruby 1.8.2-14 and not a more recent version.
I just installed ruby182-14.exe on clean xp pro machine. Components: only
RubyGems Package Manager. Then I tried to
Any plans of porting WATIR to JRuby??
Regards,
Nivetha
Email - [EMAIL PROTECTED]
Mobile - (0) 98807 17518___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
got it working myself.
by calling the delete_cache and including the file mentioned below (got that
from this forum somewhere)
[code]
#!/bin/ruby
#
#
#
#
#
# set TEMPIF=%USERPROFILE%\Local Settings\Temporary Internet Files
# %TEMPIF%\Content.IE5\Index.DAT
require 'Win32API'
#
#
# HashMethods =
On 6/13/07, Nivetha Padmanaban [EMAIL PROTECTED] wrote:
Any plans of porting WATIR to JRuby??
None that I know of at the moment. The stumbling block is to get a
compatible version of 'win32ole' on JRuby which we don't have.
/Nick
___
Wtr-general
Hi, *carabasu*
Please execute the code below, i have just removed form your code an extra
*end*.
and added
require 'watir' and replaced IE.new with Watir::IE.new because i didn't use
include WATIR
Execute below code it will print one .. OK
require 'watir'
testSite = 'http://www.google.com'
I will be out of the office starting 06/13/2007 and will not return until
06/14/2007.
If you need immediate assistance please try Cari Spruiell or my cell phone
at 512-560-5773. Thanks!
--
NOTICE: The information contained in this electronic mail transmission is
intended by Convergys
The attached file works on my Windows XP/IE7 machine. It will delete
all the temporary internet files and the cookies. I don't remember
where I got it or who wrote it originally, but I tweaked it to get it to
work right for me.
Hope this helps,
--Mark
-Original Message-
From:
I will be out of the office starting 06/13/2007 and will not return until
06/14/2007.
If you need immediate assistance please try Cari Spruiell or my cell phone
at 512-560-5773. Thanks!
--
NOTICE: The information contained in this electronic mail transmission is
intended by Convergys
Hi, All
I am working on writing the scripts for my web application but the problem is
that i am unable to locate the object named Microsoft Tab strip. Code is like
that
TR
TD colSpan=4?IMPORT NAMESPACE = TSNS IMPLEMENTATION =
http://zaigham/webctrl_client/1_0/tabstrip.htc; DECLARENAMESPACE
When I needed to use that snippet, I just left the whole thing in a
separate file, and initiated the cache/cookie cleanup with
system('ruby del_cache.rb')
You could also probably paste the whole blob of code into a new method
and it should work.
It would be possible to do the same work in fewer
Željko Filipin wrote:
On 6/8/07, *Bret Pettichord* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
I just installed ruby182-14.exe on clean xp pro machine. Components:
only RubyGems Package Manager. Then I tried to install
watir-1.5.1.1192.gem. I first executed
Y:\gem install
imran wrote:
But there is another query.
If you have a new question, please submit it under a (different) subject
line that describes the problem.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Simba wrote:
When i Run Below is code in IRB ,its throwinf error
require 'watir'
ie=Watir::IE.start(www.google.com)
Error :
NoMethodError :Undefined method Process_id for 1808:Fixnum
Please some body tell me why this error is coming?
Before Going into IRB , I had installed Win32-process
This looks like an ActiveX control. I don't know how to handle ActiveX
controls with Watir. Can you point us to a page that includes this control?
Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
There are quite a few other steps that I'm skipping because they're
pretty easy to google (checking if a log file exists already, appending
the log name with the date to preven overwrites, etc), but here's a real
simple intro:
textlog = File.open(text.log,
Thanks,
The File Create worked...But How do I d'l all the hyperink to the file?
I.E. I thought of ie.put(:text,hyperlink that is dynamically created from
search query here)
But, this syntax is more of a 'push' and I'm trying to 'pull' the result data
(i.e. scrape results and iterate thru the
I'm not sure what you're trying to say -- you lost me here.
If you want to scrape a page for URLs and then write them to the log
file:
ie.links.each do |link| # for each link on the current page in IE...
textlog.puts link.src # print url of the link in the textlog we
created
end
I don't know what's up with the formatting, the end #ie.links.each
should be on the next line (or else it'll get tied into the previous
comment).
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adam Reed
Sent: Wednesday, June 13, 2007 2:24 PM
To:
Hey, I know a few of y'all use Eclipse so I figured its worth a shot to ask
this here.
The shop I'm working for has a bunch of (non-GUI) automation written in
Python, to which I'll be adding some GUI scripts written in Ruby/Watir.
There is an existing svn repository like
Hey Jeff,
You can create a .project file at the root of your project directory and
put this in it - replace project_name with your project name.
?xml version=1.0 encoding=UTF-8?
projectDescription
nameproject_name/name
comment/comment
projects
/projects
buildSpec
Thanks Jason,
Normally I do that, but I didn't with this one because when I created it
it was a Python project. That said - I found the solution. I went
exploring again and found the amusingly straightforward Project Add
Ruby Nature...which did the trick.
It leaves me wondering what a
Hi,
The question you asked was related to Ruby and not to Watir. I think you
should start reading the book Programming Ruby. It will be there in your
installation directory i.e. where you have installed ruby.
- Angrez
On 6/14/07, sapna [EMAIL PROTECTED] wrote:
Thanks a lot Zeljko. Is there
26 matches
Mail list logo