Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

How to replace the Original Error message?

View previous topic View next topic Go down

How to replace the Original Error message?

Post by jayz123 on Wed Nov 14, 2012 8:50 am

As title above stated, I have a program working on Selenium RC based on selecting the Url from the ComboBox.
If i click the button "Start" without selecting the Url, there is an error message will prompting up show "Unhandled exception has occurred in your application....... .... Object reference not set to an instance of an object"

I could proceed my test by clicking the Continue, but i wish to replace this error message with my own error message something like "Please select the Url...etc", I tried with MessageBox method but it seem like former message cannot be replace. Anyway how to do this? Thank you

jayz123

Posts : 8
Join date : 2012-11-14

Back to top Go down

Re: How to replace the Original Error message?

Post by Adviser on Sun Nov 18, 2012 12:49 am

you can try catch the error message and return the message you want if that error message encounter

ex:

if (error_msg appear)
return "modified error message"
else
return "no error messages appear"

you can work out with something like this with the help of programming language . Hope this will help.

best of luck.

_________________
Spread Your Knowledge About Selenium Tool.

Administrator
Email: selenium.discussion.thread@live.com
Forum: http://seleniumforum.forumotion.net
avatar
Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

Re: How to replace the Original Error message?

Post by jayz123 on Mon Nov 19, 2012 11:21 am

ya... thank you very much.. i go too far from the simplest way... ^^

jayz123

Posts : 8
Join date : 2012-11-14

Back to top Go down

Re: How to replace the Original Error message?

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum