workflow Help

I’m facing some issues while filling the form.

For ex $x("//button[text()='New customer']")[0].click() works perfectly in my chrome console.

when i use the same in WPT script it fails to run that. https://www.webpagetest.org/result/171024_K4_dfb23324eaf16313efd70a315b498233/

Any help/tips related to the above?