How do you verify tooltip text using Protractor?
Question
How do you verify tooltip text using Protractor?
Answer
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) }
📲 Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.