atata
atata copied to clipboard
Format control search with Clickable component
Hello!
Imagine a field with 4 switch buttons. Like this:

I would like to declare the component just once.
My idea with Atata inside BasePage:
[FindByXPath]
[Format("//h6[text()='{0}']//following-sibling::div")]
public Clickable<string, TOwner> ChooseOption { get; private set; }
My idea inside test:
ChooseOption.Click("Option A");
It's only the concept, they don't work. I took the ideas above from Select component. There is a way to customize that with Clickable component?