I am using geckodriver 0.18.0. Most of the time, when i run the script, its failed due to selenium webdriver exception.After that if i tried 2-3 times, it will be connected. This issue is coming from selenium or i have to make some correction. Please provide some solution.
FAILED CONFIGURATION: @BeforeTest TestSetup
org.openqa.selenium.WebDriverException: connection refused
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'KT-018', ip: '10.0.0.156', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_144'
Driver info: driver.version: FirefoxDriver
remote stacktrace: stack backtrace:
0: 0x4e6bd4 - <no info>
1: 0x43e83c - <no info>
2: 0x4438d4 - <no info>
===============================================
Default test
Tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 1
===============================================
===============================================
Default suite
Total tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 1
===============================================