Getting error "org.openqa.selenium.WebDriverException: java.net.ConnectException: Connection refused:"
<p>I am using selenium webdriver for the testing application. i am using using Marionettedriver for the browser. however when I run the code it gives the error "org.openqa.selenium.WebDriverException: java.net.ConnectException: Connection refused:" I have check the system path also no issue in the same.
so please suggest how to solve the error.</p>

<p>Also getting error " error: Found argument '--webdriver-port' which wasn't expected, or isn't valid in this context</p>

<p>USAGE:
    geckodriver.exe [FLAGS] [OPTIONS]".
I am not able to understand for what issue this error is appears. So please let me know how to solve this</p>

<p>I have used the jar file for selenium server and selenium standalone server in the project. still same error shows. Also as mentioned above it shows the error of " error: Found argument '--webdriver-port' which wasn't expected, or isn't valid in this context</p>

<p>USAGE:
    geckodriver.exe [FLAGS] [OPTIONS]". </p>