Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

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

kosmik5
kosmik5 Posts: 1
edited November 2017 in CTP

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:

Comments

Tagged