Run a test without opening a new browser

Hi,

I’m new with WPT and I have a private instance of server and agent. Both works fine running simple scripts.

But I need to run some complex scripts and I’m not sure if WPT is what I need.

First of all I made a simple C# program that send a task to the WPT server and waits until it ends, then parses the report and store all the info in a DDBB.

But I want to make a task that simulates the user behaviour inside a web site:

  • Open web page.
  • Check if element is present and if not then throws an error
  • Write username and password, then click submit button and login
  • Check if element is present and if not then throws an error
  • Make click in a link
  • Check if element is present and if not then throws an error
    […]

Check if an element is loaded isn’t a problem because I just need to search for it inside the parsed report.

Is it possible to send a task that not closes the browser and then send another task that uses the previous browser instance? :huh:

Thanks.

Take a look at WPT scripting - https://sites.google.com/a/webpagetest.org/docs/using-webpagetest/scripting