Re: [Wtr-general] Question About Test Suite
Yes, and your tests function must be start with 'test_' in every "test case" file ... (http://rubyforge.org/pipermail/wtr-general/2006-July/006762.html) - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6414&messageID=18212#18212 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] hypertext is present ?
Hi everyone, Do you know how to know if an hypertext link is present and return a Failures is the link is not present . Like this : [b]html :[/b] [i]Cst_AS[/i] [b]watir/ruby code :[/b] [i]assert_contain(true , ie.link(:text, 'Consultation des AS'))[/i] I don't find an assert fonction to check this ... - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6436&messageID=18221#18221 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] hypertext is present ?
Yes , it's that ! - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6436&messageID=18224#18224 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] hypertext is present ?
Finnaly , i fond the solution ! The solution is : [b]assert(ie.link(:text, "Cst_AS").exists?,"This link don't exist !")[/b] - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6436&messageID=18222#18222 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] href javascript
Hello, I got a problem, i don't find how to click on a hypertext link [b] Symbole input type="text" name="critere.symbol.symbole" maxlength="10" size="10" value="" readonly="readonly"> a href="Javascript:selection(null, 'critere.symbol.symbole','distinct symb,\'(\' || symb || \')\',libelle,symb as CLE','symb,libelle','','tb_assymb','symb,libelle','symb','CLE',1,true);" class="lienblanc"> >> [/b] This link is on a javascript fonction, and the text of this hypertext link is ">>". There is many other hypertext with this link, so i can't use the :text method to click on it... how can i click on it ? If anyone got the answer :-) i will be happy ! - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6498&messageID=18463#18463 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] href javascript
i got more information. When i type ie.show_links on irb i got this : [b] irb(main):006:0> ie.show_links index nameid href text/src 1 http://forums.int.sncf.fr/ / http://localhost:7001/Jsp/images/ent_forum_off.gif 2 http://annuaire.int.sncf.fr/ / http://localhost:7001/Jsp/images/ent_annuaire_off.gif 3 http://recherche.int.sncf.fr/ / http://localhost:7001/Jsp/images/ent_recherche_off.gif 4 http://aide.int.sncf.fr/ / http://localhost:7001/Jsp/images/ent_aide_off.gif 5 http://localhost:7001/index.do Accueil 6 http://localhost:7001/gestion/consultationAS.do Cst_AS 7 http://localhost:7001/gestion/creationEvenement.do ?cancelType=3Evt_AS 8 http://localhost:7001/gestion/modificationAS.do Modif_AS 9 http://localhost:7001/gestion/suppressionAS.do Destruct_AS 10http://localhost:7001/gestion/creationPG.do Incp_PG 11http://localhost:7001/gestion/suppressionPG.do Supr_PG 12http://localhost:7001/gestion/restitutionEvnmt.do Cst_EVT 13http://localhost:7001/gestion/suiviMajFAS.do Clst.MAJ 14javascript:nop();selectEquipementInList('critere.l ocDepart.label',%20'critere.locDepart.value',%20'false',%20'false');>> [u]15 javascript:selection(null,%20'critere.symbol.symbo le','distinct%20symb,\'(\'%20||%20symb%20||%20\')\',libelle,symb%20as%20CLE','sy mb,libelle','','tb_assymb','symb,libelle','symb','CLE',1,true);>>[/u] 16javascript:selectionSymbole('critere.symbol.constr ucteur','critere.symbol.constructeurLib',1,%20true);>> 17javascript:selectionSymbole('critere.symbol.lettre ',%20'critere.symbol.lettreLib',%202,%20false);>> => nil [/b] When i try to access to this link with it's id, like this : ie.link(:index,"15").click I got this response : [b] 1) Error: test_fasnouvsymboletrechavancee(TC_fasnouvsymboleetrechavancee): Watir::Exception::UnknownObjectException: Unable to locate object, using index and 15 C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1928:in `assert_exists' C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2009:in `click' C:\Commun\Developpement\workspace\TestFonctio/tc/description/recherche/t_c_fasnouvsymboleetrechavancee.rb:51:in `test_fasnouvsymboletrechavancee'[/b] - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6498&messageID=18466#18466 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] href javascript
thank you but it doesn't work ... I use watir-1.4.1 version... and it say : [b]Watir::Exception::MissingWayOfFindingObjectException: :html is an unknown way of finding a link ( critere.symbol.symbole )[/b] - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6498&messageID=18490#18490 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] href javascript
Ok , i have installed the 1.5.1.1145 version of watir ... But i don't understand what i can find the row and cols number (there is many table on my form ...) . Do you have a tool ? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6498&messageID=18503#18503 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] href javascript
Thank to everyone !!! you 've resolve my question ! :-) - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6498&messageID=18569#18569 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] 'ie.close' or 'ie.close if ie'
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". 2- My iexplore.exe have it's since increase to 115000 KB and it crash ... to do this , i have a testsuite and many (~35) testcase. Every testcase open an ie windows [b](ie = Watir::IE.start("http://localhost:7001/description/simulerSumatra.do";)[/b] , do it's test and close the ie window [b](ie.close if ie)[/b] [i]More information : watir 1.5.1.1145 ruby 1.8.5 WinXP SP2[/i] Any awnsers will be appreciated :-) - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6562&messageID=18707#18707 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] How to use the new IE.new_process method
hi everyone, Do you know how to use the new IE.new_process method. And the new IE#kill methode because i'm getting intermittent RPC errors when opening windows... if you can explain to me with a sample ... i'll appreciate :-) - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6569&messageID=18731#18731 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] How to use the new IE.new_process method
hi everyone, Do you know how to use the new IE.new_process method. And the new IE#kill methode because i'm getting intermittent RPC errors when opening windows... if you can explain to me with a sample ... i'll appreciate :-) - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6568&messageID=18730#18730 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Watir + IE dev toolbar
Hello, I have find a problem. When i lunch a (big ? ~30 TestCase) testsuite in watir. After a few time, i have the IE 's window witch freeze ... it's stay blank ! When i disable the IE dev toolbar (complementary module), all is ok ! that's all :-) - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6590&messageID=18811#18811 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Pass links text to array
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 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Pass links text to array
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://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Pass links text to array
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?threadID=6643&messageID=19040#19040 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir + IE dev toolbar
Cool :-) My version of IE dev toolbar is : 1.00.2109.0 (tools/about) ... - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6590&messageID=19268#19268 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir + IE dev toolbar
You can enable or disable the complementary module (tools / complementary module) ... - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6590&messageID=19330#19330 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Count checked checkbox
Hi everybody, Do you know how can i count the number of checked 's checkbox on a form... Cheers, Fabien ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Count checked checkbox
Ok thank you very much for your explain... This code work ! Fabien ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Watir + Autoit + Save As
Hi everyone, Do you know how can i use watir to 'pilot' a 'save as' internet explorer form ? I already found this code : - *autoit = WIN32OLE.new("AutoItX3.Control")* *autoit.WinWait("Téléchargement de fichier", "Voulez-vous ouvrir ou enregistrer ce fichier ?", 15)* *autoit.ControlClick("Téléchargement de fichier", "", "Button2")* *autoit.WinWait("Enregistrer sous", "Enregistrer sous", 15)* *autoit.ControlSetText("Enregistrer sous", "Enregistrer &dans :", "Edit1", "c:\test.zip")* *autoit.ControlClick("Enregistrer sous", "Enregistrer &dans :", "&Enregistrer")* - The line number 1 : Return 1 The line number 1 : Return 1 The line number 1 : Return 1 The last one return 0 And with this code i got the focus on the 'save as'(Enregistrer sous) button ... I really don't understand why i can't click on it because the 'ControlClick' function is build to do that ! :-) Any help will be highly appreciated ! :-) Some complementary informations : - +http://rubyforge.org/tracker/index.php?func=detail&aid=2467&group_id=104&atid=490+ +http://www.autoitscript.com/autoit3/docs/functions.htm+ +WinXp Sp2 (French)+ +ruby 1.8.5 (2006-08-25) [i386-mswin32]+ +watir-1[1].5.1.1145 (gem)+ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir + Autoit + Save As
Thank's, Yes i already do that, and the control take the focus, but it don't want to click on it ... :-( Any suggestion ?? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir + Autoit + Save As
Ok, But I don't want just to save the html code... When I click on a button, that open a windows popup (a 'save as' window) that I use to save a file to the HDD. I tried this but it doesn't work : ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general