From bff043823e70cc414727999fc2aeddeeb970aea4 Mon Sep 17 00:00:00 2001 From: PriestJ Date: Thu, 21 Feb 2008 14:39:46 +0000 Subject: [PATCH] added code to try and pick up the error message from the error message page git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3659 248e525c-4dfb-0310-94bc-949c084e9493 --- tests/default_methods.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/default_methods.rb b/tests/default_methods.rb index 79fa8c0..91bbd9f 100644 --- a/tests/default_methods.rb +++ b/tests/default_methods.rb @@ -56,7 +56,10 @@ def menu (p_menuitem) end def geterrormess(ie) - return ie.div(:id,'colRight').to_s + if ie.div(:class, 'ErrorPageMessage').exists? then + return ie.div(:class, 'ErrorPageMessage').to_s + end + return ie.div(:id,'colRight').to_s end