Skip to content

Instantly share code, notes, and snippets.

@YevgeniyShunevych
Created January 14, 2020 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YevgeniyShunevych/2aeb7726218bc785a7ba99c67425191f to your computer and use it in GitHub Desktop.
Save YevgeniyShunevych/2aeb7726218bc785a7ba99c67425191f to your computer and use it in GitHub Desktop.
SetAndAssert Atata extension method.
namespace Atata
{
public static class EditableFieldExtensions
{
public static TOwner SetAndAssert<T, TOwner>(this EditableField<T, TOwner> editableField, T value)
where TOwner : PageObject<TOwner>
{
editableField.Set(value);
return editableField.Should.Equal(value);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment