There are three blocks on the page, for example. example scructare Each block has a title and div.action with a button example The headings are different for everyone. I need to select a div with a Text heading and click a button
I find this element like this
return browser.element(by.css('.group-list-item:last-child')).element(by.css('.action'));
But the necessary block will not necessarily be the last, it can be 1 or the second. The title of the block does not change