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 🙏

© 2024 – Pkg Stats / Ryan Hefner

wdio-v5-upgrade-helper-service

v3.0.6

Published

Utility library to allow renamed webdriverio v4 commands to be used with new versions of WebdriverIO.

Downloads

30

Readme

:no_entry: Deprecated February 2021

I would strongly suggest upgrading to the latest version of WebdriverIO. New functionality will no longer be added to this repo, the only changes will be bugfixes. Cheers, thank you for your support!

wdio-v5-upgrade-helper-service

This plugin will allow developers to upgrade to WebdriverIO versions 5, 6 or 7 without having to change all of the renamed v4 commands in their codebase.

Install via npm

npm install wdio-v5-upgrade-helper-service

wdio.conf.js

Add v5-upgrade-helper to the wdio services property:

services: ['selenium-standalone', 'v5-upgrade-helper'],

Supported V4 commands

| Object | V4 name | V5 name | | :----: | :-----: | :-----: | | browser | alertAccept | acceptAlert | | browser | alertDismiss | dismissAlert | | browser | alertText | getAlertText | | browser | click | N/A | | browser | element | findElement or $ | | browser | elements | findElements or $$ | | browser | getAttribute | N/A | | browser | getCookie | getCookies | | browser | getCssProperty | N/A | | browser | getSource | getPageSource | | browser | getText | N/A | | browser | getViewportSize | getWindowSize | | browser | isExisting | N/A | | browser | isVisible | N/A | | browser | moveToObject | N/A | | browser | reload | reloadSession |
| browser | screenshot | takeScreenshot | | browser | setCookie | setCookies | | browser | setValue | N/A | | browser | setViewportSize | setWindowSize | | browser | scroll | scrollIntoView | | browser | source | getPageSource | | browser | switchTo | switchToWindow (1)| | browser | title | getTitle | | browser | waitForExist | N/A | | browser | waitForVisible | N/A | | browser | windowHandles | getWindowHandles | | browser | windowHandleFullscreen | fullscreenwindow | | browser | windowHandleMaximize | maximizeWindow | | element | clearElement | clearValue | | element | getCssProperty | getCSSProperty | | element | moveToObject | moveTo | | element | isVisible | isDisplayed | | element | waitForVisible | waitForDisplayed | | element | selectByValue | selectByVisibleText |

(1) The param for switchToWindow is a window handle string which should be obtained from the browser.getWindowHandles command.

const windowHandle = browser.getWindowHandles()[1];
browser.switchTab(windowHandle); // V4
browser.switchToWindow(windowHandle); // V5

Attempted

| Object | V4 name | V5 error / reason | V5 Workaround | | :----: | :-----: | :---------------- | :------------ | | element | getElementSize | Kept getting Wrong parameters applied for getElementSize. | Rename to getSize. | | browser | execute | Search and replace easier. | Remove .value from all browser.execute scripts. | | element | waitForVisible(true|false) | As of version 5.7.0 passing a boolean value as the only arguement produced inconsistent results. | Do not call waitForVisible with just a boolean argument, always include timeout as well. Other variations of waitVisible, e.g. waitForVisible(), waitForVisible(5000) continue to work as intended. waitForVisible(true) does not though. | | browser | deleteCookie | deleteCookie without a cookie name will throw an error. Unfortunately I have not been able to override deleteCookie(). | Rename all instances of browser.deleteCookie() to browser.deleteCookies(). Note browser.deleteCookie(cookieName) still works great. |

Misc

wdio-v5-upgrade-helper-service works with WebdriverIO 5 and ^6.1.