Feature: Validations: Test Xpath namespaces and xpaths
File name: xpath.feature
Relative path: features/xpath.feature
{
"directory": "./test"
}
Given
xPath namespace is '{ "new": "TEst" }'
00:00:00.000
{
"xml": "\n\n\n \n Apples \n Bananas \n \n \n\n\n African Coffee Table \n 80 \n 120 \n \n\n \n\n"
}
Given
xPath namespace is
00:00:00.000
{
"h2": "http://www.w3.org/TR/html4/"
}
And
add xPath namespace "l" = "https://www.w3schools.com/furniture"
00:00:00.000
{
"lastRun": "Apples"
}
Then
it is equal to "Apples"
00:00:00.000
Then
it is written to file "expected.out"
00:00:00.002
{
"directory": "./test"
}
And
add xPath namespace "h2" = "http://www.w3.org/TR/html4/"
00:00:00.000
{
"xml": "\n\n\n \n Apples \n Bananas \n \n \n\n\n African Coffee Table \n 80 \n 120 \n \n\n \n\n"
}
{
"lastRun": "Apples"
}
Then
it is equal to "Apples"
00:00:00.000
{
"directory": "./test"
}
{
"xml": "\n\n\n \n Apples \n Bananas \n \n \n\n\n African Coffee Table \n 80 \n 120 \n \n\n \n\n"
}
Given
xPath namespace is '{ "h2": "http://www.w3.org/TR/html4/" }'
00:00:00.000
{
"lastRun": "Apples"
}
Then
it is equal to "Apples"
00:00:00.000
{
"directory": "./test"
}
{
"xml": "There "
}
{
"lastRun": "There"
}
Then
it is equal to "There"
00:00:00.000