Worksoft Community

Outerhtml Table action passes for IE 7 but not IE 8

Wiki Table of Contents

Page Details

First published by:
Yujira
on 15 Jun 2011
Last revision by:
Yujira
on 15 Jun 2011
2 people found this article useful.

100% of people found this useful
Outerhtml Table action passes for IE 7 but not IE 8

Filed under: , [Edit Tags]

Root cause: Order change in Microsoft Internet Explorer 8 and up for Outer HTML of a table.

If a rare case where Certify process is trying to verify that the outerhtml of a table on the web page contains a certain string; for example, <TABLE height=113 width="39%" border=0.

In Microsoft Internet Explorer 8 and Microsoft Internet Explorer 9, the attributes in a different order (than in Microsoft Internet Explorer 6 and Microsoft Internet Explorer 7).

The test is checking if the outerhtml contains: <TABLE height=113 width="39%" border=0

But the outerhtml in newer versions of Microsoft Internet Explorer is now showing: <TABLE border=0 width="39%" height=113

All the values are the same but in a different order. The test will fail with the message "actual value does not contain the expected value"

Best Practice: It is recommended that each attribute be verified individually rather than as a long string (as done in the example above).

 

Recent Comments

Leave the first comment for this page.
©2009-2011 Worksoft, Inc.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems