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