2011-02-07 57 views
0
<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 

一旦我通过GUI单击这些TD值中的任何一个,就应该在窗体的搜索字段中选择它。如何选择在网格中显示的项目结果

任何人都可以帮助我理解这一点。

+0

我想帮助,但我无法理解你的问题。类的质量= ...意味着什么?你想用Selenium测试什么? – Adam 2011-02-10 19:23:59

回答

0

我不知道你问,但基于什么关标题我要举这个例子作为一个答案:

abc def 
foo bar 
jkl mno 

的XPath

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

这将选择具有以下细分的栏。

找到[即有一栏,用文字是“富”]任意行与列[即第二]

0

我不知道你的要价,但基于关闭标题我要给这个例子作为一个答案:

abc def 
foo bar 
jkl mno 

的XPath

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

这将选择具有以下细分的栏。

发现任何行[有一列,用文字是“富”]与列[即第二]

相关问题