Hi Mark,

Thanks for the reply.

But .click_no_wait method is not working.

It just creates one .mht file before the alert error window appears.

Is there any other way to deal with this problem?

Thanks
Durgesh.

--- On Mon, 11/5/09, Mark Anderson <mander...@drillinginfo.com> wrote:

From: Mark Anderson <mander...@drillinginfo.com>
Subject: [wtr-general] Re: How can we take screen shot when error occurs?
To: watir-general@googlegroups.com
Date: Monday, 11 May, 2009, 7:33 PM




 


 

 







My first instinct is that you want to use
.click_no_wait instead of .click on the submit button.  .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

Sent: Monday, May 11, 2009 6:13 AM

To: watir-general@googlegroups.com

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



   

Hi,



I want to take screen shots of the web pages twice by using following method.



screen_capture("somename.jpg",true)



For first image it works fine. Then I clicked on Submit button for which there
is one javascript validation kept. So as soon as I click on Submit button that
alert error window appears.



And I want to take the screenshot of this page with error window.



But its not opening the paint application to save the image unless I manually
click on OK button & close the error window.



So please help me as to how can we take the screen shot of the web page having
javascript error on it.



Thanks & Regards

Durgesh.




   

__________
Information from ESET NOD32 Antivirus, version of virus signature database 4064
(20090511) __________ 

   

The
message was checked by ESET NOD32 Antivirus. 

   

http://www.eset.com 





 

__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 4064 (20090511) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


 






      Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! 
Edition http://downloads.yahoo.com/in/firefox/?fr=om_email_firefox
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to