IOSFindBy & AndroidFindBy with parametrs

How to set selector with parameters
on appium C# client

for example:

[AndroidFindBy(XPath=“android.widget.Text[contains(@text(“user Name+xxx”))]”)
[IOSFindBy(AccessibilityId=“userName+xxx”)]
private MobileElement userNameSelector;

where xxx - parameter that can change
how to call to this selector from test?

Consider using ios predicate locator for such cases. For the above example the locator would look like name BEGINSWITH 'userName+'

Read appium-xcuitest-driver/docs/reference/locator-strategies.md at master · appium/appium-xcuitest-driver · GitHub for more details