Reputation: 21
I'm trying to run FIREFOX selenium IDE generated file in GOOGLE CHROME.
Below is a step by step description of what the problem is and what I have tried (unsuccessfully so far) to fix it.
Environment
Selenium IDE – installed**strong text**
Selenium RC – installed
Java version 1.7.0.05 - installed
What I'm trying to Do:
Running an FIREFOX IDE Generated Test in GOOGLE CHROME Steps
(1) Following three .htm files created using FIREFOX
a. google_for_selenium_rc.htm
b. google_for_testing.htm
c. visit_google_videos
(2) Created suite.htm file (see attached)
(3) Run the following command in cmd:
java –jar selenium-server.jar –htmlSuite “C:\Program Files
(x86)\Google\Chrome\Application\chrome.exe¬” “http://www.google.com.au”
“C:\Users\shelleymoudgil\Documents\KB\Selenium\SeleniumIDE\suite.htm”
“C:\Users\shelleymoudgil\Documents\KB\Selenium\SeleniumIDE\results.htm”
Expected
(4) Script successfully executed in GOOGLE CROME
Actual
(5) Following Error displayed:
Error:
Could not find or load main class ûjar
Solutions tried so far
I'm new to java and selenium. I'm stuck for the past 1 day. Can somebody guide and advise a possible solution or what I might be doing wrong.
Thanks Americain
Upvotes: 2
Views: 7153
Reputation: 1
Download this Jar file from the below link and paste it on the desktop.
then type the following in the command prompt and run this jar.
cd desktop java -jar typejarname
after this the jar will start running. now execute the code and see whether it is working or not.
Upvotes: -1
Reputation: 4475
Just from the error message, it looks like your -jar
argument has something other than -
as the first character, probably an en-dash. It would then interpret –jar
as a class to search for on the class path. Attempting this yields the same error message for me, modulo whatever encoding transformation is happening to the error message on your system.
Upvotes: 15