--%>

Explain script recorded over tested web pages

Why is the script recorded over the tested web pages not playback correctly?

E

Expert

Verified

Probably the script addresses web page elements through their index. TestComplete uses indexes when the element does not have the Id or Name attribute (when any of these attributes are given, TestComplete uses the attribute value to address that element). By using Id or Name is more reliable than using the indexes because the indexes can change from one test run to other. To work in the problem, use any of the approaches as given here:
• In the source code of the tested web page, identify the Name or Id attribute for all controls which you need to work along with from scripts. On doing this, you will be capable to address the controls using the given identifiers.
• Utilize the Page (…).NativeWebObject.Find method to search for the needed control by values of its properties and attributes (innerHTML, innerText, src and href).

   Related Questions in Programming Languages

  • Q : What is Control structure Control

    Control structure: A statement which affects the flow of control in a method. The typical control structures are if statements and loops.

  • Q : Explain Copy constructor Copy

    Copy constructor: It is a constructor which takes a single argument of similar class. For illustration:     public class Point {        

  • Q : Installation of Symbian SIS file to

    I am not capable to install Symbian SIS file to Symbian OS v.9.x tool? What must I do?

  • Q : Write a program using simple loop

    Objective:  The purpose of this problem is to gain experience with the principles necessary to write a program using simple loop, decision processing, counters and accumulators Save the Barns, a bi-partisan po

  • Q : Explain the distributed systems Explain

    Explain the distributed systems.

  • Q : What is Search path Search path : It is

    Search path: It is a list of folders (that is, directories) to be searched - for a program or class, for example.

  • Q : Define Assembler Assembler : The

    Assembler: The program employed to translate a program which is written in assembly language into the binary form of a specific instruction set.

  • Q : Use of private Q. Explain the use of

    Q. Explain the use of private, public, protected access specifies.  

  • Q : How would you extract an exact

    How would you extract an exact attribute by using XSLT, from an element into an XML document?

  • Q : Visual basic programming homework A

    A local car hire company has approached you to create a user-friendly computer program that will enable their hire operatives to send invoices to their customers. The operatives are not computer literate so a user-friendly, uncomplicated and robust interface is required. At presen