Issue #3211838 by mondrake, longwave: Convert assertions involving use of xpath on spans to WebAssert
Closes #3180992