You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+54-14Lines changed: 54 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
# FluentSelenium
2
2
3
-
FluentSelenium is a layer on top of Selenium 2.0 (WebDriver) that adds a [fluent interface](http://martinfowler.com/bliki/FluentInterface.html) style for working with the browser. For now, it is for the Java binding to WebDriver, and works with Java versions 5, 6, 7, 8, 9, 10, 12, 12 & 13.
3
+
FluentSelenium is a wrapper for Selenium 2+ (WebDriver) that adds a [fluent interface](http://martinfowler.com/bliki/FluentInterface.html) style for working with the browser. It allows you easier and faster writing of Web UI Tests. Test code using FluentSelenium is terser and more elegant.
4
4
5
5
Of many benefits, FluentSelenium will attempt to transparently get past the stale element exception business.
6
6
7
+
FluentSelenium works with JUnit, TestNG, ScalaTest, JBehave, Cucumber for Java, or whatever JDK language you prefer. FluentSelenium works with Java (5+), Groovy, Scala, Clojure, and Kotlin.
8
+
7
9
## Basic Use
8
10
9
-
Regular HTML elements have Java methods that are named for them. Locators are optional, and are from WebDriver's regular set:
11
+
Regular HTML elements have Java methods that are named for them. Locators are optional, and are from WebDriver's regular set (by id, by css selector, by tag name, by xpath):
This will throw an exception **after** the elapsed time, if the element still hasn't appeared in the page's DOM.
49
51
52
+
As well as `millis(..)` and `secs(..)`, there is also `mins(..)`
53
+
50
54
### without()
51
55
52
56
The opposite of "within", the "without" capability is going to wait for something to disappear. If the element is still in the page, it will keep waiting upto a given period of time, for it to disappear:
0 commit comments