On ubuntu, there’s no file extensions. So you might want to drop the “.exe” in your System.setProperty() and try again.
Alternatively I would suggest that you merely have the geckodriver available as part of your PATH variable, so that you can invoke it directly from the command line terminal. Once you have that working, your test should work fine.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/29795a6c-c49f-4c01-9ee8-993c2bb8972f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sanchit,
Am not quite convinced that you are sharing the proper code.
The code you shared and the exception stacktrace are completely unrelated. The stacktrace seems to indicate that you are forcing Selenium to use the legacy protocol of working with firefox plugin.
Am guessing that somewhere you are passing in the JVM argument:
-Dwebdriver.firefox.marionette = false
When I ran your test code, I noticed the following console logs.
1513609401505 geckodriver INFO geckodriver 0.19.1
1513609401599 geckodriver INFO Listening on 127.0.0.1:13321
1513609402140 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "-marionette" "-profile" "/var/folders/mj/81r6v7nn5lqgqgtfl18spfpw0000gn/T/rust_mozprofile.CfNCRwRxoR6t"
1513609402858 Marionette INFO Enabled via --marionette
2017-12-18 20:33:23.839 plugin-container[19984:439472] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x15343, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
1513609404299 Marionette INFO Listening on port 59834
1513609404304 Marionette WARN TLS certificate errors will be ignored for this session
1513609404369 Marionette DEBUG Register listener.js for window 2147483649
Dec 18, 2017 8:33:24 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
1513609404453 Marionette DEBUG Received DOM event "beforeunload" for "about:blank"
1513609405299 Marionette DEBUG Received DOM event "pagehide" for "about:blank"
1513609405300 Marionette DEBUG Received DOM event "unload" for "about:blank"
1513609405501 Marionette DEBUG Received DOM event "DOMContentLoaded" for "https://www.google.co.in/?gfe_rd=cr&dcr=0&ei=vNg3WoeKMd2i4wKDzavIDw"
1513609406329 Marionette DEBUG Received DOM event "pageshow" for "https://www.google.co.in/?gfe_rd=cr&dcr=0&ei=vNg3WoeKMd2i4wKDzavIDw"
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
From: <seleniu...@googlegroups.com> on behalf of Sanchit Jalan <sanchit...@gmail.com>
Reply-To: <seleniu...@googlegroups.com>
Date: Sunday, December 17, 2017 at 11:53 PM
To: Selenium Users <seleniu...@googlegroups.com>
Subject: [selenium-users] Re: There is an exception issue which i am facing running selenium webdriver
Sanchit Jalan, Replace the code as below ... System.setProperty("webdriver.firefox.marionette","/home/sanchit/geckodriver.exe"); |