Selenium 2 ( WebDriver )+ Java + Maven + Eclipse Hello World Program Issue

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Selenium 2 ( WebDriver )+ Java + Maven + Eclipse Hello World Program Issue

vikramvi
Java "Hello World" project convert to Maven Project and it stopped working with error "Error: Could not find or load main class...."

Hi All,

I did lot of search in google but couldn't find any Hello World program for Selenium 2 ( WebDriver )+ Java + Maven + Eclipse setup instructions

I'm having below setup

Eclipse with Maven plugin
Created a Java project "Hello World" and it worked fine when ran as "Java Application"
Then converted this to Marvel Project.
Tried to run whole project but it didn't fun
Tried to run Hello World file and it's consistently failing with error "Error: Could not find or load main class...."
Questions: 1. How to setup and run basis selenium 2 program with maven inside Eclipse 2. Why java stopped working after converting to Maven project.

Thanks in advance.

Regards, Vikram
Reply | Threaded
Open this post in threaded view
|

Re: Selenium 2 ( WebDriver )+ Java + Maven + Eclipse Hello World Program Issue

softwaretestingforum
Administrator
Could you upload your project here and I would debug.
~ seleniumtests.com