Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

protractor element.all for eahc

let sportCar;

await element.all(by.css('div[class="cars"]')).each(element => {
        element.getText().then(function (text) {
            if (text === 'Ferrari') {
                sportCar = element;
            }
        });
});
 
PREVIOUS NEXT
Tagged: #protractor #eahc
ADD COMMENT
Topic
Name
9+3 =