2019-11-25 03:27:59 +07:00
|
|
|
package suites
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"fmt"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (wds *WebDriverSession) doChangeMethod(ctx context.Context, t *testing.T, method string) {
|
2020-04-22 10:33:14 +07:00
|
|
|
wds.WaitElementLocatedByID(ctx, t, "methods-button").Click() //nolint:errcheck // TODO: Legacy code, consider refactoring time permitting.
|
2019-12-04 14:46:49 +07:00
|
|
|
wds.WaitElementLocatedByID(ctx, t, "methods-dialog")
|
2020-04-22 10:33:14 +07:00
|
|
|
wds.WaitElementLocatedByID(ctx, t, fmt.Sprintf("%s-option", method)).Click() //nolint:errcheck // TODO: Legacy code, consider refactoring time permitting.
|
2019-11-25 03:27:59 +07:00
|
|
|
}
|