Cleanup in libraries and tools: use property access syntax.

This commit is contained in:
Ilya Gorbunov
2016-01-13 21:00:36 +03:00
parent 19a4f65fd1
commit 57dcbe0aea
22 changed files with 197 additions and 197 deletions
@@ -11,11 +11,11 @@ open class SampleTest {
open val driver: WebDriver = HtmlUnitDriver(true)
@test fun homePage(): Unit {
driver.get("file://" + File("sample.html").getCanonicalPath())
driver.get("file://" + File("sample.html").canonicalPath)
Thread.sleep(1000)
val foo = driver.findElement(By.id("foo"))!!
val text = foo.getText() ?: ""
val text = foo.text ?: ""
println("Found $foo with text '$text'")
assertEquals("Some Dynamically Created Content!!!", text.trim())
}