Razvan
10/16/2020, 8:01 AM@Test
fun index() {
val app = routes(
"/hello" bind Method.GET to {
Response(OK).body("<html><title>hello</title></html>")
}
)
val driver = Http4kWebDriver(app)
driver.navigate().to("<http://localhost:10000/hello>")
println(driver.title)
println(driver.currentUrl)
println(driver.findElement(By.tagName("title")))
}
and gets as result
<http://localhost:10000/>\hello
null
I run it on Linux all is OK
hello
<http://localhost:10000/hello>
JSoupWebElement(navigate=fun org.http4k.webdriver.Http4kWebDriver.navigateTo(org.http4k.core.Request): kotlin.Unit, getURL=() -> kotlin.String?, element=<title>hello</title>)
Any ideea where that comes from?dave
10/16/2020, 8:05 AMRazvan
10/16/2020, 8:27 AMHttp4kWebDriver.normalized()
as you use java Path to extact the path, Also no windows so have to do in pair with the mate... I'll let you know if we find the place.Path.get("/hello") returns "\hello"