Skip to content

Commit

Permalink
added imports of actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasstamann committed Nov 7, 2024
1 parent 5750175 commit 54e8ca6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pogen4selenium-processor/dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>pogen4selenium</artifactId>
<groupId>io.toolisticon.pogen4selenium</groupId>
<version>0.4.2-SNAPSHOT</version>
<version>0.5.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pogen4selenium-processor</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,15 @@ public Set<String> getImports() {
// must also import the impl class for other Page Objects
imports.add(this.executableElementWrapper.getReturnType().getPackage() + "." + this.executableElementWrapper.getReturnType().getSimpleName() + "Impl");

}

}

imports.add(Actions.class.getCanonicalName());
imports.add(Duration.class.getCanonicalName());

// get the imports for all related actions
imports.addAll( getActions().stream().map(e -> e.getImports()).flatMap(Set::stream).collect(Collectors.toSet()) );


return imports;
}

Expand Down

0 comments on commit 54e8ca6

Please sign in to comment.