T
T
tteqwe2020-05-04 08:45:30
Angular
tteqwe, 2020-05-04 08:45:30

What locator should be written to get the required element?

Hello. There is a list of blocks with the class .group-list-item . Each of these blocks has two more .title .action s . .title contains the title of the block (it is different for each .group-list-item ), and .action is the button. The crux of the matter is: how do I get to the .action of a particular .group-list-item , with .title = "Title2" ?
ps I tried in a similar way, but I don't know how to take into account .title .

return browser.element(by.css('.group-list-item:last-child')).element(by.css('.action'));

5eafa7a89a857420066272.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question