Page MenuHomePhabricator

Browser tests should not use Watir API
Closed, DeclinedPublic

Description

At the moment, browsers can be driven by three APIs (from high to low level): page object, watir, selenium. Watir API is nice and Chris and I are used to it, but it is not needed. I have noticed that people new to browser testing are confused with so many options.

I suggest that we no longer use watir API, but only page-object and selenium.

As a first step, I will make a change in one of the repositories, so we can see if it impacts maintainability or readability of the code.


Version: wmf-deployment
Severity: normal

Details

Reference
bz70287

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:43 AM
bzimport set Reference to bz70287.
bzimport added a subscriber: Unknown Object (MLST).

In some cases, the watir API is required. The most important case is when it is necessary to identify an element by more than one locator, which is not supported in selenium only.

Looking at https://github.com/cheezy/page-object/wiki/Elements, only five access methods are marked "Watir only"

I do not plan to work on this any time soon. Please reopen if you would like to see this task done.