I need to get the list of web elements by using web driver object
findElements(By.xpath(""));
I get the list by using xpath as //*[@class=\"providers-list clearfix\"]
.However, I get an error whenever I try to fetch element inside
<div class="providers-list clearfix">::before
<div class="data-container">..</div>
</div>
This xpath gives me error:
//[@class=\"data-container\"]" as no such element: Unable to locate element: {"method":"xpath","selector":"//[@class="data-container"]"}