Add appium collection condition and appium condition classes #135
Add appium collection condition and appium condition classes #135
Conversation
@asolntsev @BorisOsipov - Please review |
src/main/java/com/codeborne/selenide/appium/conditions/AppiumAttributeValues.java
Outdated
Show resolved
Hide resolved
src/test/java/integration/android/AndroidAppiumConditionsTest.java
Outdated
Show resolved
Hide resolved
@amuthansakthivel Thank you for your contribution. Let's discuss it a bit. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
yes @asolntsev - Text is an attribute in appium and yes if we can fetch attributes dynamically that's what we need |
@amuthansakthivel But do I correctly understand that we still need to get different Text attributes in iOS and Android? |
yes @asolntsev |
@amuthansakthivel Same question as in #151 (comment) : Can't we make this api more generic? I mean, this line is hard to read: $(mobileElement)
.shouldHave(AppiumCondition.attributeWithValue("content-desc", "name", "expected-value"));
Maybe some builder for attributes like this? $(mobileElement)
.shouldHave(AppiumCondition.attributeWithValue(MobileAttributes.android("content-desc").ios("name"), "expected-value")); |
This looks good to me. But I need sometime to work on this @asolntsev - Little busy with personal side of things |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Proposed changes
Fix for selenide/selenide#2300
Checklist
gradlew check
command