Skip to content

Commit

Permalink
Merge pull request #5429 from jdi-testing/5355
Browse files Browse the repository at this point in the history
#5309 fix locators
  • Loading branch information
pnatashap authored Apr 7, 2024
2 parents 701ec06 + 50d193f commit 1b2c933
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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;

Expand Down

0 comments on commit 1b2c933

Please sign in to comment.