Completed
Last Updated: 12 Feb 2015 11:45 by ADMIN
ADMIN
Boyan Boev
Created on: 06 Jan 2015 13:07
Type: Bug Report
0
JS Recorder records the ampersand only as & in the find logic
If an element contains an ampersand in some of its attributes (e.g. id="R&D") the JS Recorder records it as "ID exact R&D" instead of R&D hence the the element cannot be found.

The exception is:

Outer Exception Type: ArtOfTest.Common.Design.Exceptions.ElementFindException
     Message: Unable to locate element. Details: Attempting to find [Html] element using
          Find logic
          (Html): [name 'Exact' R&D] AND [tagname 'Exact' div]
          Unable to locate element. Search failed!
          Learn more about finding elements here:
          http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/test-execution-problems/unable-to-locate-element.aspx
     HRESULT: 0x80131500 (Official ID (if app.) = COR_E_EXCEPTION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5376)
     Call Stack:
          at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
          at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

The workaround is either to use IE recorder for the particular step or replace "&" with "&" in the find logic.
1 comment
ADMIN
Iliyan Panchev
Posted on: 12 Feb 2015 11:45
You need to download the latest Chrome recording extension - 2014.4.1211.6 in order to have the fix.
For Firefox, the fix in the latest Test Studio 2014.R4 Service Pack 1.