Do you have tested this ? :
[b]s = ie.div(:id, top).text.each { |t| puts t.to_s }[/b]
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6643messageID=19031#19031
In my opinion, Watir is absolutely what we need. A smallish tool for the
job, which can be extended at your will. That is why, among other
reasons, I believe Bret started this thing, a tool with no vendorscript,
but with a proper programming language. The tool allows you to do the
things that are
is it returning the id ?
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6643messageID=19037#19037
___
Wtr-general mailing list
Wtr-general@rubyforge.org
If you want text of each link in an array, you can do it like this (this is
from irb session with your html).
irbarray = []
= []
irbie.links.each {|link| array link.text}
= 0
irbarray
= [, Austria, Belgium, Bulgaria, Croatia, Cyprus, Czech
Republic, Denmark, Estonia, Finland, France, Germany,
Hi,
I have several [b]Delete[/b] caption button on page , To identify them i am
trying to use multiple properties but its giving error some thing like this
ie.button(:text='Delete',:index=1)
please anybody tell me how solve this problem.
thanks
Simba
No they not id. these are just in
href=/modx3/index.php?id=20 title=Bulgaria Bulgaria
I need to get bulgaria in the array.
thank you
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6643messageID=19039#19039
it's maybe the :index ...
have you tried to use the index:
1- use a for
2- with the for , you can check every link with the ie.link(:index,
variable).click
-
Posted via Jive Forums
Mind reading does not work (The Braidy Tester).
Please send us your error message.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
It works for me. I have Watir 1.5.1.1158. If you are not using this version,
I suggest upgrade.
http://wiki.openqa.org/display/WTR/Development+Builds
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
yes that's true. it works with watir 1.5.XX.
but the problem is my test which runs well in Watir 1.4.1 ie6 doesn't run
with watir 1.5.xx and IE 6. I am getting the following error. any help
appreciated
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:2592:in
`method_missing':
So far I didn't find any solution to access child nodes of a particular
element, if anybody knows any method or hack please post it here.
I have to iterate over child div's of a container div.
-
Posted via Jive Forums
solved, Thank you to every one.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6643messageID=19057#19057
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Hi Bret
This is one sample testcase
require File.dirname(__FILE__) + '/../../../test_helper'
require File.dirname(__FILE__) + '/../../../Methods/ProcessRecords'
require File.dirname(__FILE__) + '/../../../Methods/RuleCreation'
class RuleTemplateWithRule_test Test::Unit::TestCase
def setup
Walter Kruse wrote:
I just wish the Win32-GUITest library could get the same amount of
attention. I've had lots of success with Perl's version of this lib.,
and would like to do that testing in Ruby now.
Maybe you could give it some attention. Seriously, there is no one to do
this stuff
sathees wrote:
I am running watir 1.4.1 , if I update to 1.5.1 then my test is not running
in IE 6
Please report details. We are giving top priority to these problems.
Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
sathees wrote:
i am getting an error i have added the div to where the links i want are
located.
irb(main):363:0 s=[]
= []
irb(main):364:0 ie.div(:id, top).links.each {|link|slink.text}
NameError: undefined local variable or method `document' for
#Watir::Div:0x2dfdafc
from
Akhil Mehra wrote:
Hi Guys,
I am currently trying to use Watir (1.5.1.1158) to test Web
applications in our organization. The web application i am trying to
build test around have a number of Frames and IFrames and in a number
of cases heavily nested.
I am currently facing problems
sathees wrote:
yes that's true. it works with watir 1.5.XX.
but the problem is my test which runs well in Watir 1.4.1 ie6 doesn't run
with watir 1.5.xx and IE 6. I am getting the following error. any help
appreciated
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:2592:in
Simba wrote:
Hi,
I have several [b]Delete[/b] caption button on page , To identify them i am
trying to use multiple properties but its giving error some thing like this
ie.button(:text='Delete',:index=1)
please anybody tell me how solve this problem.
This is a known (to me) problem.
Thanks.
I would be great if there is a way to to get all child nodes under particular
node.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6648messageID=19062#19062
Hi please help me for the above problem, I couldn't fidgure out the problem
till now, please help me regarding that..
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6581messageID=19069#19069
Maisonnette wrote:
Hi everyone ,
I have two question for you !
1- I don't know what 's the difference between the ie.close and the
ie.close if ie.
In the first case if ie is nil (i.e. has not been initilized), then you
will get a missing method 'close' for nil error. In the second case,
bret,
I don't have time to look into this right now (too much going on at work), but
something is up with 1158. I have areas in my app where it just waits forever
(never used to happen) and its spitting out access denied errors constantly
(single server). I reverted back to ruby 1.8.2 and
On 2/22/07, Vamsee Krishna [EMAIL PROTECTED] wrote:
I would be great if there is a way to to get all child nodes under
particular node.
There is always xpath. What do you need? Code that I posted previously does
not do what you need?
--
Zeljko Filipin
zeljkofilipin.com
Hi Bret
Sorry I missed the wrapper code that i have written
require 'watir'
include Watir
include SupportsSubElements
module SupportsSubElements
def _getNikiraLink(links, how, what)
link = nil
case how
when :index
begin
The access denied errors will no longer show up with the latest code in
trunk. It's now swallowing all the access denied errors as a temporary work
around.
There's a possible solution used by Colin Neller in Watin(.net version of
watir):
On 2/22/07, Walter Kruse [EMAIL PROTECTED] wrote:
Bret,
I had a look long ago at Piotr Kaluski's very detailed docs for Perl's
Win32GuiTest
(http://www.piotrkaluski.com/files/winguitest/docs/winguitest.html).
He even lists some C code examples. I'm afraid C is a little beyond
me...
Wayne
As a side note, I just found out another possible
case where the cross site
cripting/frame access problems will happen when the
frames are being served
by the same domain *and* you have proxy enabled in ie
which would explain
some issues I've encountered.
I have frames being served from
I have this snippet of code that I have modeled after the 'Printing Results
When Using Assertions' in the WATIR User Guide. My assert is working, in the
assertion count, but the puts message is always Test Failed. The 'You have
been signed in' text is verbatim what is on the IE page. Can
Hi Bret,
No the applications is currently hosted on the same server. I get the
following error when clicking on a link from one frame which inter updates
another frame.
Exception: unknown property or method `readyState'
HRESULT error code:0x80070005
Access is denied.
The error
Thanks Bret , Toady i have seen that limitation in Watir site , i did not knew
this limitation in Watir and also i am new to Watir , I have another question
for you
For some page I used ie.show_all_objects in CMD , it has given ouput something
like this
HTML Docuemnt name=Quickwatch
I have solved this. Thanks
string = ie.div(:id, showingDiv).text.to_s
string = string.gsub(/Now Showing Hotels 1 to 10 of /, '')
puts string
= 234
-
Posted via Jive Forums
32 matches
Mail list logo