2019-11-24 20:27:59 +00:00
|
|
|
package suites
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"fmt"
|
|
|
|
"testing"
|
2020-12-16 01:47:31 +00:00
|
|
|
|
|
|
|
"github.com/stretchr/testify/require"
|
2019-11-24 20:27:59 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func (wds *WebDriverSession) doChangeMethod(ctx context.Context, t *testing.T, method string) {
|
2020-12-16 01:47:31 +00:00
|
|
|
err := wds.WaitElementLocatedByID(ctx, t, "methods-button").Click()
|
|
|
|
require.NoError(t, err)
|
2019-12-04 07:46:49 +00:00
|
|
|
wds.WaitElementLocatedByID(ctx, t, "methods-dialog")
|
2020-12-16 01:47:31 +00:00
|
|
|
err = wds.WaitElementLocatedByID(ctx, t, fmt.Sprintf("%s-option", method)).Click()
|
|
|
|
require.NoError(t, err)
|
2019-11-24 20:27:59 +00:00
|
|
|
}
|