What you want JavaScript or Java? Because your title and body are different.
If you want to do using Java then you know as you told that you are working. Just I want to give you one point for start up project that always use class/name/value/others use for Xpath, NEVER use ID. Because for every build the ID will changed.
If you want to set up your project using JavaScript then use WebDriverIO or WebDriverJS. You can google for details on that.
2
solved I want to start a project with webdriver and Java [closed]