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
This commit is contained in:
PriestJ
2008-08-07 13:54:36 +00:00
parent 4d9648a643
commit 793a9b49a1

View File

@@ -39,7 +39,8 @@ def login(p_username, p_password)
# #
# Enter logon details # 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' @@ie.radio( :id,'P101_TC_ACCEPTED_0').set #'I accept the Terms and Conditions of using this site'
end end
@@ie.text_field( :id, 'P101_USERNAME' ).set( p_username ) @@ie.text_field( :id, 'P101_USERNAME' ).set( p_username )