I’ve created a script that runs well on IE7 but not on Firefox 3.0. My script opens a URL and logs in. It then verifies the existence of items on the page, such as the footer and links that exists in it. In the footer there is link titled “Policy Statements." I have a step in the script with description, "Verify 'TextContent' 'Contains' 'Policy Statements' on 'a_Policy_Statements'." The script fails with the following error:
'11/2/2009 11:57:38 AM' - 'Pass' : Verify element 'a_Policy_Statements' 'is' visible.
'11/2/2009 11:57:38 AM' - 'Fail' : Verify 'TextContent' 'Contains' 'Policy Statements' on 'a_Policy_Statements'
--------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
ArtOfTest.WebAii.Design.Exceptions.VerificationException: String match failed (CompareType:Contains). - [Expected:Policy Statements],[Actual:Policy
Statements]
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
I’ve highlighted the problem. Notice that there is a huge space between “Policy” and “Statements.” This exact same test works fine in IE7. Why would Firefox report this text differently than IE does?
Any help is appreciated.