Need help running example in Selenium-WebDriver Project

282 views
Skip to first unread message

John Turnbull

unread,
Sep 26, 2013, 1:23:22 AM9/26/13
to seleniu...@googlegroups.com
I've followed the instructions at http://docs.seleniumhq.org/docs/03_webdriver.jsp#setting-up-a-selenium-webdriver-project . My Java file is a straight copy of the example that queries google with the term "cheese".

I can build the project (in IntelliJ), but I can't figure out how to run it. (Yes, I'm knew to Selenium, Maven and IntelliJ). Following the IntelliJ help, I right click on my .java file and look for "Run" (or use the toolbar). But Run is not offered. Instead, there Maven in the drop-down and configuration dialog.

I've set up a Run ... configuration as a Maven project, and when I run it, I get this result.

"C:\Program Files\Java\jdk1.7.0_25\bin\java" -Dmaven.home=C:\Maven\apache-maven-3.0.5 -Didea.modules.paths.file=C:\Users\thinkpad\.IntelliJIdea12\system\Maven\idea-projects-state-c70ad8ca.properties -Dclassworlds.conf=C:\Users\thinkpad\.IntelliJIdea12\system\tmp\idea-5367693924322728715-mvn.conf -Didea.launcher.port=7538 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.4\bin" -Dfile.encoding=UTF-8 -classpath "C:\Maven\apache-maven-3.0.5\boot\plexus-classworlds-2.4.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.4\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher --fail-fast --strict-checksums test
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building MySel20Proj 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ MySel20Proj ---
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\thinkpad\playspace\selenium\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MySel20Proj ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ MySel20Proj ---
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\thinkpad\playspace\selenium\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ MySel20Proj ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ MySel20Proj ---
[INFO] No tests to run.
[INFO] Surefire report directory: C:\Users\thinkpad\playspace\selenium\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.552s
[INFO] Finished at: Wed Sep 25 22:08:19 PDT 2013
[INFO] Final Memory: 10M/174M
[INFO] ------------------------------------------------------------------------

Process finished with exit code 0

-------------------------

I'm using the Maven life-cycle goal "test".

How should I be running the example to see the cheese?

Thanks
  

john.t...@jorsek.com

unread,
Sep 27, 2013, 2:24:38 AM9/27/13
to seleniu...@googlegroups.com
Did not resolve this. Gave up and imported the project into Eclipse. Works fine.
Reply all
Reply to author
Forward
0 new messages