Completed
Last Updated: 26 Sep 2014 12:00 by ADMIN
ADMIN
Cody
Created on: 27 Aug 2014 15:39
Type: Bug Report
0
Recording in IE 'Name' attribute is not honored by priority building nested find logic
Start with this HTML sample:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Welcome l</title>
</head>
<body>
<div name="test-d1v1" id="test-dlv1"><p>Welcome l</p><p>Welcome 2</p></div>
<div name="test-div2" id="test-div2"><p>Welcome 3</p><div><p>Welcome 4</p></div></div>
</body>
</html>

Set identification logic to this order:
Name
ID
TagIndex
TextContent

Using IE, record a click on Welcome 1 text
Expected: Chained find expression of name=test-d1v1,|,tagIndex=p:0
Actual: id=id-test-dlv1,|,tagIndex=p:0

Now remove ID from identification logic all together
Using IE record the same click on the same Welcome 1 text
NOTE: This one is recorded as expected this time
3 comments
ADMIN
Iliyan Panchev
Posted on: 26 Sep 2014 11:46
The fix will be included in the upcoming internal and major Test Studio releases.
ADMIN
Konstantin Petkov
Posted on: 04 Sep 2014 12:59
This example is incorrect. In this particular scenario the recorder should generate find logic by TagName=p and TextContent=Welcome 1. It will generate nested find logic if it cannot identify/locate the paragraph uniquely, for instance if the two divs have one and the same content but differ by ID or Name attributes.

ADMIN
Iliyan Panchev
Posted on: 28 Aug 2014 07:38
Hi, due to some limitations this is expected behavior for nested elements. In this case the identification logic priority is not honored. I will log a bug to reconsider and decide how can we fix this behavior.