Как определить кнопку нажатия кнопки? Разметка заключается в следующем:Выберите кнопку - webdriver Java
<button class="ProfileClick-actionButton js-actionButton js-actionReClick" data-modal="ProfileClick-reClick" type="button">
<div class="IconContainer js-tooltip" title="ReClick">
<span class="Icon Icon--reClick"></span>
<span class="u-hiddenVisually">ReClick</span>
</div>
<div class="IconTextContainer">
<span class="ProfileClick-actionCount ProfileClick-actionCount--isZero">
<span class="ProfileClick-actionCountForPresentation" aria-hidden="true"></span>
</span>
</div>
</button>
Я устал это:
driver.findElement(By.className("js-actionClick")).click();