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. WebPageTest - Running web page performance and optimization tests...

Any help/tips related to the above?