Skip to content

memlab not navigating pages #39

@QAInsights

Description

@QAInsights

When I run the below scenario, the script is not navigating to any page clicks. It is just taking snapshots from the home page.

function url() {
  console.log("Returning URL");
  return 'https://store.qainsights.com/';
}

async function accessories(page) {
  console.log("Click on Accessories link");
  await page.click('//a[href="/accessories"]');
}

async function apparel(page) {
  console.log("Click on Apparel link");
  await page.click('//a[href="/apparel"]');
}

async function back(page) {
  console.log("Go to Home page");
  await page.click('//a[href="/"]');
}

module.exports = {accessories, apparel, back, url};

memlab version

memlab@1.1.28
 @memlab/heap-analysis@1.0.9
 @memlab/e2e@1.0.12
 @memlab/core@1.1.11
 @memlab/cli@1.0.14
 @memlab/api@1.0.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions