Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
fix javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
kosteman committed Sep 29, 2022
1 parent 59bb223 commit 8e5152b
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 17 deletions.
13 changes: 13 additions & 0 deletions htmlelements-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down
13 changes: 13 additions & 0 deletions htmlelements-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,19 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public TextInput(WebElement wrappedElement) {
/**
* @return Text entered into the text input.
* @deprecated Use getText() instead.
* <p/>
*
* Retrieves the text entered into this text input.
*/
@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@
* <li>{@link Form}</li>
* <li>{@link FileInput}</li>
* </ul>
* <p/>
* But you can also write your own typified elements if needed. For example:
* <p/>
*
* <pre>
* <code>public class Link extends TypifiedElement {
* public Link(WebElement wrappedElement) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
13 changes: 13 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,19 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down

0 comments on commit 8e5152b

Please sign in to comment.