Zarkonnen / se-interpreter

Interpreter for Selenium Builder JSON scripts based on node.js and wd.
34 stars 31 forks source link

--browser-browserName=chrome #45

Closed emailvacharya closed 9 years ago

emailvacharya commented 9 years ago

Hi, I am trying to execute example.json file on chrome from cmd. Below is my command

Java -jar SeInterpreter.jar --browser-browserName=chrome full_example.json. I am getting an exception. See below stack trace Mar 30, 2015 11:19:53 AM com.sebuilder.interpreter.SeInterpreter main SEVERE: Run error. java.io.FileNotFoundException: --browser-browserName=chrome (The system cannot f ind the file specified) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(Unknown Source) at java.io.FileInputStream.(Unknown Source) at com.sebuilder.interpreter.factory.ScriptFactory.parse(ScriptFactory.j ava:206) at com.sebuilder.interpreter.SeInterpreter.main(SeInterpreter.java:99)

Thanks Vijay

Zarkonnen commented 9 years ago

Hey Vijay,

The issue is that you're invoking the Java version with a flag that looks like it's from the node.js version. So the reason it's going "file not found" is that it's literally trying to load a script of the name "--browser-browserName=chrome"!

The flag you would want to use is

--driver=Chrome

but you'll also have to implement com.sebuilder.interpreter.webdriverfactory.Chrome, something that really should already be in there but evidently isn't yet. (There's only Firefox and Remote factories.)

On 30.03.2015 12:34, emailvacharya wrote:

Hi, I am trying to execute example.json file on chrome from cmd. Below is my command

Java -jar SeInterpreter.jar --browser-browserName=chrome
full_example.json.
I am getting an exception. See below stack trace
Mar 30, 2015 11:19:53 AM com.sebuilder.interpreter.SeInterpreter main
SEVERE: Run error.
java.io.FileNotFoundException: --browser-browserName=chrome (The
system cannot f
ind the file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.(Unknown Source)
at
com.sebuilder.interpreter.factory.ScriptFactory.parse(ScriptFactory.j
ava:206)
at com.sebuilder.interpreter.SeInterpreter.main(SeInterpreter.java:99)

Thanks Vijay

— Reply to this email directly or view it on GitHub https://github.com/Zarkonnen/se-interpreter/issues/45.

emailvacharya commented 9 years ago

Thanks Dave. I have Java 8 installed. Shall I downgrade to 6 or 7 ?

Thanks Vijay

On 31 March 2015 at 10:37, David Stark notifications@github.com wrote:

Hey Vijay,

The issue is that you're invoking the Java version with a flag that looks like it's from the node.js version. So the reason it's going "file not found" is that it's literally trying to load a script of the name "--browser-browserName=chrome"!

The flag you would want to use is

--driver=Chrome

but you'll also have to implement com.sebuilder.interpreter.webdriverfactory.Chrome, something that really should already be in there but evidently isn't yet. (There's only Firefox and Remote factories.)

  • David

On 30.03.2015 12:34, emailvacharya wrote:

Hi, I am trying to execute example.json file on chrome from cmd. Below is my command

Java -jar SeInterpreter.jar --browser-browserName=chrome full_example.json. I am getting an exception. See below stack trace Mar 30, 2015 11:19:53 AM com.sebuilder.interpreter.SeInterpreter main SEVERE: Run error. java.io.FileNotFoundException: --browser-browserName=chrome (The system cannot f ind the file specified) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(Unknown Source) at java.io.FileInputStream.(Unknown Source) at com.sebuilder.interpreter.factory.ScriptFactory.parse(ScriptFactory.j ava:206) at com.sebuilder.interpreter.SeInterpreter.main(SeInterpreter.java:99)

Thanks Vijay

— Reply to this email directly or view it on GitHub https://github.com/Zarkonnen/se-interpreter/issues/45.

— Reply to this email directly or view it on GitHub https://github.com/Zarkonnen/se-interpreter/issues/45#issuecomment-88015268 .

emailvacharya commented 9 years ago

This issue is now resolved. I used node interpreter instead of Java. Thanks