From b30cecae838336a3cbaf561dc96b51dc450aa072 Mon Sep 17 00:00:00 2001 From: Natalia Pozhidaeva Date: Wed, 17 Apr 2024 10:15:03 -0500 Subject: [PATCH] #5365 fix locators --- .../src/main/java/io/github/com/pages/InputsPage.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jdi-light-vuetify-tests/src/main/java/io/github/com/pages/InputsPage.java b/jdi-light-vuetify-tests/src/main/java/io/github/com/pages/InputsPage.java index 6a5761959e..8cc87d71e0 100644 --- a/jdi-light-vuetify-tests/src/main/java/io/github/com/pages/InputsPage.java +++ b/jdi-light-vuetify-tests/src/main/java/io/github/com/pages/InputsPage.java @@ -11,17 +11,16 @@ public class InputsPage extends VuetifyPage { @UI("#ErrorCountInput2") public static Input fewErrorsCountInput; - // @todo #5298 Locators shoud use classes to search elements - @UI("//form[@id='HideDetailsInput']/div[1]") + @UI("#HideDetailsInput .v-input--hide-details") public static Input hideDetailsMainInput; - @UI("//form[@id='HideDetailsInput']/div[2]") + @UI("#HideDetailsInput .v-input:nth-child(2)") public static Input hideDetailsAnotherInput; @UI(".v-input--switch") public static Input showMessagesInput; - @UI("//div[@id='HintInput']/div[contains(@class, 'v-input')][2]") + @UI("#HintInput .v-input:nth-child(2)") public static Input hintInput; @UI("//span[text()[contains(., 'Toggle loading')]]")