Comparing Values with newlines in Selenium IDE

Posted by Zachary on Stack Overflow See other posts from Stack Overflow or by Zachary
Published on 2010-03-30T19:31:53Z Indexed on 2010/03/30 19:33 UTC
Read the original article Hit count: 314

Filed under:

I am writing a Selenium test case using the IDE, and I have a that I want to verify is equal to the value I expect. The newlines in the box seem to be causing some trouble, as when I use the "verifyValue" command I get this:

# [info] Executing: |verifyValue | organizationContainer.organization.defaultLegalText | This is some test legal text. I just did a new line. Hopefully these new lines will get preserved. |
# [error] Actual value 'This is some test legal text. I just did a new line. Hopefully these new lines will get preserved.' did not match 'This is some test legal text. I just did a new line. Hopefully these new lines will get preserved. ' 

Is there a better way to compare strings in the Selenium IDE

© Stack Overflow or respective owner

Related posts about selenium