--%>

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 are ORB-IOR-a servant-a POA manager

    In CORBA, what are i) an ORB ii) an IOR iii) a servant iv) a POA and v) a POA manager?

  • Q : Hide sections of a course from students

    Normal 0 false false

  • Q : Define the term Method signature Define

    Define the term Method signature: This is the synonym for method header.

  • Q : Function of STR and LPSTR Explain what

     Explain what is the function of STR and LPSTR?

  • Q : What is Avoid Redundancy Avoid

    Avoid Redundancy: While not every form of redundancy is as bad from a verification perspective as it is from a maintenance point of view, behavioral redundancy to re-create (local) state can impose problems because the model checker does not distingui

  • Q : Problem on COBOL source code errors

    There are many errors in the following COBOL source code. Identify the errors and rewrite the program so that it contains no errors:IDENTIFICATION DIVISION   (Full stop required)PROGRAM ID. ERRORS-EXAMPLE.DATA DIVISION    (Fu

  • Q : What is an Exception handler Exception

    Exception handler: It is a try statement which acts as an exception handler - a place where exception objects are dealt and caught with.

  • Q : Non linear dynamic model equation to

    Could you please show the steps from non linear dynamic model equation to linear equation?

  • Q : State the term dispatcher State the

    State the term dispatcher.

  • Q : Explain Array initializer Array

    Array initializer: This is an initializer for an array. The initializer takes the position of separate creation and initialization steps. For example, the initializer int[] pair = { 4, 2, };

    Discover Q & A

    Leading Solution Library
    Avail More Than 1459022 Solved problems, classrooms assignments, textbook's solutions, for quick Downloads
    No hassle, Instant Access
    Start Discovering

    18,76,764

    1957353
    Asked

    3,689

    Active Tutors

    1459022

    Questions
    Answered

    Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!

    Submit Assignment

    ©TutorsGlobe All rights reserved 2022-2023.