1

Just wondering if there was a way to disconnect from a port without going in the cmd or terminal and entering kill or lsof -i? Can that be added in the editor - maybe as a capability? Currently running automation tests in Selenium - Java - Eclipse.

Thanks

jimbaker
  • 105
  • 2
  • 6

1 Answers1

-1

You can close Selenium via the driver by calling the quit method.

https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/WebDriver.html#quit--

driver.quit()
Ralph Ritoch
  • 3,260
  • 27
  • 37