How I can locate element depend on it value?
        Posted  
        
            by 
                Nikolay Kulakov
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Nikolay Kulakov
        
        
        
        Published on 2012-06-28T14:28:38Z
        Indexed on 
            2012/07/02
            9:16 UTC
        
        
        Read the original article
        Hit count: 329
        
I have some table:
    Title 1        | Title 2        | Title 3        |
    --------------------------------------------------
    string value 1 | string value 2 | string value 3 |
    --------------------------------------------------
    string value 4 | string value 5 | string value 6 |
and some step:
"And click on its < name>", where < name> can be anything from first column.
So, how I can found needed element and click on its?
Table code
<div id="grid" class="k-grid k-widget" data-role="grid" tabindex="0" style="">
<div class="k-grid-header" style="padding-right: 17px;">
<div class="k-grid-header-wrap">
<table cellspacing="0">
<colgroup>
<col style="width: 30px;">
<col style="width: 300px;">
<col>
<col style="width: 200px;">
</colgroup>
<thead>
<tr>
<th class="k-header" data-title="ID" data-field="id">ID</th>
<th class="k-header" data-title="????????????" data-field="name" data-role="sortable" data-dir="asc">
<a class="k-link" href="#">
2nd part
????????????
<span class="k-icon k-arrow-up"></span>
</a>
</th>
<th class="k-header" data-title="????????" data-field="description">????????</th>
<th class="k-header" data-field="undefined" data-role="sortable">
</tr>
</thead>
</table>
</div>
</div>
© Stack Overflow or respective owner