Skip to content

Commit

Permalink
Fix javadoc for @findby ('@' was not rendered in code samples) (#3430)
Browse files Browse the repository at this point in the history
  • Loading branch information
fil7 authored and shs96c committed Feb 23, 2017
1 parent eecfd64 commit b1737a1
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions java/client/src/org/openqa/selenium/support/FindBy.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,31 @@
import java.lang.annotation.Target;

/**
* Used to mark a field on a Page Object to indicate an alternative mechanism for locating the
* <p>Used to mark a field on a Page Object to indicate an alternative mechanism for locating the
* element or a list of elements. Used in conjunction with
* {@link org.openqa.selenium.support.PageFactory}
* this allows users to quickly and easily create PageObjects.
* this allows users to quickly and easily create PageObjects.</p>
*
* It can be used on a types as well, but will not be processed by default.
* <p>It can be used on a types as well, but will not be processed by default.</p>
*
* <p>
* You can either use this annotation by specifying both "how" and "using" or by specifying one of
* the location strategies (eg: "id") with an appropriate value to use. Both options will delegate
* down to the matching {@link org.openqa.selenium.By} methods in By class.
* down to the matching {@link org.openqa.selenium.By} methods in By class.</p>
*
* For example, these two annotations point to the same element:
* <p>For example, these two annotations point to the same element:</p>
*
* <pre>{@code
* <pre class="code">
* &#64;FindBy(id = "foobar") WebElement foobar;
* &#64;FindBy(how = How.ID, using = "foobar") WebElement foobar;
* }</pre>
* </pre>
*
* and these two annotations point to the same list of elements:
* <p>and these two annotations point to the same list of elements:</p>
*
* <pre>{@code
* &#64;FindBy(tagName = "a") List<WebElement> links;
* &#64;FindBy(how = How.TAG_NAME, using = "a") List<WebElement> links;
* }</pre>
* <pre class="code">
* &#64;FindBy(tagName = "a") List&lt;WebElement&gt; links;
* &#64;FindBy(how = How.TAG_NAME, using = "a") List&lt;WebElement&gt; links;
* </pre>
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.TYPE})
Expand Down

0 comments on commit b1737a1

Please sign in to comment.