Answer the question
In order to leave comments, you need to log in
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'));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question