2019-11-02 14:32:58 +00:00
|
|
|
package suites
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
|
|
"github.com/tebeka/selenium"
|
|
|
|
)
|
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// SeleniumSuite is a selenium suite.
|
2019-11-02 14:32:58 +00:00
|
|
|
type SeleniumSuite struct {
|
|
|
|
suite.Suite
|
|
|
|
|
|
|
|
*WebDriverSession
|
|
|
|
}
|
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// WebDriver return the webdriver of the suite.
|
2019-11-02 14:32:58 +00:00
|
|
|
func (s *SeleniumSuite) WebDriver() selenium.WebDriver {
|
|
|
|
return s.WebDriverSession.WebDriver
|
|
|
|
}
|