Page MenuHomePhabricator

Upgrade WebdriverIO from v4 to v5
Closed, DuplicatePublic

Description

WebdriverIO v5 was released in early December 2018. However, most of the MediaWiki's repositories use v4 which has now been deprecated. These repositories need to be upgraded.

Announcement:

Highlights:

  • browser.element() is now browser.findElement() with "$()" as alias.
  • browser.localStorage replaced by browser.setLocalStorage.
  • browser.deleteCookie() requires name param. To delete all at once, there is a new method browser.deleteAllCookies().
  • isVisible() is renamed to isDisplayed()
  • Commands that return data no longer wrapped in { value: … }. Values are now returned directly.
  • browser.click(selector) and browser.getText(selector) no longer exist. Use $(selector).click() or .getText() instead.

Complete list of changelog

Event Timeline

Hi @Vidhi-Mody. Can you please associate at least one active project with this task (via the Add Action...Change Project Tags dropdown)? This will allow others to get notified, or see this task when searching via projects. Thanks.

Hi @Vidhi-Mody. Can you please associate at least one active project with this task (via the Add Action...Change Project Tags dropdown)? This will allow others to get notified, or see this task when searching via projects. Thanks.

@RhinosF1 Done!

@Vidhi-Mody: What is the difference between T234314 and this very task, when it comes to what should be done?

@Vidhi-Mody: What is the difference between T234314 and this very task, when it comes to what should be done?

It serves as a reference for upgrading from v4 to v5
Once GSOC begins, it will help to keep count of the various differences
Additionally, all breaking changes relevant to MediaWiki can be updated so that it can help others refering or working on the same project

@Vidhi-Mody I think you should close this task as duplicate of T234314. There's no need to create a new task for reference material. Feel free to update the parent task (T234314) with any notes and references that are useful. Either leave a comment, or update the task description, what ever you prefer.

A subtask is usually created if there's a smaller task to complete. For example, T249336 is a valid subtask, because it's about updating one repository from v4 to v5.