--%>

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 the term Binary Binary : This is

    Binary: This is the number representation in base 2. In base 2, only digits 0 and 1 are utilized. Digit positions symbolize successive powers of 2.

  • Q : Visual basic programming homework A

    A local car hire company has approached you to create a user-friendly computer program that will enable their hire operatives to send invoices to their customers. The operatives are not computer literate so a user-friendly, uncomplicated and robust interface is required. At presen

  • Q : Define Aliases Aliases : It is a

    Aliases: It is a multiple references to a single object. Messages might be sent to the object through any of its aliases. The resultant state modifications will be detectable by all.

  • Q : Explain Throws clause Throws clause :

    Throws clause: It is a clause in a method header pointing that one or additional exceptions will be propagated from this technique. For example:    public int find(String s) throws NotFoundExc

  • Q : Explain Fully qualified class name

    Fully qualified class name: The name of a class, comprising any package name and including class name. The class outline is as follows:     package oddments;    class Outer

  • Q : Programming analysis and design

    Illustrate the term programming analysis and design in brief.

  • Q : What is Hostname What is Hostname : It

    What is Hostname: It is the name of a host system.

  • Q : Define the term Interprocess

    Define the term Interprocess communication: It is the ability of two or more separate processes to communicate with each other.

  • Q : Define the term Local inner class and

    Define the term Local inner class and Local variable: Local inner class: It is an inner class stated in a method. Local variable: It is a variable defined within

  • Q : Define the term Monitor Define the term

    Define the term Monitor: It is an object with one or more synchronized techniques.