Skip to content

Commit 14de34f

Browse files
committed
fix: remove deprecated code
1 parent 6aebca7 commit 14de34f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/kotlin/me/daegyeo/netflixchecker/crawler/BankCrawler.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import org.openqa.selenium.support.ui.WebDriverWait
2323
import org.slf4j.LoggerFactory
2424
import org.springframework.context.ApplicationEventPublisher
2525
import org.springframework.stereotype.Component
26-
import java.net.URL
26+
import java.net.URI
2727
import java.time.Duration
2828
import java.time.LocalDateTime
2929
import java.time.ZoneId
@@ -66,7 +66,7 @@ class BankCrawler(
6666
System.setProperty(DRIVER_NAME, DRIVER_PATH)
6767
ChromeDriver(option)
6868
} else {
69-
RemoteWebDriver(URL(seleniumConfiguration.host), option)
69+
RemoteWebDriver(URI(seleniumConfiguration.host).toURL(), option)
7070
}
7171

7272
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(WAIT_SECONDS))

0 commit comments

Comments
 (0)