From 793a9b49a1b42a3fd684148d1be7b0d24600a544 Mon Sep 17 00:00:00 2001 From: PriestJ Date: Thu, 7 Aug 2008 13:54:36 +0000 Subject: [PATCH] updated login function to cope with the fieldset tag better. Before we referenced it as a radio tag, which was bad, bad, bad.... git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@6161 248e525c-4dfb-0310-94bc-949c084e9493 --- tests/default_methods.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/default_methods.rb b/tests/default_methods.rb index da31900..81040f2 100644 --- a/tests/default_methods.rb +++ b/tests/default_methods.rb @@ -39,7 +39,8 @@ def login(p_username, p_password) # # Enter logon details # - if @@ie.radio( :id,'P101_TC_ACCEPTED').exists? then + if @@ie.locate_tagged_element('fieldset', :id, 'P101_TC_ACCEPTED') then + #if @@ie.text_field( :id,'P101_TC_ACCEPTED').exists? then @@ie.radio( :id,'P101_TC_ACCEPTED_0').set #'I accept the Terms and Conditions of using this site' end @@ie.text_field( :id, 'P101_USERNAME' ).set( p_username )