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
http://forums.openqa.org/thread.jspa?threadID=6557&mes
Hallo World,
How can I say start a test @ 6 pm or so?
if I pass the time to a variable like t = "18:00:00" then its a string and I
can't say
if Time.now == t
start test 1
elsif Time.now == t + 1
start test 2
end.
any help appreciated
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 id=quickw
Hi all,
I have all the test cases files in a folder called watir in the test
directory in my application.
Right now i am executing these scripts one by one. Is there a way to execute
all the scripts at a time?? If so please help me the code..
Thanks and Regards,
Harish
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
I'm no expert on assert, but heres what I would try
Do a puts ie.text (i think there is a text, if not html) and confirm you can
see it
maybe the text you want is in a different frame?
-
Posted via Jive Forums
http://forums.openq
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 any
> 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
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...
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):
http://www.colinneller.com/blog/PermaLink,guid,64eac67e-df
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
lin
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
_
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 1145
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 s
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...
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMA
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=6581&messageID=19069#19069
__
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=6648&messageID=19062#19062
___
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
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
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 p
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|s< NameError: undefined local variable or method `document' for
> #
> from c:/ruby/lib/ruby/site_r
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
http://rubyforge
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
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
solved, Thank you to every one.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6643&messageID=19057#19057
___
Wtr-general mailing list
Wtr-general@rubyforge.org
ht
Is this what you need?
1
2
irb> ie.div(:index, 1).divs.each {|div| puts div.text}
1
2
=> 0
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
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
http://foru
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': docume
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
http://rubyfo
"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
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|s<
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:899:in `getLink'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2830:in
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
http://forums.openqa.org/thread.jspa?thread
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=6643&messageID=19039#
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
-
If you want text of each link in an array, you can do it like this (this is
from irb session with your html).
irb>array = []
=> []
irb>ie.links.each {|link| array << link.text}
=> 0
irb>array
=> ["", "Austria", "Belgium", "Bulgaria", "Croatia", "Cyprus", "Czech
Republic", "Denmark", "Estonia",
is it returning the "id" ?
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6643&messageID=19037#19037
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://
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 n
the contents as following. . .
Countries of Europe
Austria
Belgium
Bulgaria
Croatia
Cyprus
Czech
Republic
Denmark
Estonia
Finland
France
Germany
Greece
Hungary
Iceland
Ireland
Italy
Latvia
Liechtenstein
Lithuania
Luxembourg
Malta
Monaco
Netherlands
Norway
Poland
Portugal
Romania
Russia
Slova
I tried that and it inserts some numbers which i don't know where it is coming
from, to the array.
puts s[0] returns 67
puts s[1] returns 111
puts s returns all text in the links.
why is that happening.
I am running watir 1.4.1 , if I update to 1.5.1 then my test is not running in
IE 6
thank
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=6643&messageID=19031#19031
40 matches
Mail list logo