nightwatch-docs
nightwatch-docs copied to clipboard
Add documentation for new Element API
Right now, the API doc page meant for the Element API contains details about the global element()
API instead of the new Element API.
So, we'd need to write a new page for the new Element API and replace the above page with it.
The page should contain an introduction of the new Element API, why it was introduced, its benefits over the older Element API and some examples on how to use it (how to use find*
commands over browser.element
, which further can be chained with action commands )like click()
, sendKeys()
, etc.) or get commands (like getText
, etc.), and also how to use chainable assert
over the get commands).
I want to work on this issue. Can you guide me on how to proceed? From the beginning, I have had this doubt about why it was introduced and what its benefits are over the older Element API.