28
28
29
29
public class CdfControlCenterLocators {
30
30
31
- @ FindBy (how = How .XPATH , using = "//*[@data-cy ='navbar-hamburger-icon']" )
31
+ @ FindBy (how = How .XPATH , using = "//*[@data-testid ='navbar-hamburger-icon']" )
32
32
public static WebElement hamburgerMenu ;
33
33
34
- @ FindBy (how = How .XPATH , using = "//*[@data-cy ='navbar-control-center-link']" )
34
+ @ FindBy (how = How .XPATH , using = "//*[@data-testid ='navbar-control-center-link']" )
35
35
public static WebElement controlCenterMenu ;
36
36
37
37
@ FindBy (how = How .XPATH , using = "//*[@data-cy='feature-heading'][//div[contains(text(),'Control Center')]]" )
@@ -40,40 +40,24 @@ public class CdfControlCenterLocators {
40
40
@ FindBy (how = How .XPATH , using = "//*[@id='create-pipeline-link']" )
41
41
public static WebElement createButtonControlCenter ;
42
42
43
- @ FindBy (how = How .XPATH , using = "//span [@class='entity-type'][//span[contains(text(),'Data Pipeline')] ]" )
43
+ @ FindBy (how = How .XPATH , using = "//div [@class='entity-card-header datapipeline' ]" )
44
44
public static WebElement dataPipelineControlCenter ;
45
45
46
46
@ FindBy (how = How .XPATH , using = "//div[@class='just-added-entities-list']//button[@class='btn btn-link']" +
47
47
"//*[@class='icon-svg icon-trash']" )
48
48
public static WebElement deleteIconControlCenter ;
49
49
50
- public static By clickOnDeleteButton () {
51
- return By .xpath ("//button[@class='btn btn-primary'][//button[@data-cy='Delete']]" );
52
- }
53
-
54
- public static By clickOnTruncateButton () {
55
- return By .xpath ("//div//button[@data-cy='Truncate']" );
56
- }
57
-
58
50
@ FindBy (how = How .XPATH , using = "//div[@class='empty-message-container']" )
59
51
public static WebElement pipelineDeletedMessage ;
60
52
61
- @ FindBy (how = How .XPATH , using = "//input[@class='search-input form-control'][@placeholder='Search'] " )
53
+ @ FindBy (how = How .XPATH , using = "//input[@class='search-input form-control']" )
62
54
public static WebElement searchTabControlCenter ;
63
55
64
56
@ FindBy (how = How .XPATH , using = "//div[@class='just-added-entities-list']//button[@class='btn btn-link']" +
65
57
"//*['icon-svg icon-wrench']" )
66
58
public static WebElement setPreferencesIcon ;
67
59
68
- public static WebElement keyInputField () {
69
- return SeleniumDriver .getDriver ().findElement (By .xpath ("//input[@placeholder='key']" ));
70
- }
71
-
72
- public static WebElement valueInputField () {
73
- return SeleniumDriver .getDriver ().findElement (By .xpath ("//input[@placeholder='value']" ));
74
- }
75
-
76
- @ FindBy (how = How .XPATH , using = "//button[@data-cy='save-prefs-btn']" )
60
+ @ FindBy (how = How .XPATH , using = "//button[@data-testid='save-prefs-btn']" )
77
61
public static WebElement saveAndCloseButton ;
78
62
79
63
@ FindBy (how = How .XPATH , using = "//div[@class='just-added-entities-list']" +
@@ -99,7 +83,7 @@ public static WebElement valueInputField() {
99
83
@ FindBy (how = How .XPATH , using = "//a[@class='link-to-detail']" )
100
84
public static WebElement viewDetailsTabDatasetEntity ;
101
85
102
- @ FindBy (how = How .XPATH , using = "//span[contains(text(),'Dataset') ]" )
86
+ @ FindBy (how = How .XPATH , using = "//*[@class='icon-svg icon-datasets' ]" )
103
87
public static WebElement navigateOnViewDetailsPageDatasetEntity ;
104
88
105
89
@ FindBy (how = How .XPATH , using = "//a[contains(text(),'Back')]" )
@@ -108,13 +92,6 @@ public static WebElement valueInputField() {
108
92
@ FindBy (how = How .XPATH , using = "//*[@class='icon-svg icon-close']" )
109
93
public static WebElement closeTabDatasetEntity ;
110
94
111
- @ FindBy (how = How .XPATH , using = "//span[contains(text(),'Displaying all entities, sorted by Newest')]" )
112
- public static WebElement datasetApplicationsArtifactsMessage ;
113
-
114
- public static By locateDropdownListItem (String option ) {
115
- return By .xpath ("//input[@data-cy='" + option + "']" );
116
- }
117
-
118
95
@ FindBy (how = How .XPATH , using = "//a[contains(text(),'Schema')]" )
119
96
public static WebElement schemaTabDatasetEntity ;
120
97
@@ -127,41 +104,50 @@ public static By locateDropdownListItem(String option) {
127
104
@ FindBy (how = How .XPATH , using = "//div[@class='program-tab clearfix']" )
128
105
public static WebElement programsTabDatasetEntityPage ;
129
106
130
- @ FindBy (how = How .XPATH , using = "//span[contains(text(),'Displaying Applications, Datasets, sorted by Newest')]" )
131
- public static WebElement newestOptionMessage ;
132
-
133
- @ FindBy (how = How .XPATH , using = "//span[contains(text(),'Displaying Applications, Datasets, sorted by Oldest')]" )
134
- public static WebElement oldestOptionMessage ;
135
-
136
- @ FindBy (how = How .XPATH , using = "//span[contains(text(),'Displaying Applications, Datasets, sorted by Z - A')]" )
137
- public static WebElement zToAOptionMessage ;
138
-
139
- @ FindBy (how = How .XPATH , using = "//span[contains(text(),'Displaying Applications, Datasets, sorted by A - Z')]" )
140
- public static WebElement aToZOptionMessage ;
107
+ @ FindBy (how = How .XPATH , using = "//div[@class='list-view-header subtitle']" )
108
+ public static WebElement filterOptionMessage ;
141
109
142
110
@ FindBy (how = How .XPATH , using = "//div[@id='filter-tooltip-target-id']" )
143
111
public static WebElement sortDropdown ;
144
112
145
- public static WebElement selectSortDropdownValue (String option ) {
146
- return SeleniumDriver .getDriver ().findElement (By .xpath ("//*[contains(text(),'" + option + "')]" ));
147
- }
148
-
149
113
@ FindBy (how = How .XPATH , using = "//span[@data-testid='tag-plus-button']" )
150
114
public static WebElement addTagIconDatasetEntity ;
151
115
152
- public static WebElement enterAddTagIconDatasetEntityValue () {
153
- return SeleniumDriver .getDriver ().findElement (By .xpath ("//input[@data-testid='tag-input']" ));
154
- }
155
-
156
116
@ FindBy (how = How .XPATH , using = "//*[contains(text(),'Tags (1)')]" )
157
117
public static WebElement tagCountIconIncreaseDatasetEntity ;
158
118
159
119
@ FindBy (how = How .XPATH , using = "//span[@class='tag-content']//*[@class='icon-svg icon-close']" )
160
120
public static WebElement closeTagIconDatasetEntity ;
161
121
162
- @ FindBy (how = How .XPATH , using = "//i[normalize-space()='No tags found. Click to add a new business tag. ']" )
122
+ @ FindBy (how = How .XPATH , using = "//div[@class=' tags-holder ']" )
163
123
public static WebElement tagCounDecreaseIconDatasetEntityMessage ;
164
124
165
- @ FindBy (how = How .XPATH , using = "//span[contains(text(),'Search results for \" testingtag\" , filtered by Appli')]" )
166
- public static WebElement searchedTagShowsDisplayedMessage ;
125
+ public static By clickOnDeleteButton () {
126
+ return By .xpath ("//button[@class='btn btn-primary'][//button[@data-testid='Delete']]" );
127
+ }
128
+
129
+ public static By clickOnTruncateButton () {
130
+ return By .xpath ("//div//button[@data-testid='Truncate']" );
131
+ }
132
+
133
+ public static WebElement keyInputField () {
134
+ return SeleniumDriver .getDriver ().findElement (By .xpath ("//input[@class='form-control key-input']" ));
135
+ }
136
+
137
+ public static WebElement valueInputField () {
138
+ return SeleniumDriver .getDriver ().findElement (By .xpath ("//input[@class='form-control value-input']" ));
139
+ }
140
+
141
+ public static By locateDropdownListItem (String option ) {
142
+ return By .xpath
143
+ ("//input[@data-testid='" + option + "']" );
144
+ }
145
+
146
+ public static WebElement selectSortDropdownValue (String option ) {
147
+ return SeleniumDriver .getDriver ().findElement (By .xpath ("//*[contains(text(),'" + option + "')]" ));
148
+ }
149
+
150
+ public static WebElement enterAddTagIconDatasetEntityValue () {
151
+ return SeleniumDriver .getDriver ().findElement (By .xpath ("//input[@data-testid='tag-input']" ));
152
+ }
167
153
}
0 commit comments