Shared Selector
The Shared Selector is a consolidation between attributes or properties for all the technologies, so you don't need to use different selector for each technology. Here is an common example:
Without shared selector:
[Selector("[AutomationId='My Id']", Technology.Desktop)]
[Selector("[id='My Id']", Technology.Web)]
public IButton MyButton { get; set; }
With shared selector:
[Selector("[Id='My Id']")]
public IButton MyButton { get; set; }
Shared Selector Table
Attribute/Property
Web
Desktop
Shared
The control's id
id
AutomationId
Id
Last updated
Was this helpful?