Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public String downloadToUsersFolder(final String url) {
*/
public String readContent(final String filePath) {
try {
return Files.readString(loadThreadResource(filePath).toPath());
return new String(loadResourceFromJar(filePath).readAllBytes(), StandardCharsets.UTF_8);
} catch (Exception e) {
throw new SelcukesException(String.format("Cannot load [%s] from classpath", filePath));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ public void beforeTest(TestResult result) {
logger.debug(() -> "Before invocation of " + result.getName());
}

@Override
public void beforeAfterTest(TestResult result) {
Validation.failAll();
}

@Override
public void afterTest(TestResult result) {
logger.debug(() -> "Cleanup Test Resource...");
Validation.failAll();
DriverFixture.removeDriverFixture();
DriverManager.removeDriver();
ConfigFactory.cleanupConfig();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ public void setup() {
@Test
public void testPrint() {
page.open("https://techyworks.blogspot.com/2022/03/get-browser-session-storage-data-using-selenium.html");
page.printPage("target/print.pdf");
// page.printPage("target/print.pdf");
}
}