diff --git a/htmlelements-all/pom.xml b/htmlelements-all/pom.xml index 4fef1ad7..e50cafc7 100644 --- a/htmlelements-all/pom.xml +++ b/htmlelements-all/pom.xml @@ -60,6 +60,19 @@ + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9.1 + + + attach-javadocs + + jar + + + + org.apache.maven.plugins maven-gpg-plugin diff --git a/htmlelements-java/pom.xml b/htmlelements-java/pom.xml index 53044ae2..d48d2808 100644 --- a/htmlelements-java/pom.xml +++ b/htmlelements-java/pom.xml @@ -93,6 +93,19 @@ + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9.1 + + + attach-javadocs + + jar + + + + diff --git a/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/TextInput.java b/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/TextInput.java index eb206804..2869b241 100644 --- a/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/TextInput.java +++ b/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/TextInput.java @@ -25,7 +25,7 @@ public TextInput(WebElement wrappedElement) { /** * @return Text entered into the text input. * @deprecated Use getText() instead. - *

+ * * Retrieves the text entered into this text input. */ @Deprecated diff --git a/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/TypifiedElement.java b/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/TypifiedElement.java index ac10366b..8dee8a90 100644 --- a/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/TypifiedElement.java +++ b/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/TypifiedElement.java @@ -29,9 +29,8 @@ *

  • {@link Form}
  • *
  • {@link FileInput}
  • * - *

    * But you can also write your own typified elements if needed. For example: - *

    + * *

      * public class Link extends TypifiedElement {
      * public Link(WebElement wrappedElement) {
    diff --git a/htmlelements-java/src/test/java/ru/yandex/qatools/htmlelements/UsingSelectTest.java b/htmlelements-java/src/test/java/ru/yandex/qatools/htmlelements/UsingSelectTest.java
    index 082dd560..0c0864e0 100644
    --- a/htmlelements-java/src/test/java/ru/yandex/qatools/htmlelements/UsingSelectTest.java
    +++ b/htmlelements-java/src/test/java/ru/yandex/qatools/htmlelements/UsingSelectTest.java
    @@ -17,20 +17,20 @@
      * @author Artem Koshelev artkoshelev@yandex-team.ru
      */
     public class UsingSelectTest {
    -//    @Test
    -//    public void withSimpleElement() {
    -//        WebDriver driver = mock(WebDriver.class);
    -//        WebElement registerForm = mock(WebElement.class);
    -//        WebElement countryBoxElement = mock(WebElement.class);
    -//
    -//        when(driver.findElement(By.className("regform"))).thenReturn(registerForm);
    -//        when(registerForm.findElement(By.name("country"))).thenReturn(countryBoxElement);
    -//        when(countryBoxElement.getTagName()).thenReturn("select");
    -//        when(countryBoxElement.getAttribute("multiple")).thenReturn("true");
    -//
    -//        RegisterForm form = new RegisterForm(driver);
    -//        form.country.deselectAll();
    -//    }
    +    @Test
    +    public void withSimpleElement() {
    +        WebDriver driver = mock(WebDriver.class);
    +        WebElement registerForm = mock(WebElement.class);
    +        WebElement countryBoxElement = mock(WebElement.class);
    +
    +        when(driver.findElement(By.className("regform"))).thenReturn(registerForm);
    +        when(registerForm.findElement(By.name("country"))).thenReturn(countryBoxElement);
    +        when(countryBoxElement.getTagName()).thenReturn("select");
    +        when(countryBoxElement.getAttribute("multiple")).thenReturn("true");
    +
    +        RegisterForm form = new RegisterForm(driver);
    +        form.country.deselectAll();
    +    }
     
         @FindBy(className = "regform")
         public class RegisterForm extends HtmlElement {
    diff --git a/pom.xml b/pom.xml
    index d77768aa..c25ab152 100644
    --- a/pom.xml
    +++ b/pom.xml
    @@ -97,6 +97,19 @@
               
             
           
    +      
    +        org.apache.maven.plugins
    +        maven-javadoc-plugin
    +        2.9.1
    +        
    +          
    +            attach-javadocs
    +            
    +              jar
    +            
    +          
    +        
    +      
           
             org.apache.maven.plugins
             maven-gpg-plugin