Danny Gloudemans
Danny Gloudemans

Reputation: 2677

run Selenium in a Batch File

I want to create a batch file for running Selenium. I need it to run it in Jenkins, now you can ask why you will do it with a batch file? There is a plugin for it, so use that one. Now it is impossible to use that plugin because it is to complex what I want, so I need to do it with a batch file.

I'm using selenium-java-2.20.0 and Firefox.

Thanks already!

This is the code and the error that I get:

C:\Users\User\Desktop>@echo off

C:\Users\User\Desktop>java -jar C:\Users\User\Downloads\selenium-java-2.20.0\selenium-2.20.0\selenium-java-2.20.0.jar -htmlSuite "iexploreproxy" "http://localhost" "C:\Users\User\Documents\Runner.html" "C:\Reports\Selenium\result.html"

Failed to load Main-Class manifest attribute from C:\Users\User\Downloads\selenium-java-2.20.0\selenium-2.20.0\selenium-java-2.20.0.jar

Upvotes: 2

Views: 3783

Answers (1)

Ross Patterson
Ross Patterson

Reputation: 9570

You're using the wrong JAR file. You want selenium-server-standalone-2.20.0.jar.

Upvotes: 3

Related Questions