Fix for #381 broken standard functions flow test

All JavaScript insertions were also replaced with XPath/Selenium.