English 中文(简体)
是否有办法核实物品的数量是否符合标准?
原标题:Is there a way for Selenium to verify if the number of items fits a criteria?

是否有办法按照这些思路 create:

verifyXpathCount     //div[@class= display ]/table/tbody/tr      <=10

i.e. I want to verify that table contains less or equal 10 <tr> items inside body of specified table.
Or is this beyond the scope of Selenium IDE (version 1.5)?

最佳回答

这里是:

storeXpathCount  |   [your xpath]                     |   myCount
verifyEval       |   ${myCount} <= 10 ? true : false  |   true

基本上,你将Xpath表述的编号储存到myCount,然后你可以核实,使用该编号的任意表述是对真实的(在这种情况下,我们正在核实该数字少于10)。

问题回答

暂无回答




相关问题
VTD XML inner XPath Expressions

I have a xml file for example like this <root> <test> <bla>test1</bla> </test> <test> <bla>test2</bla> </test> <test> </test&...

C# XML adding/copying

With the following XML I am trying to copy and add to another XML but I haven t used the C# XML document objects before. So here is the XML <config> <configXML> <Connections&...

Filter SQL queries on the XML column using XPath/XQuery

I m having a table with one XML column. I d like to filter out the rows where a specific attribute in the XML match a string, essentially doing a WHERE or HAVING. The table looks something like this ...

Python XPath Result displaying only []

Hey I have just started to use Python recently and I want to use it with a bit of xPath, the thing is when I print the result of the query I only get [] and I don t know why =S import libxml2, ...

热门标签