[wtr-general] How to get the values of the text box?

2009-04-17 Thread Durgesh Nadkarni
Hi, I want to know how can we get the values of any text box in WATIR. We can use textboxname.set to enter the value in the text box. So is there any way by which we can get the dynamically generated values in the textbox stored it in some variable. Thanks Regards Durgesh.

[wtr-general] How to continue with the script execution when any assertions fails?

2009-04-20 Thread Durgesh Nadkarni
Hi, I want to know how can we continue with the script execution when assert condition fails. The control does not go ahead from the line where the assert condition fails. For example suppose I have following assert condition assert(ie.pageContainsText(some text)) Then if the above condition

[wtr-general] Error for verify method

2009-04-21 Thread Durgesh Nadkarni
Hi, I have installed the ruby 1.8.6 and WATIR 1.6.2.. I am using Test::Unit assertions. I have tried the verify method but when I ran the script it has given me the error as undefined method 'verify'. Is there any specific library which I need to include for verify method? And is the below

[wtr-general] How can I compare the captured web pages

2009-05-08 Thread Durgesh Nadkarni
Hi, I have used following method to capture the image of a web page screen_capture(keywords.jpg,true) Then I have captured the one more page. Now I want to compare both the pages. What method can I use? Also how can I compare a specific portion of a page with other page? Please update me on

[wtr-general] Re: How can we take screen shot when error occurs?

2009-05-12 Thread Durgesh Nadkarni
...@gmail.com Subject: [wtr-general] Re: How can we take screen shot when error occurs? To: Watir General watir-general@googlegroups.com Date: Monday, 11 May, 2009, 5:13 PM Give me the code  that your using. On May 11, 4:13 pm, Durgesh Nadkarni durgeshnadka...@gmail.com wrote: Hi, I want

[wtr-general] Re: How can we take screen shot when error occurs?

2009-05-12 Thread Durgesh Nadkarni
is not working at the moment   screen_capture(keywordserror.jpg,true) Thanks, kiran. On May 12, 12:02 pm, Durgesh Nadkarni fordurg...@yahoo.co.in wrote: Hi Kiran, Thanks for the reply. Please find the code below. require 'test/unit' require 'watir' require 'watir/assertions' require 'watir

[wtr-general] Re: How can we take screen shot when error occurs?

2009-05-12 Thread Durgesh Nadkarni
.  .click waits for the next screen to load which doesn’t happen until after the error window has been dealt with.       /\/\ark   From: watir-general@googlegroups.com [mailto: watir-general@googlegroups.com ] On Behalf Of Durgesh Nadkarni

[wtr-general] Re: How can we take screen shot when error occurs?

2009-05-13 Thread Durgesh Nadkarni
Hi John, Thanks for your solution. But still it does not work the way I want. Its not capturing the second image with alert error after clicking search button. Below is my code. -- require 'test/unit' require 'watir'

[wtr-general] How can we enter data in excel sheet?

2009-05-22 Thread Durgesh Nadkarni
Hi, I am using following code to check the validaity of different user inputs using data driven test. require 'test/unit' require 'xls' require 'watir' class Gmail Test::Unit::TestCase def test_Gmail_Working xlFile = XLS.new(Dir.pwd +

[wtr-general] Re: How can I compare the captured web pages

2009-05-25 Thread Durgesh Nadkarni
(NewImage.jpg)) Compare that two md5 hash. Michael From: Durgesh Nadkarni durgeshnadka...@gmail.com To: watir-general@googlegroups.com Sent: Friday, May 8, 2009 4:13:17 AM Subject: [wtr-general] How can I compare the captured web pages Hi, I have used following method to capture the image of a web page

[wtr-general] Re: How click an image?

2009-05-27 Thread Durgesh Nadkarni
Hi Zeliko, Thank U very much... It works... Regards Durgesh --- On Tue, 26/5/09, Željko Filipin zeljko.fili...@wa-research.ch wrote: From: Željko Filipin zeljko.fili...@wa-research.ch Subject: [wtr-general] Re: How click an image? To: watir-general@googlegroups.com Date: Tuesday, 26 May, 2009,

[wtr-general] Re: How can I compare the captured web pages

2009-05-27 Thread Durgesh Nadkarni
: Tuesday, 26 May, 2009, 10:59 PM if first == second   puts same else   puts not the same end From: Durgesh Nadkarni fordurg...@yahoo.co.in To: watir-general@googlegroups.com Sent: Monday, May 25, 2009 3:12:39 AM Subject: [wtr-general] Re: How can I compare the captured web pages Hi Michael

[wtr-general] How can we verify whether link is deactivated?

2009-06-09 Thread Durgesh Nadkarni
Hi, I want to verify that a particular link is deactivated after certain event. For ex. On clicking 'Previous' link I can go back to previous page. But I want check the same previous link is not active on the first page. One way to check this is writing normal click link code, in which case it

[wtr-general] Re: How can we verify whether link is deactivated?

2009-06-09 Thread Durgesh Nadkarni
@googlegroups.com Date: Tuesday, 9 June, 2009, 1:34 PM On Tue, Jun 9, 2009 at 8:22 AM, Durgesh Nadkarni durgeshnadka...@gmail.com wrote: I want to verify that a particular link is deactivated after certain event. How does the link look when it is active and how does it look when it is not active? Can

[wtr-general] Running scripts on Mozilla 1.5.0.3

2009-06-16 Thread Durgesh Nadkarni
Hi, I have installed the mozilla version 1.5.0.3. But when I ran the scripts it gave me following error. = 1) Error: test_Gmail_Working(Gmail): Watir::Exception::UnableToStartJSShException: Unable to connect to machine : 127.0.0.1 on port 9997. Make sure

[wtr-general] Getting error as - gem_original_require': no such file to load -- Xls (LoadError)

2009-07-10 Thread Durgesh Nadkarni
Hi, I have installed the ruby 1.8.6 and WATIR 1.6.2. I have created a script which fetches the data from excel sheet perform the operations. Then I have kept the following code in a common file inside 'Library' directory which gets data from excel sheet. require

[wtr-general] Re: How to click the link in dynamically generated ajax content?

2009-08-07 Thread Durgesh Nadkarni
Hi Raveendran, That HTML code is getting during runtime. Thats why we cannot paste the html code for that link. Is there any other method through which we can recognized that link? Thanks Regards Durgesh. --- On Fri, 7/8/09, Raveendran P raveend...@railsfactory.org wrote: From: Raveendran

[wtr-general] Re: How to click the link in dynamically generated ajax content?

2009-08-11 Thread Durgesh Nadkarni
$ie.link(:text,Retry) sleep(20) check_status end if @error== true $ie.link(:text,Retry) sleep(20) check_status end end end Thanks On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni fordurg...@yahoo.co.in wrote: Hi

[wtr-general] Re: How to click the link in dynamically generated ajax content?

2009-08-13 Thread Durgesh Nadkarni
commands until the link was enabled. way 2 -- Still the field disabled then Watir gem code is here ... # File lib/watir/element.rb, line 283 def enabled? assert_exists return ! disabled end Thanks On Tue, Aug 11, 2009 at 6:12 PM, Durgesh Nadkarni fordurg...@yahoo.co.in wrote

[wtr-general] Re: How to click the link in dynamically generated ajax content?

2009-08-14 Thread Durgesh Nadkarni
: Thursday, 13 August, 2009, 8:40 PM Hi Durgesh, Are asking this code? check=browser.link(:id,PageLinkDisabled).enabled? if check == true It is Enabled. Continue your work else It is Disabled end If yes then just use it otherwise :) Thanks On Thu, Aug 13, 2009 at 6:19 PM, Durgesh Nadkarni

[wtr-general] Re: How to click the link in dynamically generated ajax content?

2009-08-14 Thread Durgesh Nadkarni
13, 2009 at 6:19 PM, Durgesh Nadkarni fordurg...@yahoo.co.in wrote: Hi Raveendran, I want to make sure that Previous link is disabled. So I need to use the second method given by you. But do I need to pass the parameter to it as shown below? assert(browser.link(:id,PageLinkDisabled