attribute(IWebElement el, string att) |
Isotope<string> |
Looks for a particular style attribute on an existing element |
Bind(Isotope<A> ma, Func<A, Isotope<B>> f) |
Isotope<B> |
|
className(string classname) |
By |
Creates a Class Name Selector for use with WebDriver. Equivalent of By.ClassName |
click(By selector) |
Isotope<Unit> |
Simulates the mouse-click |
click(IWebElement element) |
Isotope<Unit> |
Simulates the mouse-click |
Collect(Seq<Isotope<A>> mas) |
Isotope<Seq<A>> |
Flips the sequence of Isotopes to be a Isotope of Sequences |
config(string key) |
Isotope<string> |
Get a config key |
context(string context, Isotope<A> iso) |
Isotope<A> |
|
css(string cssSelector) |
By |
Creates a CSS Selector for use with WebDriver. Equivalent of By.CssSelector |
displayed(By selector) |
Isotope<bool> |
Finds an element by a selector and checks if it is currently displayed |
displayed(IWebElement el) |
Isotope<bool> |
Checks if an element is currently displayed |
doWhile(Isotope<A> iso, Func<A, bool> continueCondition, int maxRepeats) |
Isotope<A> |
|
doWhileOrFail(Isotope<A> iso, Func<A, bool> continueCondition, string failureMessage, int maxRepeats) |
Isotope<A> |
|
doWhileOrFail(Isotope<A> iso, Func<A, bool> continueCondition, string failureMessage, TimeSpan interval, int maxRepeats) |
Isotope<A> |
|
enabled(IWebElement el) |
Isotope<bool> |
|
exists(By selector) |
Isotope<bool> |
Checks if an element exists that matches the selector |
fail(string message) |
Isotope<A> |
Failure - creates an Isotope monad that always fails |
findElement(By selector, bool wait, string errorMessage) |
Isotope<IWebElement> |
Find an HTML element |
findElement(IWebElement element, By selector, bool wait, string errorMessage) |
Isotope<IWebElement> |
Find an HTML element |
findElements(By selector, bool wait, string error) |
Isotope<Seq<IWebElement>> |
Find HTML elements |
findElements(IWebElement parent, By selector, bool wait, string error) |
Isotope<Seq<IWebElement>> |
Find HTML elements within an element |
findElementsOrEmpty(By selector, string error) |
Isotope<Seq<IWebElement>> |
Find a sequence of elements matching a selector |
findElementsOrEmpty(IWebElement parent, By selector, string error) |
Isotope<Seq<IWebElement>> |
Find a sequence of elements within an existing element matching a selector |
findOptionalElement(By selector, string errorMessage) |
Isotope<Option<IWebElement>> |
|
findOptionalElement(IWebElement element, By selector, string errorMessage) |
Isotope<Option<IWebElement>> |
Find an HTML element |
findSelectElement(By selector) |
Isotope<SelectElement> |
Find a <select> element |
findSelectElement(IWebElement container, By selector) |
Isotope<SelectElement> |
Find a <select> element within an existing element |
getSelectedOption(SelectElement sel) |
Isotope<IWebElement> |
Retrieves the selected option element in a Select Element |
getSelectedOptionText(SelectElement sel) |
Isotope<string> |
Retrieves the text for the selected option element in a Select Element |
getSelectedOptionValue(SelectElement sel) |
Isotope<string> |
Retrieves the value for the selected option element in a Select Element |
getStyle(IWebElement el, string style) |
Isotope<string> |
Looks for a particular style attribute on an existing element |
getZIndex(IWebElement el) |
Isotope<int> |
Gets the Z Index style attribute value for an existing element |
hasText(IWebElement element, string comparison) |
Isotope<bool> |
Compares the text of an element with a string |
id(string id) |
By |
Creates an Id Selector for use with WebDriver. Equivalent of By.Id |
initConfig((string, string)[] config) |
Isotope<Unit> |
|
initConfig(Map<string, string> config) |
Isotope<Unit> |
Simple configuration setup |
initSettings(IsotopeSettings settings) |
Isotope<Unit> |
|
isCheckboxChecked(By selector) |
Isotope<bool> |
Finds a checkbox element by selector and identifies whether it is checked |
isCheckboxChecked(IWebElement el) |
Isotope<bool> |
Identifies whether an existing checkbox is checked |
linkText(string linktext) |
By |
Creates a Link Text Selector for use with WebDriver. Equivalent of By.LinkText |
log(string message) |
Isotope<Unit> |
Log some output |
Map(Isotope<A> ma, Func<A, B> f) |
Isotope<B> |
|
name(string name) |
By |
Creates a Name Selector for use with WebDriver. Equivalent of By.Name |
nav(string url) |
Isotope<Unit> |
Navigate to a URL |
obscured(IWebElement element) |
Isotope<bool> |
Checks whether the centre point of an element is the foremost element at that position on the page. (Uses the JavaScript document.elementFromPoint function) |
partialLinkText(string linktext) |
By |
Creates a Partial Link Text Selector for use with WebDriver. Equivalent of By.PartialLinkText |
pause(TimeSpan interval) |
Isotope<Unit> |
ONLY USE AS A LAST RESORT Pauses the processing for an interval to brute force waiting for actions to complete |
PrettyPrint(IWebElement x) |
string |
|
pure(A value) |
Isotope<A> |
Identity - lifts a value of A into the Isotope monad
* Always succeeds * |
pushLog(string message) |
Isotope<Unit> |
|
put(IsotopeState state) |
Isotope<Unit> |
Puts the state back into the Isotope monad |
Run(Isotope<A> ma, IsotopeSettings settings) |
(IsotopeState state, A value) |
Run the test computation - returning an optional error. The computation succeeds if result.IsNone is true |
Run(Isotope<A> ma, IWebDriver driver, IsotopeSettings settings) |
(IsotopeState state, A value) |
|
RunAndThrowOnError(Isotope<A> ma, IWebDriver driver, IsotopeSettings settings) |
(IsotopeState state, A value) |
Run the test computation - throws and error if it fails to pass |
Select(Isotope<A> ma, Func<A, B> f) |
Isotope<B> |
|
selectByText(By selector, string text) |
Isotope<Unit> |
Select a <select> option by text |
selectByText(SelectElement select, string text) |
Isotope<Unit> |
Select a <select> option by text |
selectByValue(By selector, string value) |
Isotope<Unit> |
Select a <select> option by value |
selectByValue(SelectElement select, string value) |
Isotope<Unit> |
Select a <select> option by value |
SelectMany(Isotope<A> ma, Func<A, Isotope<B>> f) |
Isotope<B> |
|
SelectMany(Isotope<A> ma, Func<A, Isotope<B>> bind, Func<A, B, C> project) |
Isotope<C> |
|
sendKeys(By selector, string keys) |
Isotope<Unit> |
Simulates keyboard by sending keys |
sendKeys(IWebElement element, string keys) |
Isotope<Unit> |
Simulates keyboard by sending keys |
Sequence(Seq<Isotope<A>> mas) |
Isotope<Seq<A>> |
Flips the sequence of Isotopes to be a Isotope of Sequences |
setCheckbox(IWebElement el, bool ticked) |
Isotope<Unit> |
Set checkbox value for existing element |
setWebDriver(IWebDriver d) |
Isotope<Unit> |
Web driver setter |
setWindowSize(int width, int height) |
Isotope<Unit> |
|
tagName(string tagname) |
By |
Creates a Tag Name Selector for use with WebDriver. Equivalent of By.TagName |
text(IWebElement element) |
Isotope<string> |
Gets the text inside an element |
ToIsotope(Option<A> maybe, string label) |
Isotope<A> |
|
ToIsotope(Try<A> tried, string label) |
Isotope<A> |
|
ToIsotope(Try<A> tried, Func<Exception, string> makeError) |
Isotope<A> |
|
ToIsotope(Either<A, B> either, Func<A, string> makeError) |
Isotope<B> |
|
toSelectElement(IWebElement element) |
Isotope<SelectElement> |
Convert an IWebElement to a SelectElement |
trya(Action action, string label) |
Isotope<Unit> |
Try and action |
trya(Action action, Func<Exception, string> makeError) |
Isotope<Unit> |
Try an action |
tryf(Func<A> func, string label) |
Isotope<A> |
Try a function |
tryf(Func<A> func, Func<Exception, string> makeError) |
Isotope<A> |
Try a function |
value(IWebElement element) |
Isotope<string> |
Gets the value attribute of an element |
voida(Action action) |
Isotope<Unit> |
Run a void returning action |
waitUntil(Isotope<A> iso, Func<A, bool> continueCondition, Option<TimeSpan> interval, Option<TimeSpan> wait) |
Isotope<A> |
|
waitUntilClickable(By selector) |
Isotope<IWebElement> |
Wait for an element to be rendered and clickable, fail if exceeds default timeout |
waitUntilClickable(IWebElement element) |
Isotope<Unit> |
Wait for an element to be rendered and clickable, fail if exceeds default timeout |
waitUntilClickable(By selector, TimeSpan timeout) |
Isotope<IWebElement> |
|
waitUntilClickable(IWebElement el, TimeSpan timeout) |
Isotope<Unit> |
|
waitUntilElementExists(By selector, Option<TimeSpan> interval, Option<TimeSpan> wait) |
Isotope<IWebElement> |
|
waitUntilElementExists(IWebElement element, By selector, Option<TimeSpan> interval, Option<TimeSpan> wait) |
Isotope<IWebElement> |
Attempts to find a child element within an existing element and if not present retries for a period. |
waitUntilElementsExists(By selector, Option<TimeSpan> interval, Option<TimeSpan> wait) |
Isotope<Seq<IWebElement>> |
|
waitUntilElementsExists(IWebElement parent, By selector, Option<TimeSpan> interval, Option<TimeSpan> wait) |
Isotope<Seq<IWebElement>> |
|
xPath(string xpath) |
By |
Creates a XPath Selector for use with WebDriver. Equivalent of By.XPath |