xdt transform locator that matches subnode content

爷,独闯天下 提交于 2019-11-30 11:46:24
bouteillebleu

Add an extra test for text() into the locator. To match the <param> node:

xdt:Locator="XPath(./param[@desc='database' and text()='master'])">

EDIT: To match the <agent> node you need to move param into the predicate that XPath is matching:

xdt:Locator="Condition(param/@desc='database' and param/text()='master')">
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!