Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

web.dev search results flow #10

Open
addyosmani opened this issue Jul 9, 2020 · 1 comment
Open

web.dev search results flow #10

addyosmani opened this issue Jul 9, 2020 · 1 comment

Comments

@addyosmani
Copy link

I attempted to use the recorder to do the following:

  1. Navigate to web.dev
  2. Enter "images" into the search field
  3. Click on the first result (Optimize images with Thumbor)

The first two steps complete correctly. The last step does not. I wonder if this may be due to it trying to perform the await click action prior to the fetch/render for the results DOM being ready?

const {open, click, type, submit} = require('./lib/runner.js');

open('https://web.dev', {}, async () => {
  await click('aria/searchbox[name="Search"]');
  await type('aria/searchbox[name="Search"]', 'images');
  await click('aria/link[name="Optimize images with Thumbor"]');
});

image

@jschfflr
Copy link
Contributor

I tried your script and it works for me. It just ends immediately after clicking the link. Do you get a stacktrace?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants