如何选择网格结果中显示的项目 [英] How to select items which is displayed in Grid result

查看:88
本文介绍了如何选择网格结果中显示的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 < DIV class = x-grid3-scroller id = ext-gen742> 
< DIV class = x-grid3-body id = ext-gen743>
< DIV class = x-grid3-row x-grid3-row-first x-grid3-row-last>
< TABLE class = x-grid3-row-table>
< TBODY>
< TR>
< TD> class = x-grid3-col x-grid3-cell x-grid3-td-0 x-grid3-cell-first
< td> class = x-grid3-col x-grid3-cell x-grid3-td-1
< td> class = x-grid3-col x-grid3-cell x-grid3-td-2
< td> class = x-grid3-col x-grid3-cell x-grid3-td-3

点击任何一个TD值通过GUI,它应该在表单中的搜索字段中选择。



有没有人可以帮助我理解这一点。

解决方案

我不确定你的问题,但基于标题我将给出这个例子作为答案:





  abc def 
foo bar
jkl mno

XPath

  // tr [td / text()='foo'] / td [2] 
pre>

这会选择带有以下细分的栏。



查找任何行[有一列,文字是'富']与列[这是第二]


<DIV class=x-grid3-scroller id=ext-gen742>
<DIV class=x-grid3-body id=ext-gen743>
<DIV class=x-grid3-row  x-grid3-row-first x-grid3-row-last >
<TABLE class=x-grid3-row-table>
<TBODY>
<TR>
<TD> class=x-grid3-col x-grid3-cell x-grid3-td-0 x-grid3-cell-first 
<td> class=x-grid3-col x-grid3-cell x-grid3-td-1 
<td> class=x-grid3-col x-grid3-cell x-grid3-td-2
<td> class=x-grid3-col x-grid3-cell x-grid3-td-3

Once I click on any one of these TD values via GUI, it should be selected in the search field in the form.

Could any one help meregarding this.

解决方案

I'm not sure what your asking, but based off the title I'm going to give this example as an answer:

table

abc def
foo bar
jkl mno

XPath

//tr[td/text()='foo']/td[2]

This would select bar with the following breakdown.

find any row[that has a column, with text that is ‘foo’] with a column [that is the second]

这篇关于如何选择网格结果中显示的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆