" Чтобы дождаться отображения xpath / ID "
wait.until(ui.ExpectedConditions.visibilityOfElementLocated(pkg.By.xpath("//*[@id='forwardButton']")))
" Нажать на элемент. "
1-й
var clcikbuttons = WDS.browser.findElement(pkg.By.tagname("//*[@id='forwardButton']"))
clcikbuttons .click();
2-ой
var clcikbuttons = WDS.browser.findElement(pkg.By.xpath("//*[@id='forwardButton']"))
clcikbuttons .click();
индекс использования второго сценария
var aghrstgrptxt = WDS.browser.findElement(pkg.By.xpath("(//li[contains(@id, 'groupRow')])[1]"))
aghrstgrptxt .click();