Skip to content

Commit a189d0d

Browse files
committed
Merge branch 'develop'
2 parents 0a45676 + a247f62 commit a189d0d

File tree

8 files changed

+48
-62
lines changed

8 files changed

+48
-62
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
distribution: 'zulu'
2727
java-version: 17
2828
cache: 'maven'
29-
server-id: sonatype-nexus-staging
29+
server-id: central
3030
server-username: OSS_CENTRAL_USERNAME # env variable for Maven Central
3131
server-password: OSS_CENTRAL_PASSWORD # env variable for Maven Central
3232

pogen4selenium-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<parent>
1010
<groupId>io.toolisticon.pogen4selenium</groupId>
1111
<artifactId>pogen4selenium</artifactId>
12-
<version>0.9.0</version>
12+
<version>0.9.1</version>
1313
</parent>
1414

1515
<name>pogen4selenium-api</name>

pogen4selenium-api/src/main/java/io/toolisticon/pogen4selenium/api/PageObjectParent.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ public interface PageObjectParent<PAGEOBJECT extends PageObjectParent<PAGEOBJECT
3232
*/
3333
PAGEOBJECT pause(Duration duration);
3434

35+
/**
36+
* Wait as long as text is displayed
37+
* @param text the text to search
38+
* @return next fluent interface
39+
*/
40+
PAGEOBJECT waitForPageToContainText(String text);
41+
42+
3543
/**
3644
* Allows to do inline assertions done with your favourite test tools without the need to create local variables to keep state.
3745
* @param function a function containing the custom assertions

pogen4selenium-api/src/main/java/io/toolisticon/pogen4selenium/runtime/PageObjectParentImpl.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ public WebElement waitForElementToBeInteractable(By by) {
104104
return wait.until(ExpectedConditions.elementToBeClickable(by));
105105
}
106106

107+
108+
109+
@Override
110+
public PAGEOBJECT waitForPageToContainText(String text) {
111+
waitForMessage(text);
112+
return (PAGEOBJECT) this;
113+
}
114+
115+
116+
107117
public WebElement waitForElementToBeInteractable(ExpectedCondition<WebElement> expectedCondition) {
108118
Wait<WebDriver> wait =
109119
new FluentWait<>(driver)

pogen4selenium-example/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<parent>
1010
<groupId>io.toolisticon.pogen4selenium</groupId>
1111
<artifactId>pogen4selenium</artifactId>
12-
<version>0.9.0</version>
12+
<version>0.9.1</version>
1313
</parent>
1414

1515
<name>pogen4selenium-example</name>
@@ -33,7 +33,7 @@
3333
<dependency>
3434
<groupId>io.toolisticon.pogen4selenium</groupId>
3535
<artifactId>pogen4selenium-api</artifactId>
36-
<version>0.9.0</version>
36+
<version>0.9.1</version>
3737
</dependency>
3838

3939
<dependency>

pogen4selenium-processor/dependency-reduced-pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>pogen4selenium</artifactId>
55
<groupId>io.toolisticon.pogen4selenium</groupId>
6-
<version>0.8.2-SNAPSHOT</version>
6+
<version>0.9.1-SNAPSHOT</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>pogen4selenium-processor</artifactId>
@@ -75,13 +75,13 @@
7575
<dependency>
7676
<groupId>io.toolisticon.aptk</groupId>
7777
<artifactId>aptk-annotationwrapper-api</artifactId>
78-
<version>0.30.2</version>
78+
<version>0.30.3</version>
7979
<scope>provided</scope>
8080
</dependency>
8181
<dependency>
8282
<groupId>io.toolisticon.aptk</groupId>
8383
<artifactId>aptk-compilermessages-api</artifactId>
84-
<version>0.30.2</version>
84+
<version>0.30.3</version>
8585
<scope>provided</scope>
8686
</dependency>
8787
<dependency>
@@ -93,7 +93,7 @@
9393
<dependency>
9494
<groupId>io.toolisticon.cute</groupId>
9595
<artifactId>cute</artifactId>
96-
<version>1.8.0</version>
96+
<version>1.8.2</version>
9797
<scope>test</scope>
9898
<exclusions>
9999
<exclusion>
@@ -117,7 +117,7 @@
117117
<dependency>
118118
<groupId>io.toolisticon.aptk</groupId>
119119
<artifactId>aptk-cute</artifactId>
120-
<version>0.30.2</version>
120+
<version>0.30.3</version>
121121
<scope>test</scope>
122122
</dependency>
123123
<dependency>

pogen4selenium-processor/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<parent>
1010
<groupId>io.toolisticon.pogen4selenium</groupId>
1111
<artifactId>pogen4selenium</artifactId>
12-
<version>0.9.0</version>
12+
<version>0.9.1</version>
1313
</parent>
1414

1515
<name>pogen4selenium-processor</name>

pom.xml

Lines changed: 20 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>io.toolisticon.pogen4selenium</groupId>
55
<artifactId>pogen4selenium</artifactId>
6-
<version>0.9.0</version>
6+
<version>0.9.1</version>
77
<packaging>pom</packaging>
88
<name>pogen4selenium</name>
99
<description>Please refer to https://github.com/toolisticon/pogen4selenium</description>
@@ -49,9 +49,9 @@
4949
<java.compile.target.version>17</java.compile.target.version>
5050

5151
<!-- project dependency versions -->
52-
<cute.version>1.8.0</cute.version>
52+
<cute.version>1.8.2</cute.version>
5353
<spiap.version>0.11.0</spiap.version>
54-
<aptk.version>0.30.2</aptk.version>
54+
<aptk.version>0.30.3</aptk.version>
5555
<selenium.version>4.27.0</selenium.version>
5656

5757
<!-- versions of test dependencies -->
@@ -87,7 +87,7 @@
8787
<maven-versions-plugin.version>2.16.2</maven-versions-plugin.version>
8888

8989
<gitflow-maven-plugin.version>1.20.0</gitflow-maven-plugin.version>
90-
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
90+
<sonatype-centralPublishingPlugin.version>0.8.0</sonatype-centralPublishingPlugin.version>
9191
</properties>
9292
<build>
9393
<defaultGoal>clean install</defaultGoal>
@@ -297,25 +297,17 @@
297297
</executions>
298298
</plugin>
299299

300-
<plugin>
301-
<groupId>org.sonatype.plugins</groupId>
302-
<artifactId>nexus-staging-maven-plugin</artifactId>
303-
<version>${nexus-staging-maven-plugin.version}</version>
304-
<configuration>
305-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
306-
<serverId>sonatype-nexus-staging</serverId>
307-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
308-
</configuration>
309-
<executions>
310-
<execution>
311-
<id>default-deploy</id>
312-
<phase>deploy</phase>
313-
<goals>
314-
<goal>deploy</goal>
315-
</goals>
316-
</execution>
317-
</executions>
318-
</plugin>
300+
<!-- [RELEASE] NEXUS (version, configuration) -->
301+
<plugin>
302+
<groupId>org.sonatype.central</groupId>
303+
<artifactId>central-publishing-maven-plugin</artifactId>
304+
<version>${sonatype-centralPublishingPlugin.version}</version>
305+
<extensions>true</extensions>
306+
<configuration>
307+
<publishingServerId>central</publishingServerId>
308+
<autoPublish>true</autoPublish>
309+
</configuration>
310+
</plugin>
319311
</plugins>
320312
</pluginManagement>
321313
<plugins>
@@ -397,10 +389,10 @@
397389
<groupId>org.apache.maven.plugins</groupId>
398390
<artifactId>maven-gpg-plugin</artifactId>
399391
</plugin>
400-
<plugin>
401-
<groupId>org.sonatype.plugins</groupId>
402-
<artifactId>nexus-staging-maven-plugin</artifactId>
403-
</plugin>
392+
<plugin>
393+
<groupId>org.sonatype.central</groupId>
394+
<artifactId>central-publishing-maven-plugin</artifactId>
395+
</plugin>
404396
</plugins>
405397
</build>
406398
</profile>
@@ -491,31 +483,7 @@
491483

492484
</profile>
493485
</profiles>
494-
<repositories>
495-
<repository>
496-
<id>sonatype-nexus-snapshots</id>
497-
<name>Sonatype Nexus Snapshots</name>
498-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
499-
<releases>
500-
<enabled>false</enabled>
501-
</releases>
502-
<snapshots>
503-
<enabled>true</enabled>
504-
</snapshots>
505-
</repository>
506-
</repositories>
507-
<distributionManagement>
508-
<snapshotRepository>
509-
<id>sonatype-nexus-snapshots</id>
510-
<name>Sonatype Nexus Snapshots</name>
511-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
512-
</snapshotRepository>
513-
<repository>
514-
<id>sonatype-nexus-staging</id>
515-
<name>Nexus Release Repository</name>
516-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
517-
</repository>
518-
</distributionManagement>
486+
519487
<dependencies>
520488
<!-- Test dependencies -->
521489
<dependency>

0 commit comments

Comments
 (0)