-
Notifications
You must be signed in to change notification settings - Fork 12
Automatic Browser Shutdown Update #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Its purpose is to register Runnable script to be performed after shutdown is initiated. Notable uses would be to register for closure resources that should be closed.
They are no longer static and register themselves for automatic closure after shutdown.
This reverts commit 21006b2.
Made one of the threadlocal variables with initial instead of initializing them in the constructor of BaseTest, as problems occur during parallel execution otherwise
| "webSettings": { | ||
| "baseUrl": "http://demos.bellatrix.solutions/", | ||
| "executionType":"regular", | ||
| "executionType":"regular", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
| "webSettings": { | ||
| "baseUrl": "http://demos.bellatrix.solutions/", | ||
| "executionType":"regular", | ||
| "executionType":"regular", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not an intended change, but a result of this commit: 7c02244
Since then, the added option in that commit was removed and this is what remained.
Reverted.
bellatrix.core/src/main/java/solutions/bellatrix/core/utilities/SingletonFactory.java
Show resolved
Hide resolved
|
Please add description with the problems you are trying to solve with the PR and which projects does it affect e.g. Playwright/Selenium? |
| // launchOptions.setArgs(List.of("--log-level=3")); | ||
| // System.setProperty("webdriver.chrome.silentOutput", "true"); ? | ||
|
|
||
| return browser(browserType.launch(launchOptions)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The formatting is a bit messed up
Drivers and browsers are now correctly disposed of when test execution is abruptly interrupted, such as during debugging, manual termination, or browser closure failure.
Changes affect Selenium and Playwright modules.