[Wtr-general] get index of element

2007-01-16 Thread Luke
is it possible to get index of element? eg. is there a method which does logic like this ie.link('name').getIndex() Luke ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] get index of element

2007-01-16 Thread Luke
I found solusion eg. for links it would be ie.show_links(), this method displayed list which contains such details like index of each link ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] same name of elements

2006-11-06 Thread Luke
I have a few elements with the same name on the web, I can't catch them just by index, is it possible to catch them somehow? like element.(:name, ). and then the index somehow? ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] same name of elements

2006-11-06 Thread Luke
thanx a lot Bret, that's what I'm asking. I made mistake and misleadyouguys,sorry. I'm looking for linkby text notby name, but I suppose it doesn't matter and similarcodewillwork ie.link(:text = 'linktext',:index = 2).click am I right?Luke ___ Wtr

[Wtr-general] same id elements

2006-10-25 Thread Luke
hi is it possible to catch elements which have same type of id e.g. ie.link(:id, /regularexpression/) and catch the index somehow? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] file download

2006-09-28 Thread Luke
ok thnx, what a about bigger files? downloading something that is invoked by the link click? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] file download

2006-09-25 Thread Luke
Can you show me the example of this www:mechanize beacuse i don't know how to do itthnx Luke ___Wtr-general mailing listWtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr

Re: [Wtr-general] report failure question?

2006-09-22 Thread Luke
I just want to make assert of link, after i remove rescue block, assert method works and I can see that test failed on report, but it skips my test case and I wish to avoid it, I want to add some extra information to my logger file when test fails def test_namemethod begin assert($ie.link(:text,

Re: [Wtr-general] report failure question?

2006-09-22 Thread Luke
I answer myself I've done something like this:beginassert($ie.link(:text, 'name_of_link').exists?)rescue =e#my extra code to do something when assert failed, then i return exceptionraiseend now it seems to work, does anyone know better way?Luke ___ Wtr

[Wtr-general] cell access

2006-09-22 Thread Luke
Sorry for asking but I can't deal with it, I've got a table on page and I want to get to the cell Action can someone show me how to do it,I can't firgure out and fail all the time table id=form1:ReportUnit:tblDetails style=font-size: 11px;width: 640px class=Tbl border=0 cellpadding=0

[Wtr-general] report failure question?

2006-09-21 Thread Luke
to fail, failure column in report is empty, can you tell me how can I get information when test was done and when fail and present it in report? now I put log to file if assert fails Luke ___ Wtr-general mailing list Wtr-general@rubyforge.org http

[Wtr-general] file download

2006-09-20 Thread Luke
is it possible to download a file from page without invoking window to specify name file, path, dialog with save, cancel buttons, can make it automatically, just specify link to a file and path in code ?Luke ___ Wtr-general mailing list Wtr-general

[Wtr-general] dynamic tree attributes

2006-09-18 Thread Luke
I have dynamically generated tree, not like in example, attributes like names and id are half static and half dynamic way - prefixes are static, suffixes depend on records from database, I can't click on such element because of that, do you know if there's a way to handle it with watir? thnx

[Wtr-general] javascript tree

2006-09-17 Thread Luke
as I try to invoke code to handle javascript tree it doesn't work, can someone check if code in FAQ is alright? thnx ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] javascript functions

2006-09-15 Thread Luke
I have _javascript_ functions defined on the page, how can I access to it from watir? can some one show me the examplethnxLuke ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] creating test suites

2006-09-14 Thread Luke
require 'stringio' solved the problemthnx Charley ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] test_output

2006-09-14 Thread Luke
I generate html report by test report package just like in example, now I want to add some extra strings to test_out.txt file generated by report, is there a method to do so?Luke ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org

Re: [Wtr-general] test_output

2006-09-14 Thread Luke
Thnx I use assertions and now after it succeed or failed i want to generate message to file which will be linked to report default generated by reporter, as I noticed reporter produces a file test_output already linked to report and containing messages from console after compilation, what I want

[Wtr-general] creating test suites

2006-09-13 Thread Luke
I practice at ruby and I've done some example test case,now I would like to create test suite and generate reportcan someone look at this code and explain me what's wrong? I still get message :C:/Test/ruby/lib/ruby/site_ruby/1.8/test/unit/ui/reporter.rb:63:in `run': uninitialized constant

[Wtr-general] watir examples

2006-09-11 Thread Luke
hi, I'm looking for some more examples of watir, scripts which would extend those on wtr.rubyforge, are there any other places on net where I can find them, I wish the would apply to Technical Docs on wtr sitethanx 4 help ___ Wtr-general mailing list

Re: [Wtr-general] attach

2006-09-11 Thread Luke
Thnx ZeljkoI had already read these paragraphs before, but still when I try to compile simple code it doesn't work. Let me show you the examples, it fails all the time. Maybe you know what is wrong? require 'watir'include Watirrequire 'test/unit'class AttachClass Test::Unit::TestCase def

Re: [Wtr-general] attach

2006-09-11 Thread Luke
thnx now it works somehow, but still it's not exectly alright, if I add new line below the before the end of method ex.ie3=IE.start('http//:www.googl.com') somethimes I receive such error message similiar to the previous one

Re: [Wtr-general] attach

2006-09-11 Thread Luke
Thnx, it wasn't syntax error, I haven't forgotten about e in orginal code, I guess it was rather environment error, beceause I checked the code on the other machine anditseemstoworkthnx4help Luke ___ Wtr-general mailing list Wtr-general@rubyforge.org