.getNextSibling() Suggest editsSince: 2.0.0
Returns the element immediately following the specified one in their parent's childNodes. The element will be returned as web element JSON object (with an added .getId() convenience method).For more info on working with DOM elements in Nightwatch, refer to the Finding & interacting with DOM Elements guide page.
The locator strategy to use. See W3C Webdriver - locator strategies
The selector (CSS/Xpath) used to locate the element. Can either be a string or an object which specifies element properties.
Callback function which is called with the result value.
Or run locally with: