From c10547c99d37362cfda4d3a7ee0f77cbf519be4d Mon Sep 17 00:00:00 2001 From: Matt Hicks Date: Tue, 8 Aug 2023 15:19:54 -0500 Subject: [PATCH] Minor updates --- build.sbt | 2 +- src/main/scala/com/outr/robobrowser/browser/ios/IOS.scala | 2 +- src/main/scala/com/outr/robobrowser/browser/remote/Remote.scala | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index b4d0408..05f7419 100644 --- a/build.sbt +++ b/build.sbt @@ -47,7 +47,7 @@ val rsyntaxtextareaVersion: String = "3.3.4" val scalatestVersion: String = "3.2.16" libraryDependencies ++= Seq( - "com.outr" %% "scribe-slf4j" % scribeVersion, + "com.outr" %% "scribe-slf4j2" % scribeVersion, "com.outr" %% "spice-client-okhttp" % spiceVersion, "com.outr" %% "spice-server-undertow" % spiceVersion, "org.jsoup" % "jsoup" % jsoupVersion, diff --git a/src/main/scala/com/outr/robobrowser/browser/ios/IOS.scala b/src/main/scala/com/outr/robobrowser/browser/ios/IOS.scala index 965241f..4ea755b 100644 --- a/src/main/scala/com/outr/robobrowser/browser/ios/IOS.scala +++ b/src/main/scala/com/outr/robobrowser/browser/ios/IOS.scala @@ -108,7 +108,7 @@ class IOS(url: URL, capabilities: Capabilities) extends RoboBrowser(capabilities } override protected def createDriver(): Driver = { - val javaURL = new java.net.URL(url.toString()) + val javaURL = new java.net.URI(url.toString()).toURL new IOSDriver(javaURL, capabilities) } } diff --git a/src/main/scala/com/outr/robobrowser/browser/remote/Remote.scala b/src/main/scala/com/outr/robobrowser/browser/remote/Remote.scala index 3dfd62c..1a3f074 100644 --- a/src/main/scala/com/outr/robobrowser/browser/remote/Remote.scala +++ b/src/main/scala/com/outr/robobrowser/browser/remote/Remote.scala @@ -11,7 +11,7 @@ class Remote(url: URL, capabilities: Capabilities, fileDetector: Option[FileDete override def sessionId: String = withDriver(_.getSessionId.toString) override protected def createDriver(): Driver = { - val javaURL = new java.net.URL(url.toString()) + val javaURL = new java.net.URI(url.toString()).toURL val driver = new RemoteWebDriver(javaURL, capabilities) fileDetector.foreach(driver.setFileDetector) driver