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