I am currently utilizing webdriver io for conducting tests on a webpage. I am in need of verifying the existence of an element with a specific href on the page.
I have attempted to achieve this using the following
snippet
var client = webdriverio.remote(options);
.elements('.mylinkclass', function(err,res) {
res.value.forEach(function(elem){
client.getText(elem).then(function(text) {
if (text=="www.superweb.com"){
console.log("allright!");
}
})
})