Webpagetest Scripting

I find the scripting is not able to complete some actions.

For example, for clicking the href link, the webpagetest script is not able to perform the action if there is no id, name or title associated. To be specific:
in www.amazon.com, a link of “Office supplies” is shown in source code like this:

  • Office Supplies
  • I know selenium use link=Office Supplies to identify the click, but in webpagetest, how to specify this? Is there any way to accomplish this?

    Moreover, is there anyway to convert the selenium script to webpagetest script? If not, how we can enable selenium on our private instances? Can you give some hint?


    You could use the exec or execAndWait with some JS to click the link i.e. find the DOM node then issue .click() against it.

    DevTools is great for checking the JS in first