diff --git a/jdi-light-vuetify-tests/src/main/java/io/github/com/pages/AutocompletesPage.java b/jdi-light-vuetify-tests/src/main/java/io/github/com/pages/AutocompletesPage.java index bcc670454d..6537e065db 100644 --- a/jdi-light-vuetify-tests/src/main/java/io/github/com/pages/AutocompletesPage.java +++ b/jdi-light-vuetify-tests/src/main/java/io/github/com/pages/AutocompletesPage.java @@ -3,32 +3,30 @@ import com.epam.jdi.light.elements.pageobjects.annotations.locators.UI; import com.epam.jdi.light.ui.html.elements.common.Button; import com.epam.jdi.light.ui.html.elements.common.Text; -import com.epam.jdi.light.vuetify.annotations.JAutocomplete; import com.epam.jdi.light.vuetify.elements.common.Input; import com.epam.jdi.light.vuetify.elements.complex.Autocomplete; public class AutocompletesPage extends VuetifyPage { - // @todo #5298 Fix locators, they are not stable - @UI("//div[@id='style']/div[2]//div[2]/div[contains(@class, 'v-autocomplete')]") + @UI("//h3[text()='Dense']//following::div[1]//div[contains(@class, 'v-autocomplete')][contains(@class, 'v-text-field--shaped')]") public static Autocomplete lightDenseShapedOutlinedAutocomplete; - @UI("//div[@id='style']/div[2]//div[3]/div[contains(@class, 'v-autocomplete')]") + @UI("//h3[text()='Dense']//following::div[1]//div[contains(@class, 'v-autocomplete')][contains(@class, 'v-text-field--rounded')]") public static Autocomplete lightDenseFilledRoundedAutocomplete; - @UI("//div[@id='style']/div[3]//div[4]/div[contains(@class, 'v-autocomplete')]") + @UI("//h3[text()='Dark']//following::div[1]//div[contains(@class, 'v-autocomplete')][contains(@class, 'v-text-field--solo')]") public static Autocomplete darkSoloAutocomplete; - @UI("//div[@id='style']/div[3]//div[5]/div[contains(@class, 'v-autocomplete')]") + @UI("//h3[text()='Dark']//following::div[1]//div[contains(@class, 'v-autocomplete')][contains(@class, 'v-text-field--solo-inverted')]") public static Autocomplete darkSoloInvertedAutocomplete; - @UI("//div[@id='functionality']//div[1]/div[contains(@class, 'v-autocomplete')]") + @UI("//div[@id='functionality']//div[contains(@class, 'v-autocomplete')][contains(@class, 'v-input--is-disabled')]") public static Autocomplete disabledAutocomplete; - @UI("//div[@id='functionality']//div[2]/div[contains(@class, 'v-autocomplete')]") + @UI("(//div[@id='functionality']//div[contains(@class, 'v-autocomplete')])[2]") public static Autocomplete clearableAutocomplete; - @UI("//div[@id='functionality']//div[3]/div[contains(@class, 'v-autocomplete')]") + @UI("(//div[@id='functionality']//div[contains(@class, 'v-autocomplete')])[3]") public static Autocomplete autoselectAutocomplete; @UI("#filter .v-btn--round") @@ -49,7 +47,6 @@ public class AutocompletesPage extends VuetifyPage { @UI("#api .v-autocomplete") public static Autocomplete publicApiAutocomplete; - // @todo #5298 List item should be located @UI("#api .v-list-item__title") public static Text selectedApiName;