semperos/clj-webdriver — Issue #16: Refactor exists? fn using Element record
Author: semperos
Created: 2011-11-10 14:42:43+00:00
State: open
Labels: new-feature

*Progress tracker for 0.5.x*

With the introduction of the Element record, we can refactor the `exists?` function to accept an Element record, instead of its current behavior in accepting a "find-it form." This has been necessary while using the WebElement object directly, because Selenium-WebDriver throws an exception if an element doesn't exist. The WebElement record can allow for a nil constructor, thereby allowing us to delay the check for `exists?` until explicitly called.