Skip to content

Scrolling relative to webElement #2919

@ofrilev

Description

@ofrilev

What are you trying to achieve?

I'm trying to scroll relative to the locator element. Due I'm using the Playwright library, I tried to write helpers from Playwright like Element.scrollBy(), but none of them succeeded. Did someone have a helper which is related to that issue?

What do you get instead?

there is only I.scrollTo() which is relative to the web body

Provide console output if related. Use --verbose mode for more details.

# paste output here

Provide test source code if related
the helper
Screen Shot 2021-06-09 at 12 16 04

// paste test

Details

  • CodeceptJS version:
  • 3.0.7
  • NodeJS Version:
  • v14.15.1
  • Operating System:
  • MacOs
  • puppeteer || webdriverio || protractor || testcafe version (if related)
  • Playwright
  • Configuration file:
 MyPlaywrightHelper: {require: './myplaywrighthelper_helper.js'}
  },
  autoDelay: {
    enabled: true,
  },
  include: {
    I: "./steps_file.js",
    website_home: "./pages/websiteAnalysisHome.ts",
    queryBar: "./components/queryBar.ts",
    widgetFrame: "./components/widgetFrame.ts",
    trafficEngagement: "./fragments/website-performance/trafficEngagement.ts",
  },
  jquery: true,
  bootstrap: null,
  mocha: {},
  name: "new-codecept",
  plugins: {
    pauseOnFail: {},
    retryFailedStep: {
      enabled: true,
    },
    tryTo: {
      enabled: true,
    },
    screenshotOnFail: {
      enabled: true,
    },
    commentStep: {
      enabled: true,
      registerGlobal: true,
    },
  },
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions