--%>

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 : Define the term XML Define the term XML?

    Define the term XML?

  • Q : Explain Operating system Operating

    Operating system: The operating system permits a computer's hardware devices to be accessed by the programs. For example, it permits data to be managed on a computer's disks in the form of a file system and it delivers the co-ordinate positions of a m

  • Q : Write a program that enters some text

    Write a program that enters some text into a char string called char text[100] and does the following: a) Calls a function called void vowels(char text[]) that prints out how many times each vowel (a/A, e/E, I/i, O/o, U/u) was foun

  • Q : Define the term Multiprogramming system

    Define the term Multiprogramming system: It is an operating system which is able to run multiple programs parallel.

  • Q : Networking Homework Assignment : A

    Homework Assignment : A Barbershop Problem Due: November 20, 2012 In this assignment, you are asked to write a multithreading problem to simulate the barbershop problem, which is a classical synchronization problem. The problem is taken from William Stallings's Operating Systems: Internals and D

  • Q : What is an Anonymous class Anonymous

    Anonymous class: It is a class formed without a class name. Such a class will be a sub class or an implementation of an interface, and is generally formed as an actual argument or returned as a method outcome. For example:

    Q : Function prototypes Function prototypes

    Function prototypes: Function declaration which specifies the function name, return type and parameter list of the function. Syntax: return_type function_name(type var1, type var2,…

  • Q : Basic features of OOPs Illustrate the

    Illustrate the basic features of OOPs?

  • Q : Choice of technology in coding of game

    What are the choice of technologies while coding a game?

  • Q : Public class in java Q. Explain the

    Q. Explain the concept of public classes in java. How they are useful?