Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Using the size to decide whether element is there or not

Category: Selenium WebDriver
if(driver.findElements(Locator).size()>0
{
return true
}else
{
return false
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *