Is there any reason why both WebElements and locators shouldn't be used in one Selenium test project

Hi,
In my Selenium tests, sometimes i need to use locators (eg. driver.findElement(locator)) and sometimes I need to use webElements** (eg. List)**. I wonder if there is any reason, that using these to in one project is not correct and I should stick to one type and declare only locators or only webElements in every pageObject.
Thanks for your help!
Hari
Tagged:
0
Comments
Hello kosmik,
I am not sure how this relates to CTP, but you may find the following link helpful.
https://stackoverflow.com/questions/47166186/is-there-any-reason-why-both-webelements-and-locators-shouldnt-be-used-in-one-s