appium / java-client

Java language binding for writing Appium Tests, conforms to W3C WebDriver Protocol
Apache License 2.0
1.19k stars 752 forks source link

IOSFindBy & AndroidFindBy with parametrs #2168

Closed rutin31 closed 1 month ago

rutin31 commented 1 month ago

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?

eglitise commented 1 month ago

Please use Appium forum to ask questions.