[Wtr-general] Watir Assertions

2007-04-28 Thread Naga Harish Kanegolla
Hi all, Generally if i fill a form the values entered will go to the database and the data will be visible in the list automatically. So how can I do in watir whether the values are visible in the list ? How do i assert that? Thanks in Advance, Harish _

[Wtr-general] Alert popups,

2007-04-03 Thread Naga Harish Kanegolla
Hi all, Now i am able to click on the alert popup with watir, i followed the code form the FAQ's but later i copied the whole code into another machine, i am able to run all the test cases except the alert popup, that is not working in another machine, so wat mightbe the problem?? Its giving

Re: [Wtr-general] How to catch the exception in the window

2007-03-28 Thread Naga Harish Kanegolla
begin $f = "c:\\file.log" a = File.new($f,"a+") a.each {|x|} . . . your code here . . . rescue Exception => e a.puts e.to_s end ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Rarely, watir does not wait till the browser gets loaded fully

2007-03-28 Thread Naga Harish Kanegolla
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

[Wtr-general] Scheduler

2007-03-27 Thread Naga Harish Kanegolla
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/listi

Re: [Wtr-general] Water 1.5.1

2007-03-27 Thread Naga Harish Kanegolla
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

Re: [Wtr-general] Water 1.5.1

2007-03-27 Thread Naga Harish Kanegolla
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 ht

Re: [Wtr-general] Water 1.5.1

2007-03-27 Thread Naga Harish Kanegolla
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] Watir Recorder

2007-03-21 Thread Naga Harish Kanegolla
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://ruby

[Wtr-general] Watir Recorder

2007-03-21 Thread Naga Harish Kanegolla
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

[Wtr-general] using span

2007-03-16 Thread Naga Harish Kanegolla
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, bu

Re: [Wtr-general] Converting into LOG

2007-03-05 Thread Naga Harish Kanegolla
Hi Charley, I couldn't download that as its giving the error The page you were looking for doesn't exist. You may have mistyped the address or the page may have moved. Anyways thanks for the idea, and now i am able to log the output in to a log file and everything is working fine, But is

[Wtr-general] Converting into LOG

2007-03-02 Thread Naga Harish Kanegolla
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 "LOG"file so that it can be sent as an email. I tried for the reports in the page http://rub

Re: [Wtr-general] Executing all scripts at a time

2007-03-02 Thread Naga Harish Kanegolla
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.open

Re: [Wtr-general] Executing all scripts at a time

2007-03-01 Thread Naga Harish Kanegolla
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.

[Wtr-general] Getting the ajax link from the fixture

2007-02-28 Thread Naga Harish Kanegolla
Hi all, I have a link of this type a href="#" onclick="new Ajax.Request('/data_entry/ajax_add_term/133?contract_id=227', {asynchronous:true, evalScripts:true}); return false;">add a term ; I am accesing this type of link in watir using the way, ie.link(:html,/ajax_add_term\/133/).click t

[Wtr-general] Executing all scripts at a time

2007-02-22 Thread Naga Harish Kanegolla
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

Re: [Wtr-general] Delete link

2007-02-22 Thread Naga Harish Kanegolla
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 __

[Wtr-general] Selecting multiple terms with watir

2007-02-21 Thread Naga Harish Kanegolla
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.o

Re: [Wtr-general] Delete link

2007-02-18 Thread Naga Harish Kanegolla
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} "

[Wtr-general] Delete link

2007-02-16 Thread Naga Harish Kanegolla
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;">Dele

Re: [Wtr-general] Why this error and how to supress it?

2007-02-14 Thread Naga Harish Kanegolla
This occurs when u close the window in which watir is running. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6558&messageID=18698#18698 ___ Wtr-general mailing li

Re: [Wtr-general] Problem with Logon popup window

2007-02-14 Thread Naga Harish Kanegolla
So what can i do for logon popup window?? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6489&messageID=18697#18697 ___ Wtr-general mailing list Wtr-general@rubyfo

Re: [Wtr-general] Problem with Logon popup window

2007-02-14 Thread Naga Harish Kanegolla
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=6489&messageID=18669#18669

Re: [Wtr-general] Problem with Logon popup window

2007-02-13 Thread Naga Harish Kanegolla
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 --

Re: [Wtr-general] url for link

2007-02-12 Thread Naga Harish Kanegolla
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??

Re: [Wtr-general] url for link

2007-02-09 Thread Naga Harish Kanegolla
Hi Thanks a lot, It worked. I am using it a lot. But now i got another doubt if the link is 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 I used the ie.span(:index,10).click then it worked, but it will be the

Re: [Wtr-general] WIN32OLERuntimeError

2007-02-08 Thread Naga Harish Kanegolla
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 oth

Re: [Wtr-general] WIN32OLERuntimeError

2007-02-08 Thread Naga Harish Kanegolla
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?? -

Re: [Wtr-general] url for link

2007-02-08 Thread Naga Harish Kanegolla
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. ---

Re: [Wtr-general] Watir with Ajax

2007-02-08 Thread Naga Harish Kanegolla
Hi all, Thanks a lot, It worked for me, I just gave "sleep(2)" so that watir wait for some time and i am able to work with that. Thanks a lot, Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6378&m

Re: [Wtr-general] url for link

2007-02-08 Thread Naga Harish Kanegolla
HI , Thank You it worked for that link. But I am having the links of the same kind with same contract_id=227. add a term add a term add a term 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 ki

Re: [Wtr-general] Watir with Ajax

2007-02-01 Thread Naga Harish Kanegolla
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 typ

[Wtr-general] Watir with Ajax

2007-01-31 Thread Naga Harish Kanegolla
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 usi

Re: [Wtr-general] url for link

2007-01-31 Thread Naga Harish Kanegolla
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=6325&messageID=17989#17989 _

Re: [Wtr-general] url for link

2007-01-30 Thread Naga Harish Kanegolla
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=6325&messageID=17906#17906

[Wtr-general] url for link

2007-01-29 Thread Naga Harish Kanegolla
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 add a term So how could i use this url for the link in watir?? Please tell me the syntax in watir for using such type

Re: [Wtr-general] same text fordifferent urls..

2007-01-28 Thread Naga Harish Kanegolla
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??

Re: [Wtr-general] same text fordifferent urls..

2007-01-23 Thread Naga Harish Kanegolla
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=6183&messageID=17526#17526 _

Re: [Wtr-general] same text fordifferent urls..

2007-01-21 Thread Naga Harish Kanegolla
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 A

Re: [Wtr-general] same text for different urls.

2007-01-19 Thread Naga Harish Kanegolla
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.. add a term Thanks in Advance, Harish

Re: [Wtr-general] same text for different urls.

2007-01-19 Thread Naga Harish Kanegolla
Thats ok, Any idea regarding that?? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6181&messageID=17381#17381 ___ Wtr-general mailing list Wtr-general@rubyforge.or

Re: [Wtr-general] Watir with Ajax

2007-01-19 Thread Naga Harish Kanegolla
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, usin

Re: [Wtr-general] same text for different urls.

2007-01-19 Thread Naga Harish Kanegolla
Hey sorry, I want in watir.. sorry for the mistake.. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6181&messageID=17374#17374 ___ Wtr-general mailing list Wtr-gen

[Wtr-general] same text fordifferent urls..

2007-01-19 Thread Naga Harish Kanegolla
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

[Wtr-general] same text for different urls.

2007-01-19 Thread Naga Harish Kanegolla
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

Re: [Wtr-general] Watir with Ajax

2007-01-19 Thread Naga Harish Kanegolla
Sorry I gave the wrong html in the forum. This is my correct one. Please check this, Thank u.. Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6170&messageID=17356#17356 ___

Re: [Wtr-general] Watir with Ajax

2007-01-19 Thread Naga Harish Kanegolla
Hi This is the html for that text field.. Please tell me the wrong one i am doing.. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6170&messageID=17351#17351 ___

Re: [Wtr-general] Watir with Ajax

2007-01-18 Thread Naga Harish Kanegolla
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

[Wtr-general] Watir with Ajax

2007-01-18 Thread Naga Harish Kanegolla
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 ia