--%>

Determine a web page element which contains exact text

How can I determine a web page element which contains exact text?

E

Expert

Verified

TestComplete gives you with access to ways and properties of web page elements, therefore you can search all web page tools and get the desired text within the element properties. To check the search, you can utilize the Page object’s Find Method. Such method uses three parameters as: KeyValue, Page.NativeWebObject.Find(PropertyName and TagName.

  • PropertyName:  It is name of the property, that value is checked through the method. Classically the element’s text is available through the innerText or innerHTML property.
  • KeyValue: It is the sought-for text (we can employ the * and ? wildcards to identify the search masks).
  • TagName - Such parameter is optional. You can use thsi to identify tag names which you would like to search in. See that since the name of the Find method coincides along with the name of the Find method added to each tested object by TestComplete, the Page object’s method resides within the NativeWebObject namespace, it is, in your script you must call Page.NativeWebObject.Find rather than Page.Find. For code illustrates, see the Searching for Web Page Element Containing Specific Text blog upon our AQCommunity site or the “Searching for the Element having the Desired Text” assist topic.

   Related Questions in Programming Languages

  • Q : Write a program that prints out all

    Write a program that prints out all prime numbers between 1 and 1000. Print the values out ten per line, with digits lined in proper columns.

  • Q : Define Java virtual machine or JVM

    Define Java virtual machine (JVM): A Java Virtual Machine (JVM) is an abstract computing machine, or virtual machine (set of computer software programs and data structures) which is a platform-independent execution environment that converts Java bytec

  • Q : Write a program and estimate pi using

    Consider a dartboard of radius 1. Since the area of the board will be  π r2 = π * 1 *1, it's clear the area of the dartboard is exactly π. The area of a square surrounding the board (circumscribing it) would be 2*2 = 4, sin

  • Q : Self-created What is the difference

    What is the difference among a self-created certificate, Symbian Signed and a Symbian developer certificate?

  • Q : What is an Exception Exception : An

    Exception: An object symbolizing the occurrence of an exceptional circumstance - usually, something which has gone wrong in the smooth running of a program. Exception objects are made from classes which expand the Throwable class.

  • Q : Monte Carol method to estimate pi An

    An interesting way to estimate pi can can done using Monte Carol method with minimal mathematics. Monte Carlo is known for its casinos. A Monte Carlo method uses change, or in our case, random numbers to simulate the real situation. The situation we simulate here is t

  • Q : Benefits of the event-delegation model

    Write down some of the benefits of the event-delegation model over event-inheritance model?

  • Q : Reads a line of text and tests whether

    palindrome.asm -- reads a line of text and tests whether it is a palindrome. ## Register usage: ## $t1 - A. ## $t2 - B. ## $t3 - the character *A. ## $t4 - the character *B. ## $v0 - syscall parameter / return values. ## $a0 - s

  • Q : Different file types Specify the

    Specify the different file types?

  • Q : Maintaining audit trail of product

    The accuracy of product table data is crucial and the Brwebean’s. owner prefers to have an audit file which contains information regarding all DML activity on the BB_PRODUCT table. This information must point out the user id of the user running a DML statement,