com.automation.remarks.kirk.locators.WebElementLocator.kt Maven / Gradle / Ivy
package com.automation.remarks.kirk.locators
import org.openqa.selenium.By
import org.openqa.selenium.WebDriver
import org.openqa.selenium.WebElement
/**
* Created by sepi on 6/27/2017.
*/
class WebElementLocator(private val by: By,
private val driver: WebDriver) : ElementLocator {
override fun find(): WebElement {
return driver.findElement(by)
}
override val description: String
get() = "element located {$by}"
}