--%>

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 UNIX Explain, what is UNIX?

    Explain, what is UNIX?

  • Q : Define Java Archive file Java Archive

    Java Archive file: It is a Java Archive (JAR) file which makes it possible to store multiple bytecode files within a single file.

  • Q : Define the term Boolean Boolean : It is

    Boolean: It is one of the Java's primitive types. The Boolean type has merely two values: true and false.

  • Q : What is Dotted decimal notation Dotted

    Dotted decimal notation: The notation employed to symbolize the 4-byte values of an IP address. Each and every byte is symbolized as a value between 0 to 255, for instance 129.12.0.1. The most noteworthy byte is written at first.

  • Q : Define Unconditional Jumps

    Unconditional Jumps: Jumps which are not strictly upwards in the block hierarchy can require extensive control-flow manipulation, including creation of redundant code, and should be avoided if possible. Such jumps add considerable modeling overhead fo

  • Q : Explain Right shift operator Right

    Right shift operator: Right shift operator (>>) is the bit manipulation operator. It shifts the bits in its left operand zero (0) or many places to the right, according to the value of its accurate operand. The most important bit from before the

  • Q : Common Language Infrastructure or CLI

    What is the Common Language Infrastructure (CLI)? What relation does .NET have with the CLI?

  • Q : Explain Cohesion Cohesion : The level

    Cohesion: The level to which a component executes a single well-stated task. A strongly cohesive technique, for example, will execute a single task, like adding an item to a data structure, or sorting several data, while a weakly cohesive technique wi

  • Q : Explain a quality and metrics reporting

    What opinion would you provide to someone who asked you where to begin to introduce to their company a quality and metrics reporting program?

  • 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.