ngoanh2n/webdriverchecker

Provide `WebDriver` instance from running tests to `WebDriverChecker` using JUnit5

Closed this issue · 0 comments

Current

If we use webdriverchecker-selenide, we don't need to pass the WebDriver instance to the argument of checker methods.

  • Module webdrivercheckerWebDriverChecker.isXxx(WebDriver)
  • Module webdriverchecker-selenideWebDriverChecker.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()