Skip to content

Commit

Permalink
added url ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmasB committed Mar 26, 2024
1 parent 34a1325 commit 81b336e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.firefox.FirefoxOptions
import java.net.URL

/**
* Provides access to JS-driven implementation.
Expand All @@ -25,6 +26,8 @@ import org.openqa.selenium.firefox.FirefoxOptions
*/
abstract class WebAPIService(server: LocalWebSocketServer, private val apiURL: String) : RPCService(server) {

constructor(server: LocalWebSocketServer, url: URL) : this(server, url.toExternalForm())

private val log = Logger.get(WebAPIService::class.java)

private val readyProp = ReadOnlyBooleanWrapper(false)
Expand Down

0 comments on commit 81b336e

Please sign in to comment.