Sorry for spam. I just found out the same issue as me, it is a defect of Watir.
More details please refer the following thread.
http://www.mail-archive.com/wtr-general@rubyforge.org/msg05037.html
Thanks.
-
Posted via Jive Forums
h
I'm a newbie myself, but I noticed that if I launch my ruby
app by double-clicking the icon in windows, the app will execute and
close the cmd window.
However, if I go to my cmd window first and launch the app
from there...then my window stays open and I have a brief history until
you close the w
Here is what I have so far. It opens the Excel sheet, but doesn't write
anything to it.
require 'watir' # the watir controller
require 'win32ole'
# set a variable
test_site = 'http://www.google.com'
result1 = 'Default'
# open the IE browser
ie = Watir::IE.new
# prin
I am new to Watir, and am trying to build a small demo for management. Can
someone give me a quick example on replacing 'puts' with the command that
writes instead to a file? My DOS window closes immediately upon completion of
running a script and I can't see the results. Also, it there a 'pause
The fix was found at http://jira.openqa.org/browse/WTR-86
The solution is to copy win32ole.so
from
C:\ruby\lib\ruby\1.8\i386-mswin32
to
C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1100\watir\win32ole
___
Wtr-general mailing list
Wtr-general@ruby
I this that this patch might fix this problem:
http://jira.openqa.org/browse/WTR-107
I believe that a correct wait procedure needs to check every frame.
Bret
Danny R. Faught wrote:
> I'm having trouble getting a script to tell me accurately when a page
> has finished rendering. I'm running Wati
I'm having trouble getting a script to tell me accurately when a page
has finished rendering. I'm running Watir 1.4.1 with Ruby 1.8.5 on
Windows XP Pro SP2.
I'm clicking a link that opens a new browser window, then I attach to
the window. The attach returns before the contents of the window are
re
Any of the following works to click on the link:
$ie.image(:id, "popupImage1").click
$ie.image(:src, /button_arrows_round/).click
$ie.link(:id, "ID_OPEN_POPUP1").click
The result is the same, right button is flashed when used with .flash
and they all open the right window - BUT! Second time, af
To me this looks like a known problem with Watir and Ruby 1.8.5, and
unrelated to Vista. I suggest you try Ruby 1.8.2.
http://jira.openqa.org/browse/WTR-86
Please let us know if this fixes your problem.
Bret
Wyatt Preul wrote:
> Whenever I try to run a WATIR script on Vista I encounter the
>
I think you're looking for wget; Google it.
---Michael B.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of san
Sent: November 27, 2006 11:55 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Can Watir Download ".html" Pages...?
It Says That It
I don't have access to a Vista system and haven't tried running
scripts on it. What scripts are you trying to run and where is the
error? Does this happen if you simply open irb and do something like
this:
irb> require 'watir'
irb> include Watir
irb> ie = IE.start('http://www.google.com')
Or is th
On 11/27/06, sikander <[EMAIL PROTECTED]> wrote:
could u expalin me how to do that in detail?
--
*From:* <[EMAIL PROTECTED]>jackei**
I suggest that you can use CSV or XML
I suggest that you use yaml (http://yaml4r.sourceforge.net/cookbook/). I use
it.
--
Zeljko
http://www.ruby-doc.org/core/ ?!
sikander schrieb:
could u expalin me how to do that in detail?
*From:* [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] *On Behalf Of *jackei
*Sent:* Monday, November 27, 2006 7:20 PM
*To:* wt
> And Can You Tell Me Any Other Way To Save .html Pages Intact.
Take a look at http://forums.openqa.org/message.jspa?messageID=14044#14044
There is some code that can be used to save the page as rendered. (I believe
that ei.html only will give you the page as downloaded.)
~~ Egil
---
you might also try setting focus to the filename field , and then using autoit
to set the filename.
Zeljko, this works for me and it is much faster because it uses the handle of
the object.
require 'watir/contrib/enabled_popup'
$path = "C\:\\watir_bonus\\working\\MyDoc.txt"
de
Zeljko,
I just ran through the same steps you list below and didn't have a
problem. The use of autoit for controlling the window state of ie
hasn't changed for quite some time and should be installed as part of
your install. Is it working with previous gems on the same machine?
-Charley
On 11/22
It Says That It Needs An Absolute Path In ie.goto(), It Cant Recognize The
Array Elements Named [i]web[/i] Here
And Can You Tell Me Any Other Way To Save .html Pages Intact.
-
Posted via Jive Forums
http://forums.openqa.o
Zeljko, this works for me and it is much faster because it uses the handle of
the object.
require 'watir/contrib/enabled_popup'
$path = "C\:\\watir_bonus\\working\\MyDoc.txt"
def startClicker( button , waitTime=5, user_input=nil)
hwnd = $ie.enabled_popup(waitTime) # get a
Whenever I try to run a WATIR script on Vista I encounter the following
error, only after a new IE window appears. I believe that it is failing
when trying to navigate to a page. Also, I am running the development gem
1.5.1.1100 as you can see in the error message.
Started
c:/ruby/lib/ruby/gem
You could also just use table index. If you do a view source on the
page, then do a f. Beginning at the top of the page, put 'mailto:[EMAIL PROTECTED] On Behalf Of Angrez Singh
Sent: Thursday, November 23, 2006 9:46 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Table has no unique a
could u expalin me how to do that in detail?
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jackei
Sent: Monday, November 27, 2006 7:20 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Parameterization
I suggest that you can use CSV or XML rather than Excel
I suggest that you can use CSV or XML rather than Excel, because the
Watir's script won't execute if your machines haven't installed Excel.
On 11/27/06, Željko Filipin <[EMAIL PROTECTED]> wrote:
I do not know how to use Excel, but this is how you could simplify your
code (tested).
searches
On 11/27/06, san <[EMAIL PROTECTED]> wrote:
Ya It Worked... But I can't Open The Links Again by
webs = ie.links
webs.each do |web|
ie.goto(web) # This Line Produces Error... I Also Tried
web.to_s
output.puts(ie.html) # output is a .html file to be opened in w mode
end
If you po
lol lol :)
Ya It Worked... But I can't Open The Links Again by
webs = ie.links
webs.each do |web|
ie.goto(web) # This Line Produces Error... I Also Tried web.to_s
output.puts(ie.html) # output is a .html file to be opened in w mode
end
In Fact I Wanna Save All The Linked html Pages
On 11/27/06, san <[EMAIL PROTECTED]> wrote:
Will It Work?
webs = ie.links
webs.each do |web|
puts web
end
Try it and you will see if it works. :)
Can You Tell Me From Where Can I Get All These Watir Functions...?
Is There Any Good Quality Tutorial?
http://www.openqa.org/watir/watir_u
Thanks [b]Zeljko[/b]
But How Can I Save All These Links In An Array Of Strings?
Will It Work?
webs = ie.links
webs.each do |web|
puts web
end
Can You Tell Me From Where Can I Get All These Watir Functions...?
Is There Any Good Quality Tutorial?
I do not know how to use Excel, but this is how you could simplify your code
(tested).
searches = ["pickaxe", "Ruby", "Watir", "Watir and Ruby"]
searches.each do |search|
ie.text_field(:name, "q").set(search)
ie.button(:name, "btnG").click
end
--
Zeljko Filipin
zeljkofilipin.com
___
Hi All!
Here is the my code, for which i need parameterization
require 'watir'
require 'win32ole'
include Watir
test_site = 'http://www.google.com'
ie = IE.new
ie.goto(test_site)
#Search 1
ie.text_field(:name, "q").set("pickaxe")
ie.button(:name, "btnG").click
Is there a way to make file_field.set faster?
I have noticed that this is the slowest part of my tests. It takes about 10
seconds to set file field. I have read that it can not be set directly
because that would be security issue, but I wonder what I could do to make
it faster. I upload extremely
On 11/27/06, san <[EMAIL PROTECTED]> wrote:
Is It Possible To Save The Page As .html
ie.html will show you html of the page:
Or Is It Possible To Get All The Links In That Page
ie.links is array of all links at that page
Including Its Own url
ie.url will give you url of page
--
Zeljko F
Look At This Code Please...
[i]ie = Watir::IE.new
ie.goto('http://www.something.com')
ie.text_field(:name, "userid1").set(".")
ie.text_field(:name, "userpass").set(".")
ie.image(:src, /login/).click[/i]
Now Obviously After The Click A Page Opens. My Question Is, Is It Possible To
On 11/26/06, Allen Zhou <[EMAIL PROTECTED]> wrote:
So what shall I do?
Use 'begin..rescue..end' to ignore this exception?
If your script works and that exception just bugs you, rescuing it sounds
like a good idea.
Zeljko
--
zeljkofilipin.com
___
Wt
Could you send the code that you use to click that link?
Zeljko
--
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 11/25/06, san <[EMAIL PROTECTED]> wrote:
@ Zeljko : Yes, But I Wanted The Whole Process... i.e opening The 1st
Page, Entering My Given Data, Then Logging In... In The Background.i.eWhen IE
Will Open The Page,I'll Be Already Logged In...
Sanju,
I do not understand what you want to do. Can
34 matches
Mail list logo