Last active
August 29, 2015 14:19
-
-
Save jsdevel/d75b13dcddb1515b603c to your computer and use it in GitHub Desktop.
Java 8 Selemium Widget Mixin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface SearchWidget<T extends Page> | |
extends HasPage<T>, HasDriver { | |
String SEARCH_WIDGET_BUTTON_SELECTOR = "#searchWidgetButton"; | |
default T clickSearchWidgetButton() { | |
getDriver() | |
.findElement(By.id(SEARCH_WIDGET_BUTTON_SELECTOR)) | |
.click(); | |
return getPage(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment