2019-11-02 21:32:58 +07:00
|
|
|
package suites
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
|
|
"github.com/tebeka/selenium"
|
|
|
|
)
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// SeleniumSuite is a selenium suite.
|
2019-11-02 21:32:58 +07:00
|
|
|
type SeleniumSuite struct {
|
|
|
|
suite.Suite
|
|
|
|
|
|
|
|
*WebDriverSession
|
|
|
|
}
|
|
|
|
|
2021-01-16 17:25:02 +07:00
|
|
|
// CommandSuite is a command line interface suite.
|
|
|
|
type CommandSuite struct {
|
|
|
|
suite.Suite
|
|
|
|
|
|
|
|
testArg string //nolint:structcheck // TODO: Remove when bug fixed: https://github.com/golangci/golangci-lint/issues/537.
|
|
|
|
coverageArg string //nolint:structcheck // TODO: Remove when bug fixed: https://github.com/golangci/golangci-lint/issues/537.
|
|
|
|
|
|
|
|
*DockerEnvironment
|
|
|
|
}
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// WebDriver return the webdriver of the suite.
|
2019-11-02 21:32:58 +07:00
|
|
|
func (s *SeleniumSuite) WebDriver() selenium.WebDriver {
|
|
|
|
return s.WebDriverSession.WebDriver
|
|
|
|
}
|