atata icon indicating copy to clipboard operation
atata copied to clipboard

Format control search with Clickable component

Open hamiltonmarques opened this issue 6 years ago • 0 comments

Hello!

Imagine a field with 4 switch buttons. Like this: image

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?

hamiltonmarques avatar Sep 24 '19 21:09 hamiltonmarques