Skip to main content
summaryrefslogtreecommitdiffstats
blob: 39bf29110803900e384fdb603d671cb51461a666 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!-- 
  Copyright (c) 2014 BREDEX GmbH.
  All rights reserved. This program and the accompanying materials
  are made available under the terms of the Eclipse Public License v1.0
  which accompanies this distribution, and is available at
  http://www.eclipse.org/legal/epl-v10.html
-->

<section xml:id="actionCheckText" version="5.0" xmlns="http://docbook.org/ns/docbook"
                                                     xmlns:xi="http://www.w3.org/2001/XInclude"
                                                     xmlns:xl="http://www.w3.org/1999/xlink" >
  
  <title>Check Text by Locator</title>
 
     <itemizedlist>
      <listitem>
        <para>
          Use this action to check the text of an element based on its locator.
        </para>
      </listitem>
      <listitem>
        <para>
        The action requires no component name and no object mapping - the element 
        in your AUT is found based on the locator you enter.
        </para>
      </listitem>
      <listitem>
      	<para>
      	For example, you can enter an xpath locator like this:
      	</para> 
      	<para><emphasis role="input">xpath=...</emphasis></para>
      </listitem>
      <listitem>
      	<para>
      	You can enter a CSS locator like this:
      	</para> 
      	<para><emphasis role="input">css=...</emphasis></para>
      	<para>
      	You will most likely want to use single quotes around the whole
      	locator to cancel out any special characters within the string. 
      	</para>
      </listitem>
      <listitem>
        <para>
        You can use different types of locators, and can find out the locator for 
        your component using website inspection tools.
        </para>
      </listitem>
      <listitem>
        <para>
          Parameters:
          
          <itemizedlist>
            <listitem>
              <para>
                <xref linkend="locator" xrefstyle="template:%t"/>
              </para>
            </listitem>
            <listitem>
              <para>
                <xref linkend="text" xrefstyle="template:%t"/>
              </para>
            </listitem>
            <listitem>
              <para>
                <xref linkend="operator" xrefstyle="template:%t"/>
              </para>
            </listitem>
          </itemizedlist>
        </para>
      </listitem>
    </itemizedlist>
</section>

Back to the top