xml
The “xml” command type represents a series of automation commands regarding XML file and XML content. There are also a few command specifically targeted towards SOAP.
There are lots of tutorial and learning material on the ‘Net regarding XPath. Here are some that might be helpful:
- W3C - XML Path Language (XPath) 1.0
- gugu99 - XPath in Selenium WebDriver: Complete Tutorial
- w3schools - XPath Tutorial
- wikipedia - XPath
- automatetheplanet - Most Underated WebDriver Locator - XPath
- toolsqa - Choosing Effective XPaths
- devhints - XPath cheatsheet
- http://xpath.alephzarro.com/content/cheatsheet.html
- http://scraping.pro/res/xpath-cheat/xpath_css_dom_recipes.pdf
- http://scraping.pro/res/xpath-cheat/xpath_css_dom_ref.pdf
Also consider the following online resources for trying out XPath:
- https://www.webtoolkitonline.com/xml-xpath-tester.html
- http://xpather.com/
- https://extendsclass.com/xpath-tester.html
Available Commands
append(xml,xpath,content,var)
assertCorrectness(xml,schema)
assertElementCount(xml,xpath,count)
assertElementNotPresent(xml,xpath)
assertElementPresent(xml,xpath)
assertSoap(wsdl,xml)
assertSoapFaultCode(expected,xml)
assertSoapFaultString(expected,xml)
assertValue(xml,xpath,expected)
assertValues(xml,xpath,array,exactOrder)
assertWellformed(xml)
beautify(xml,var)
clear(xml,xpath,var)
delete(xml,xpath,var)
insertAfter(xml,xpath,content,var)
insertBefore(xml,xpath,content,var)
minify(xml,var)
prepend(xml,xpath,content,var)
replace(xml,xpath,content,var)
replaceIn(xml,xpath,content,var)
storeCount(xml,xpath,var)
storeSoapFaultCode(var,xml)
storeSoapFaultString(var,xml)
storeValue(xml,xpath,var)
storeValues(xml,xpath,var)