File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed
page-object/test-automation
src/main/java/com/iluwatar/pageobject Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 4646 <groupId >org.hibernate</groupId >
4747 <artifactId >hibernate-core</artifactId >
4848 </dependency >
49- <dependency >
50- <groupId >com.h2database</groupId >
51- <artifactId >h2</artifactId >
52- </dependency >
5349 <dependency >
5450 <groupId >javax.xml.bind</groupId >
5551 <artifactId >jaxb-api</artifactId >
Original file line number Diff line number Diff line change 3636 <dependencies >
3737 <dependency >
3838 <groupId >org.junit.jupiter</groupId >
39- <artifactId >junit-jupiter-engine </artifactId >
39+ <artifactId >junit-jupiter-api </artifactId >
4040 <scope >test</scope >
4141 </dependency >
4242 <dependency >
Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ public boolean isAt() {
8080 */
8181 public AlbumPage selectAlbum (String albumTitle ) {
8282 // uses XPath to find list of html anchor tags with the class album in it
83- var albumLinks = (List <HtmlAnchor >) page .getByXPath ("//tr[@class='album']//a" );
83+ var albumLinks = (List <Object >) page .getByXPath ("//tr[@class='album']//a" );
8484 for (var anchor : albumLinks ) {
85- if (anchor .getTextContent ().equals (albumTitle )) {
85+ if ((( HtmlAnchor ) anchor ) .getTextContent ().equals (albumTitle )) {
8686 try {
87- anchor .click ();
87+ (( HtmlAnchor ) anchor ) .click ();
8888 return new AlbumPage (webClient );
8989 } catch (IOException e ) {
9090 LOGGER .error ("An error occured on selectAlbum" , e );
Original file line number Diff line number Diff line change 4343 <camel .version>2.25.1</camel .version>
4444 <guava .version>19.0</guava .version>
4545 <mockito .version>3.5.6</mockito .version>
46- <htmlunit .version>2.22 </htmlunit .version>
46+ <htmlunit .version>2.66.0 </htmlunit .version>
4747 <guice .version>4.0</guice .version>
4848 <mongo-java-driver .version>3.12.8</mongo-java-driver .version>
4949 <aws-lambda-core .version>1.1.0</aws-lambda-core .version>
You can’t perform that action at this time.
0 commit comments