We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
adapter.js (CLI tool) and server.js both define their own copies of:
adapter.js
server.js
SELECTOR_CHAINS
findElement()
findAllElements()
waitForAny()
waitForCompletion()
This means selector updates need to be made in two places, and the implementations can drift.
Extract shared selectors and DOM helpers into a lib/domHelpers.js module and import from both server.js and adapter.js.
lib/domHelpers.js
Problem
adapter.js(CLI tool) andserver.jsboth define their own copies of:SELECTOR_CHAINSobjectfindElement(),findAllElements(),waitForAny()helperswaitForCompletion()(different implementations)This means selector updates need to be made in two places, and the implementations can drift.
Proposed fix
Extract shared selectors and DOM helpers into a
lib/domHelpers.jsmodule and import from bothserver.jsandadapter.js.