Created
July 2, 2019 12:18
-
-
Save YevgeniyShunevych/a1bbfd9cf42b39abb6cae9158b2fdc61 to your computer and use it in GitHub Desktop.
How to get Atata control by attribute using variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Atata; | |
namespace SomeApp.UITests | |
{ | |
using _ = SamplePage; | |
public class SamplePage : Page<_> | |
{ | |
public Control<_> GetSomeControl(string attributeValue) | |
{ | |
return Controls.Create<Control<_>>(attributeValue, new FindByAttributeAttribute("data-value", attributeValue)); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment