Provide `WebDriver` instance from running tests to `WebDriverChecker` using JUnit5
ngoanh2n opened this issue · 0 comments
ngoanh2n commented
Current
If we use webdriverchecker-selenide
, we don't need to pass the WebDriver
instance to the argument of checker methods.
- Module
webdriverchecker
→WebDriverChecker.isXxx(WebDriver)
- Module
webdriverchecker-selenide
→WebDriverChecker.isXxx()
New Feature
Use org.junit.jupiter.api.extension.InvocationInterceptor
to look up the WebDriver
instance from current tests.
After that, use com.github.ngoanh2n.wdc.WebDriverProvider
to provide a WebDriver
instance to WebDriverChecker
Goals
- Before feature:
WebDriverChecker.isXxx(WebDriver)
- After feature:
WebDriverChecker.isXxx()