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 : Define Case sensitive Case sensitive :

    Case sensitive: The test which is sensitive to whether a character is in upper-case (example, 'A') or lower-case (example, 'a').

  • Q : Microsoft Access I have attached a

    I have attached a database and a PDF with 5 questions. I need the 5 questions answered with 5 queries in the database. Question 3 needs a crosstab query. All the questions require the proper join.

  • Q : Define Thread Thread : It is a

    Thread: It is a lightweight procedure which is managed by the Java Virtual Machine (abbreviated as JVM). Support for threads is given by the Thread class in java.lang package.

  • Q : UK assignment & homework help Need UK

    Need UK Assignment Help, UK Homework Help. Get it now! HwA provides email based and live UK assignment help and UK homework help in a variety of subjects to the students based out

  • Q : Define Continue statement Continue

    Continue statement: A statement which might only be employed within the body of a loop. In case of a while loop or do loop, control passes instantly to the loop's terminating test. In case of a for loop, the control passes to the post-body update expr

  • Q : State the term GPO links State the term

    State the term GPO links? Explain.

  • Q : Define Unions Unions: Unions in C and

    Unions: Unions in C and C++ are object overlays—aggregate quantities such as structs, except that each element of the union consists offset 0, and the total size of union is only as large as is required to hold its largest member (Kernighan and

  • Q : What is File Transfer Protocol or FTP

    File Transfer Protocol: The File Transfer Protocol (abbreviated as FTP) states a standard set of rules which make it probable to transfer a file from one file system to the other.

  • Q : Explain the distributed systems Explain

    Explain the distributed systems.

  • Q : Limit the Scope of Data Declarations

    Limit the Scope of Data Declarations at the smallest possible level is consistent with the well known principle of data hiding. It stops one module from inadvertently referencing and modifying data values which are only meant to be used by another mod

©TutorsGlobe All rights reserved 2022-2023.