-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add WebDriverListener example with logging #2384
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
base: trunk
Are you sure you want to change the base?
Conversation
… config for Windows - Added example of `WebDriverListener` with logging before `findElement` and `click`. - Included logic to capture screenshots on error for better debugging. - Updated `junit-platform.properties` for Windows compatibility: - forkCount = 0 - junit.jupiter.execution.parallel.config.fixed.parallelism = 1 - junit.jupiter.execution.parallel.config.fixed.max-pool-size = 1 -Run test : mvn clean test -Dtest=WebDriverListenerTest
👷 Deploy request for selenium-dev pending review.Visit the deploys page to approve it
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
Add WebDriverListener example with logging
WebDriverListener
with logging beforefindElement
andclick
.junit-platform.properties
for Windows compatibility:PR Type
Tests, Enhancement
Description
Add WebDriverListener example with comprehensive logging functionality
Fix Maven Surefire configuration for Windows compatibility
Include screenshot capture on error for debugging
Update documentation with working code example
Diagram Walkthrough
File Walkthrough
pom.xml
Fix Maven Surefire Windows compatibility configuration
examples/java/pom.xml
forkCount
to 0 to resolve fork startup errorsCustomWebDriverListener.java
Add comprehensive WebDriverListener with logging and screenshots
examples/java/src/test/java/dev/selenium/listeners/CustomWebDriverListener.java
WebDriverListenerTest.java
Add WebDriverListener test examples
examples/java/src/test/java/dev/selenium/listeners/WebDriverListenerTest.java
listeners.en.md
Update listeners documentation with code example
website_and_docs/content/documentation/webdriver/support_features/listeners.en.md