@@ -45,43 +45,50 @@ jobs:
4545      if : matrix.os == 'ubuntu' 
4646      run : Xvfb :99 & 
4747    - name : Set up Java 
48+       id : java 
4849      uses : actions/setup-java@v4 
4950      with :
5051        distribution : ' temurin' 
51-         java-version : 11 
52+         java-version : 17 
53+     - name : Import test cert non-Windows 
54+       if : matrix.os != 'windows' 
55+       run : sudo keytool -import -noprompt -trustcacerts -alias SeleniumHQ -file examples/java/src/test/resources/tls.crt -keystore ${{ steps.java.outputs.path }}/lib/security/cacerts -storepass changeit 
56+     - name : Import test cert Windows 
57+       if : matrix.os == 'windows' 
58+       run : keytool -import -noprompt -trustcacerts -alias SeleniumHQ -file examples/java/src/test/resources/tls.crt -keystore ${{ steps.java.outputs.path }}/lib/security/cacerts -storepass changeit 
5259    - name : Run Tests Stable 
5360      if : matrix.release == 'stable' 
54-       uses : 
nick-invision/[email protected] .0   61+       uses : 
nick-invision/[email protected] .2   5562      with :
56-         timeout_minutes : 20 
63+         timeout_minutes : 40 
5764        max_attempts : 3 
5865        command : | 
5966          cd examples/java 
60-           mvn -B test 
67+           mvn -B test -D"jdk.internal.httpclient.disableHostnameVerification=true"  
6168name : Run Tests Nightly Linux/macOS 
6269      if : matrix.release == 'nightly' && matrix.os != 'windows' 
63-       uses : 
nick-invision/[email protected] .0   70+       uses : 
nick-invision/[email protected] .2   6471      with :
65-         timeout_minutes : 20 
72+         timeout_minutes : 40 
6673        max_attempts : 3 
6774        command : | 
6875          pip install yq 
6976          xml_content=$(curl -sf https://oss.sonatype.org/service/local/repositories/snapshots/content/org/seleniumhq/selenium/selenium-java/) 
70-           latest_snapshot=$(echo $xml_content | xq '.content.data."content-item"' | jq -r . text) 
71-           echo $latest_snapshot 
77+           latest_snapshot=$(echo " $xml_content"  | xq '.content.data."content-item"' | jq -r 'sort_by(.lastModified) | last | . text' ) 
78+           echo "Latest Selenium Snapshot:  $latest_snapshot"  
7279          cd examples/java 
73-           mvn -B -U test -Dselenium.version="$latest_snapshot " 
80+           mvn -B -U test -D"jdk.internal.httpclient.disableHostnameVerification=true " 
7481
7582name : Run Tests Nightly Windows 
7683      if : matrix.release == 'nightly' && matrix.os == 'windows' 
77-       uses : 
nick-invision/[email protected] .0   84+       uses : 
nick-invision/[email protected] .2   7885      with :
79-         timeout_minutes : 20 
86+         timeout_minutes : 40 
8087        max_attempts : 3 
8188        command : | 
8289          pip install yq           
8390          $xml_content = Invoke-WebRequest -Uri "https://oss.sonatype.org/service/local/repositories/snapshots/content/org/seleniumhq/selenium/selenium-java/" 
84-           $latest_snapshot = $xml_content.Content | xq '.content.data.\"content-item\"' | jq -r . text 
85-           Write-Output $latest_snapshot 
91+           $latest_snapshot = $xml_content.Content | xq '.content.data.\"content-item\"' | jq -r 'sort_by(.lastModified) | last | . text'  
92+           Write-Output "Latest Selenium Snapshot:  $latest_snapshot"  
8693          cd examples/java 
87-           mvn -B -U test "-Dselenium.version=$latest_snapshot " 
94+           mvn -B -U test -D"jdk.internal.httpclient.disableHostnameVerification=true " 
0 commit comments