Skip to content

Commit

Permalink
#105: Retry a whole chain after a StaleElementException,
Browse files Browse the repository at this point in the history
fixed issues in Javadoc
  • Loading branch information
Marcel Pfotenhauer committed Jan 7, 2020
1 parent bec4d6a commit 39fe86d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/main/java/com/xceptance/neodymium/util/SelenideAddons.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,21 +120,23 @@ public ElementsCollection get()
* Attention: Since the SelenideElement class implements the InvocationHandler interface you have to make sure that
* the element is retrieved in order to provoke a StaleElementReferenceException. You can do this by calling a
* should function that uses a condition.
* <p>
* </p>
* <p>
* The following settings can be configured within the Neodymium configuration to tune the retry behavior:
* </p>
* <ul>
* <li>neodymium.selenideAddons.staleElement.retry.count (default 3 retries)</li>
* <li>neodymium.selenideAddons.staleElement.retry.timeout (default 500ms pause between retries)</li>
* </p>
* </ul>
* <p>
* <b>Example:</b>
* </p>
*
* <pre>
* SelenideAddons.$safe(() -&gt; {
* return $("selector").should(exist);
* });
* </pre>
* </p>
*
* @param code
* the code to run
Expand Down Expand Up @@ -184,18 +186,20 @@ public ElementsCollection get()
* {@link StaleElementReferenceException} occurs.
* <p>
* The following settings can be configured within the Neodymium configuration to tune the retry behavior:
* </p>
* <ul>
* <li>neodymium.selenideAddons.staleElement.retry.count (default 3 retries)</li>
* <li>neodymium.selenideAddons.staleElement.retry.timeout (default 500ms pause between retries)</li>
* </p>
* </ul>
* <p>
* <b>Example:</b>
* </p>
*
* <pre>
* SelenideAddons.$safe(() -&gt; {
* $("selectorOne").find("selectorTwo").shouldBe(visible);
* });
* </pre>
* </p>
*
* @param code
* the code to run
Expand Down

0 comments on commit 39fe86d

Please sign in to comment.