Re: [Wtr-general] Rarely, watir does not wait till the browser gets loaded fully
You can use sleep command like sleep(5) so that it will wait until it loads.. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Water 1.5.1
Yes, Its available, u can download the gem from this page, http://wiki.openqa.org/display/WTR/Development+Builds ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Water 1.5.1
I hope its better to follow the steps, If u are using watir one click installer then u can uninstall directly. If u installed watir with the gem then uninstall ruby, and install ruby and watir1.5 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Water 1.5.1
wen u did gem install watir did it gave the statement that Watir is successfully installed ?? If u get that message then ur watir is successfully installed , u can check that watir in the ruby gems folder like C:\ruby\lib\ruby\gems\1.8\gems u can check watir 1.5 folder in that folder, and try to run the test case, it will run successsfully ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Scheduler
Is there a way to run the test cases at scheduled time like i want to run all my test cases at morning 6'o clock, So how can i do that?? Thanks in Advance, Harish ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Watir Recorder
HI, Is Watir Recorder launched?? If so where can I get the installer?? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir Recorder
I tried to download the installer from this link http://www.openqa.org/watir-recorder/download.action but its a blank page and no installer is being downloaded. is there anything else?? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] using span
Hi all, I have a span link in which if we mouse hover on that link a form appears for us.It will be there still we cancel that form, And it does not work on click, So is there a way to automate that link using watir?? I used $ie.span(:class,popup_link).click but it doesn't open the form, but i tried mouse hover manually while watir is running then watir recognized the form, so can u please help me to open the form using the mouse hover? Thanks in Advance, Harish ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Executing all scripts at a time
Hi, Its working, The problem is I gave $ie=Watir::IE.new in every file, so that is the reason i am getting all the files. Now its working with both require and load, Thank you, Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6664messageID=19473#19473 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Converting into LOG
Hi all, Right now I am able to test all my test cases, and i am getting the out put lines in the console. Is there any possibility to get the whole out put and the test pass or fail result etc into a LOGfile so that it can be sent as an email. I tried for the reports in the page http://rubyforge.org/projects/test-report/ but we need to have like a log file, Please help me if there is any possibility. Thanks a lot, Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6765messageID=19486#19486 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Executing all scripts at a time
Hi, I am able to run all the tests by using require 'test1.rb' require 'test2.rb' require 'test3.rb' etc., but when i start the test it is opening 3 windows if there are 3 tests to run, i have nearly 15 tests then it opens 15 windows at a time and the test is running only in the last window. So How to solve this problem?? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6664messageID=19466#19466 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Delete link
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 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Selecting multiple terms with watir
Hi all, How could we find the multiple items in the select list using watir?? manually i use ctrl and click on the item for selecting multiple items. So is there a way to do with watir?? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6629messageID=18976#18976 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Delete link
no it didn't worked for me from the faqs. thisis my code; def startClicker( button , waitTime = 3) w = WinClicker.new longName = $ie.dir.gsub(/ , \\ ) shortName = w.getShortFileName(longName) c = start rubyw #{shortName }\\watir\\clickJSDialog.rb #{button }#{ waitTime} puts Starting #{c} w.winsystem(c) w=nil end and this is my watir code.. $ie.link(:url,http://localhost:3000/projects/destroy/153;).click startClicker(OK , 5) $ie.button(:value,'OK').click please tell me the error in this. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6581messageID=18860#18860 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Delete link
HI Could any body tell me how to use this type of links in watir?? a href=/projects/destroy/153 onclick=if (confirm('Are you sure to delete ?')) { var f = document.createElement('form'); this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href; f.submit(); };return false;Delete ,, If i click on delete a confirm box will get in that i want to click ok please tell me how to do that?? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6581messageID=18779#18779 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Problem with Logon popup window
HI It didn't worked for me according to the faq's... Can u please tell me how to do with modal_dialog?? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6489messageID=18669#18669 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Problem with Logon popup window
So what can i do for logon popup window?? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6489messageID=18697#18697 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Problem with Logon popup window
Hi, I too have the same problem, ,, This is my html.. a href=/login/logout onclick=return confirm('Are you sure you would like to logout?');LOGOUT ,,, when i click on that i'll be getting the confirm popup with ok and cancel buttons. So how to do such kind using watir?? Thanks, Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6489messageID=18626#18626 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] url for link
Hi Thanks, It didn't gave me any error but It didn't cliked on that. This is exactly my html souce. div id=ContractDoc dojoType=ContentPane label=Contract style=padding: 10px; overflow:auto; of this kind. This is exactly not a link, its a tab link. so how to click such type of links?? and the other type of link is div dojoType=TreeNode object=K title=span style='font-size:12px; font-weight:normal;text-decoration: underline;'Confidentiality/span objectId=28 I used the ie.span(:index,10).click then it worked, but it will be the problem if the index number changes, Please help me for such type of links.. Thanks in Advance - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6325messageID=18613#18613 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] url for link
Hi Thanks a lot, It worked. I am using it a lot. But now i got another doubt if the link is div id=ContractDoc dojoType=ContentPane label=Contract style=padding: 10px; overflow:auto; of this kind. This is exactly not a link, its a tab link. so how to click such type of links?? and the other typw of link is div dojoType=TreeNode object=K title=span style='font-size:12px; font-weight:normal;text-decoration: underline;'Confidentiality/span objectId=28/div I used the ie.span(:index,10).click then it worked, but it will be the problem if the index number changes, Please help me for such type of links.. Thanks in Advance - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6325messageID=18476#18476 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] url for link
HI , Thank You it worked for that link. But I am having the links of the same kind with same contract_id=227. a href=# onclick=new Ajax.Request('/data_entry/ajax_add_term/131?contract_id=227', {asynchronous:true, evalScripts:true}); return false;add a term/a a href=# onclick=new Ajax.Request('/data_entry/ajax_add_term/132?contract_id=227', {asynchronous:true, evalScripts:true}); return false;add a term/a a href=# onclick=new Ajax.Request('/data_entry/ajax_add_term/133?contract_id=227', {asynchronous:true, evalScripts:true}); return false;add a term/a So for this kind of links what should be done? I am having nearly 15 links of the same text with same type of ajax urls. Please help me for such kinds. Thanks in Advance, Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6325messageID=18373#18373 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] url for link
Hi, I tried the two types but its giving error. data_entry.eb.rb:16: syntax error, unexpected tINTEGER, expecting ')' ie.link(:html,/ajax_add_term/131/).click So any other ideas, i tried all the combinations. but its getting error. Please help me. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6325messageID=18387#18387 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] WIN32OLERuntimeError
I too got the same problem. Getting WIN32OLERuntimeError . Yesterday i executed my scripts well but today morning when i come over here i got the problem, I have installed dotnet frame work and Windows Vista upgrade advisor, so is that any problem?? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6466messageID=18454#18454 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] WIN32OLERuntimeError
Now I uninstalled the dot net frame work and Windows Vista upgrade advisor.But still i am getting the same problem, and even if i open the browser manually and i execute the script the problem is happening. Getting the error and its automatically opening the bulk of browsers. So is there any other solution?? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6466messageID=18455#18455 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir with Ajax
I can't send a link to my application as it is in my local host. I am sorry for this. The select option will be generating after i click on the link. Its ajax stuff. So that select can't be shown in the html. It is generating after the whole page is loaded. So wat should be done for such type of application?? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6378messageID=18056#18056 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] url for link
Hi, I got this working by using the index number. ie.link(:index,15).click. Thanks a lot, Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6325messageID=17989#17989 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Watir with Ajax
Hi all, we are having a lot of Ajax stuffs in our application. I need help for Ajax stuffs to be automated with watir. This is how my application looks. I have a search criteria with a link called search a term. If i click on that link an Ajax select will be opened.I need to select a term using watir but its not happening with watir. This is my code.:: ie.select_list( :name , criteria[1][type_id]).select(xyz) Its giving me the error c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1939:in `assert_exists': Unable to locate object, using name and criteria[1][type_id](Watir::Exception::UnknownObjectException) Also this select is shown in the html view source as this is ajax, it is loaded after the page is loaded. so is there any way to automate this with watir. I hope i am missing some thing. Please help me regarding this. Thanks in Advance, Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6378messageID=17991#17991 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] url for link
Hi, I tried using ie.link(:text,add a term) but i have add a term link more than 10 in the same page. So how could i use that?? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6325messageID=17906#17906 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] url for link
Hi all, Till now I am using ie.link(:url,http//www.xyz/abc.html) for a link in watir.Now I have a problem for the ajax link. i.e., the url obtained in the html source is a href=# onclick=new Ajax.Request('/data_entry/ajax_add_term/131?contract_id=227', {asynchronous:true, evalScripts:true}); return false;add a term/a So how could i use this url for the link in watir?? Please tell me the syntax in watir for using such type of ajax links. Actually i am having the same add a term more than 10 . so i can't use the text link.Please help me out such types. Thanks in Advance Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6325messageID=17798#17798 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] same text fordifferent urls..
Hi Thats only a typo mistake which i gave in this forum. But in my code it looks correct. And one more thing, I couldn't get the code of that link in the html source code. I hope AJAX is not updating the html source.So how to over come this problem?? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6183messageID=17743#17743 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] same text fordifferent urls..
Its giving the error Unable to locate object url and http://localhost:3000/data_entry/ajax_add_term/133?contract_id=140; - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6183messageID=17526#17526 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] same text fordifferent urls..
Hi thank u,its working for the general urls, but not for the ajax links, can u please help me for the ajax links. This is the code i used. ie.link(:url,http://localhost:3000/data_entry/ajax_add_term/133?contract_id=14 0).click This is the generated html.. [add a term] is the link. Thanks in Advance, Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6183messageID=17458#17458 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir with Ajax
Hi This is the html for that text field.. input id=app_feedback_title name=app_feedback[title] size=30 type=text / Please tell me the wrong one i am doing.. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6170messageID=17351#17351 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir with Ajax
Sorry I gave the wrong html in the forum. This is my correct one. Please check this, input id=contract_my_document_title name=contract_my_document[title] size=30 type=text / Thank u.. Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6170messageID=17356#17356 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] same text for different urls.
Hi all, How to click on the links based up on the href rather than the text? Ex:: I am having the same text with different ids. i.e., we are having 30 add a term links..For different links having different href (url). so how could i code using selenium for this kind of hrefs. Please help me regarding this.. Thanks in Advance, Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6181messageID=17363#17363 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] same text fordifferent urls..
Hi all, How to click on the links based up on the href rather than the text? Ex:: I am having the same text with different ids. i.e., we are having 30 add a term links..For different links having different href (url). so how could i code using watir for this kind of hrefs. Please help me regarding this.. Thanks in Advance, Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6183messageID=17365#17365 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] same text for different urls.
Hey sorry, I want in watir.. sorry for the mistake.. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6181messageID=17374#17374 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir with Ajax
HI, But its not working for me. Basically its working for all the text_fields. But not working for this, I hope its becoz the form is rendering dynamically thru ajax call. This is the error.. Error:: c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1939:in `assert_exists': Unable to locate object, using name and contract_my_document[title] (Watir::Exception::UnknownObjectException) from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3393:in `set' - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6170messageID=17375#17375 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] same text for different urls.
Thats ok, Any idea regarding that?? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6181messageID=17381#17381 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] same text for different urls.
Hi thank u,its working for the general urls, but not for the ajax links, can u please help me for the ajax links. This is the code i used. ie.link(:url,http://localhost:3000/data_entry/ajax_add_term/133?contract_id=140;).click This is the generated html.. a href=# onclick=new Ajax.Request('/data_entry/ajax_add_term/131?contract_id=140', {asynchronous:true, evalScripts:true}); return false;add a term/a Thanks in Advance, Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6181messageID=17388#17388 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Watir with Ajax
Hi all, I am using watir for my application. Its very interesting.. I am using lot of ajax for my application. When i click a link an ajax form opens, till here i am able to work with watir, but i can't enter value in the ajax form. Its giving me the error Unable to locate the object. But iam giving the correct object. I am having the problem only with ajax. Please help me regarding this. Thanking you, Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6170messageID=17305#17305 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir with Ajax
HI, I used this code :: ie.link(:text,add to my contracts).click ie.text_field(:name, contract_my_document[title]).set(harish) where add to my contracts is the link, in which if we click on that link i'll be getting an ajax form. In that Title is the text_field. the name of that title is contract_my_document[title]. SO i gave ie.text_field(:name, contract_my_document[title]).set(harish) then its giving element contract_my_document[title] not found. So please help me regarding this. Thanks in Advance, Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6170messageID=17338#17338 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general