Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
698ed26
Merge pull request #5 from xdev-software/master
AB-xdev Jun 16, 2025
762cb36
Update dependency org.sonatype.central:central-publishing-maven-plugi…
xdev-renovate Jun 18, 2025
88bc24f
Cleanup .gitignore
AB-xdev Jun 18, 2025
f673c24
Merge pull request #163 from xdev-software/renovate/org.sonatype.cent…
AB-xdev Jun 18, 2025
015131b
Update .gitignore
AB-xdev Jun 18, 2025
67c2816
Update dependency com.puppycrawl.tools:checkstyle to v10.25.1
xdev-renovate Jun 22, 2025
861794f
Update dependency org.codehaus.mojo:flatten-maven-plugin to v1.7.1
xdev-renovate Jun 22, 2025
4ef0112
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Jun 23, 2025
754718d
Merge pull request #165 from xdev-software/renovate/org.codehaus.mojo…
AB-xdev Jun 23, 2025
3083100
Merge pull request #164 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Jun 23, 2025
e5acc78
Update dependency org.junit.jupiter:junit-jupiter to v5.13.2
xdev-renovate Jun 25, 2025
f7426d2
Update dependency com.puppycrawl.tools:checkstyle to v10.26.0
xdev-renovate Jun 25, 2025
9d8d2de
Update dependency org.apache.maven.plugins:maven-pmd-plugin to v3.27.0
xdev-renovate Jun 26, 2025
b73f417
Merge pull request #166 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Jun 26, 2025
3ba1bca
Merge pull request #167 from xdev-software/renovate/org.apache.maven.…
AB-xdev Jun 26, 2025
d38b73d
Sync naming
AB-xdev Jun 26, 2025
c09a47a
Merge pull request #8 from xdev-software/renovate/org.junit.jupiter-j…
AB-xdev Jun 27, 2025
0a2dbb7
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Jun 27, 2025
6608c64
Typo
AB-xdev Jun 27, 2025
b06f07f
Merge remote-tracking branch 'origin/update-from-template-merged' int…
xdev-gh-bot Jun 27, 2025
08be521
Update net.sourceforge.pmd to v7.15.0
xdev-renovate Jun 28, 2025
a166186
Update dependency com.puppycrawl.tools:checkstyle to v10.26.1
xdev-renovate Jun 30, 2025
fd4350a
Merge pull request #168 from xdev-software/renovate/net.sourceforge.pmd
AB-xdev Jun 30, 2025
c0c6db8
Merge pull request #169 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Jun 30, 2025
c6e807f
Simplify: Use ``processAllModules`` flag
AB-xdev Jul 1, 2025
48f59e6
Update dependency org.apache.maven.plugins:maven-gpg-plugin to v3.2.8
xdev-renovate Jul 3, 2025
23eab49
Implement dual publishing to GitHub packages
AB-xdev Jul 3, 2025
1f69b6d
Merge pull request #172 from xdev-software/renovate/org.apache.maven.…
AB-xdev Jul 3, 2025
e3aecfa
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Jul 7, 2025
36d1d47
Update dependency org.junit.jupiter:junit-jupiter to v5.13.3
xdev-renovate Jul 7, 2025
ff0bcab
Update dependency software.xdev:testcontainers-selenium to v1.2.4
xdev-renovate Jul 7, 2025
cba2088
Merge pull request #13 from xdev-software/renovate/software.xdev-test…
AB-xdev Jul 7, 2025
168a00a
Merge pull request #19 from xdev-software/renovate/org.junit.jupiter-…
AB-xdev Jul 7, 2025
4801081
Group org.seleniumhq.selenium
AB-xdev Jul 7, 2025
8b99c55
Update org.seleniumhq.selenium to v4.34.0
xdev-renovate Jul 7, 2025
aede7b8
Merge pull request #21 from xdev-software/renovate/org.seleniumhq.sel…
AB-xdev Jul 7, 2025
ad7c6b6
Adopt changes from https://github.com/SeleniumHQ/selenium/issues/15884
AB-xdev Jul 7, 2025
86fbfdf
Fix GitHub Readme rendering
AB-xdev Jul 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 24 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
needs: [check-code]
timeout-minutes: 10
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ steps.create-release.outputs.upload_url }}
steps:
- uses: actions/checkout@v4

Expand All @@ -61,15 +61,7 @@ jobs:
git config --global user.name "GitHub Actions"

- name: Un-SNAP
run: |
mvnwPath=$(readlink -f ./mvnw)
modules=("") # root
modules+=($(grep -oP '(?<=<module>)[^<]+' 'pom.xml'))
for i in "${modules[@]}"
do
echo "Processing $i/pom.xml"
(cd "$i" && $mvnwPath -B versions:set -DremoveSnapshot -DgenerateBackupPoms=false)
done
run: ./mvnw -B versions:set -DremoveSnapshot -DprocessAllModules -DgenerateBackupPoms=false

- name: Get version
id: version
Expand All @@ -88,7 +80,7 @@ jobs:
git push origin --tags

- name: Create Release
id: create_release
id: create-release
uses: shogo82148/actions-create-release@4661dc54f7b4b564074e9fbf73884d960de569a3 # v1
with:
tag_name: v${{ steps.version.outputs.release }}
Expand All @@ -112,6 +104,9 @@ jobs:
runs-on: ubuntu-latest
needs: [prepare-release]
timeout-minutes: 60
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4

Expand All @@ -120,20 +115,34 @@ jobs:
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git pull

- name: Set up JDK
uses: actions/setup-java@v4
with: # running setup-java overwrites the settings.xml
distribution: 'temurin'
java-version: '17'
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Only import once

- name: Publish to Central Portal
run: ../mvnw -B deploy -P publish -DskipTests -DaltDeploymentRepository=github::https://maven.pkg.github.com/${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}

- name: Set up JDK
uses: actions/setup-java@v4
with: # running setup-java again overwrites the settings.xml
java-version: '17'
distribution: 'temurin'
java-version: '17'
server-id: sonatype-central-portal
server-username: MAVEN_CENTRAL_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}

- name: Publish to Central Portal
run: ../mvnw -B deploy -P publish-sonatype-central-portal -DskipTests
run: ../mvnw -B deploy -P publish,publish-sonatype-central-portal -DskipTests
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_TOKEN }}
Expand Down Expand Up @@ -185,15 +194,7 @@ jobs:
git pull

- name: Inc Version and SNAP
run: |
mvnwPath=$(readlink -f ./mvnw)
modules=("") # root
modules+=($(grep -oP '(?<=<module>)[^<]+' 'pom.xml'))
for i in "${modules[@]}"
do
echo "Processing $i/pom.xml"
(cd "$i" && $mvnwPath -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} -DgenerateBackupPoms=false -DnextSnapshot=true -DupdateMatchingVersions=false)
done
run: ./mvnw -B versions:set -DnextSnapshot -DprocessAllModules -DgenerateBackupPoms=false

- name: Git Commit and Push
run: |
Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,26 @@ jobs:
publish-maven:
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with: # running setup-java overwrites the settings.xml
distribution: 'temurin'
java-version: '17'
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Only import once

- name: Publish to GitHub Packages
run: ../mvnw -B deploy -P publish -DskipTests -DaltDeploymentRepository=github::https://maven.pkg.github.com/${{ github.repository }}
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Set up JDK
uses: actions/setup-java@v4
Expand All @@ -22,10 +40,9 @@ jobs:
server-username: MAVEN_CENTRAL_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}

- name: Publish to Central Portal
run: ../mvnw -B deploy -P publish-sonatype-central-portal -DskipTests
run: ../mvnw -B deploy -P publish,publish-sonatype-central-portal -DskipTests
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_USERNAME }}
Expand Down
46 changes: 9 additions & 37 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,65 +1,37 @@
# Maven
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
# https://github.com/takari/maven-wrapper#usage-without-binary-jar

# Maven Wrapper
.mvn/wrapper/maven-wrapper.jar

# Maven Flatten Plugin
.flattened-pom.xml

# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package/Binary Files don't belong into a git repo
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
*.dll
*.exe
*.bin

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

# JRebel
**/resources/rebel.xml
**/resources/rebel-remote.xml

# eclispe stuff for root
/.settings/
/.classpath
/.project


# eclispe stuff for modules
/*/.metadata/
/*/.apt_generated_tests/
/*/.settings/
/*/.classpath
/*/.project
/*/RemoteSystemsTempFiles/

#custom
.flattened-pom.xml
.tern-project
# Eclipse
.metadata
.settings
.classpath
.project

# == IntelliJ ==
*.iml
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.0.3
* Removed reflection calls in ``CustomizableJsonToWebElementConverter`` as https://github.com/SeleniumHQ/selenium/issues/15884 was fixed #11
* Selenium version 4.34+ is required
* Updated dependencies

# 1.0.2
* ``ImprovedRemoteWebElement``
* Make it possible to disable auto scroll
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/selenium-elements/check-build.yml?branch=develop)](https://github.com/xdev-software/selenium-elements/actions/workflows/check-build.yml?query=branch%3Adevelop)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=xdev-software_selenium-elements&metric=alert_status)](https://sonarcloud.io/dashboard?id=xdev-software_selenium-elements)

# <img src="https://raw.githubusercontent.com/SeleniumHQ/seleniumhq.github.io/690acbad7b4bf4656f116274809765db64e6ccf7/website_and_docs/static/images/logos/webdriver.svg" height=24 /> Elements for Selenium
# <img src="https://raw.githubusercontent.com/SeleniumHQ/seleniumhq.github.io/690acbad7b4bf4656f116274809765db64e6ccf7/website_and_docs/static/images/logos/webdriver.svg" width=24 /> Elements for Selenium

Define Selenium HTML elements as Java classes, similar to Selenium's [``@FindBy`` annotation](https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/FindBy.html).

Also contains a ton of other predefined utility, for example:
* Automatically scrolling elements that perform operations into the view
* Automatically scrolls elements that perform operations into the view
* Safe click: When an element is detected as stale a JavaScript click is executed instead
* Option to globally wait until the page finished loading
* Waiting for some time until the element is present (``waitUntil``)
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.25.0</version>
<version>10.26.1</version>
</dependency>
</dependencies>
<configuration>
Expand All @@ -69,7 +69,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.26.0</version>
<version>3.27.0</version>
<configuration>
<includeTests>true</includeTests>
<printFailingErrors>true</printFailingErrors>
Expand All @@ -81,12 +81,12 @@
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>
<version>7.14.0</version>
<version>7.15.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>7.14.0</version>
<version>7.15.0</version>
</dependency>
</dependencies>
</plugin>
Expand Down
10 changes: 10 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
"maven"
],
"groupName": "net.sourceforge.pmd"
},
{
"description": "Group org.seleniumhq.selenium",
"matchPackagePatterns": [
"^org.seleniumhq.selenium"
],
"datasources": [
"maven"
],
"groupName": "org.seleniumhq.selenium"
}
]
}
Loading