npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@redhat-developer/page-objects

v1.24.0

Published

Page Object API implementation for a VS Code editor used by ExTester framework.

Downloads

124,095

Readme

What it is

Page objects wrap the parts of the VS Code workbench in classes with meaningful methods, so a test can say new ActivityBar().getViewControl('Explorer') instead of searching the DOM. This package contains:

  • Page object classes for the activity bar, side bar views and tree sections, editors (text, diff, settings, custom and web view), the bottom panel (problems, output, terminal and debug console), the status bar, title bar and menus, dialogs, notifications and the debug views.
  • AbstractElement, the base class every page object extends, including your own custom ones.
  • LocatorLoader and mergeLocators, which assemble the locator set for the VS Code version under test from @redhat-developer/locators and an optional custom contribution.
  • WaitHelper, timeout constants and a re-export of selenium-webdriver, so one import gives you WebDriver, By, Key and the rest.

Installation

vscode-extension-tester depends on this package and re-exports everything from it. In an ExTester project you import page objects from vscode-extension-tester and never install this package directly:

import { ActivityBar, EditorView, TextEditor } from "vscode-extension-tester";

Install it on its own only if you drive a VS Code instance with your own WebDriver setup:

npm install --save-dev @redhat-developer/page-objects @redhat-developer/locators selenium-webdriver

Peer dependencies: selenium-webdriver ^4.48.0 and typescript >= 4.6.2.

Standalone usage

The page objects must be initialised once before the first one is created. ExTester does this for you when VSBrowser starts; without ExTester, call initPageObjects yourself:

import { getLocatorsPath } from "@redhat-developer/locators";
import { initPageObjects } from "@redhat-developer/page-objects";

initPageObjects(
  "1.134.0", // VS Code version under test
  "1.37.0", // version of the base locator set
  getLocatorsPath(), // folder with the compiled locators
  driver, // your selenium-webdriver WebDriver attached to VS Code
  browserName, // name of the browser the page objects run in
  "./out/test/pageObjects/locators.js", // optional custom locator contribution
);

Documentation

Feedback

License

Apache License 2.0