in Protractor by

How do you verify tooltip text using Protractor?

1 Answer

0 votes
by
We can verify tooltip text using protractor by fetching the value of ‘title’ attribute.

element(by.id("some")).getAttribute("title").then(function(tooltip){

console.log(tooltip)

}

element(by.id("some")).getAttribute("title").then(function(tooltip){

console.log(tooltip)

}
...