minor edits & push to nexus (1.2.2)

master
io42630 1 year ago
parent 75b6fd2068
commit 220243fbd8

@ -5,7 +5,7 @@
<groupId>com.olexyn</groupId>
<artifactId>tabdriver</artifactId>
<version>1.2</version>
<version>1.2.2</version>
<packaging>jar</packaging>
<name>tabdriver</name>
@ -99,8 +99,27 @@
<target>${xx.java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<altDeploymentRepository>internal.repo::default::http://localhost:9020/repository/maven-releases/</altDeploymentRepository>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<distributionManagement>
<repository>
<id>nexus-releases</id>
<url>http://localhost:9020/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<url>http://localhost:9020/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
</project>

@ -8,4 +8,7 @@ public interface Constants {
String ID = "id";
String TABLE = "table";
String DIV = "div";
String LABEL = "label";
String CLASS = "class";
String CHECKBOX = "checkbox";
}

@ -236,13 +236,18 @@ public class TabDriver extends ChromeDriver implements JavascriptExecutor {
return filterElementListBy(elements, CRITERIA.NONE, Constants.EMPTY);
}
public synchronized List<WebElement> findElements(By by) {
return findElements(by);
}
public synchronized void followContainedLink(WebElement element) {
String link = element.getAttribute("href");
if (link != null) { navigate().to(link); }
}
public synchronized void setRadio(By by, boolean checked) {
((JavascriptExecutor) this).executeScript("arguments[0].checked = " + checked + ";", findElement(by));
public synchronized void setRadio(WebElement element, boolean checked) {
((JavascriptExecutor) this).executeScript("arguments[0].checked = " + checked + ";", element);
}
public synchronized void setComboByDataValue(By comboBy, String dataValue) {

Loading…
Cancel
Save