|
15 | 15 | import org.labkey.test.components.react.ReactDateTimePicker; |
16 | 16 | import org.labkey.test.components.react.ToggleButton; |
17 | 17 | import org.labkey.test.components.ui.files.FileAttachmentContainer; |
| 18 | +import org.labkey.test.components.ui.files.FileUploadField; |
18 | 19 | import org.labkey.test.params.FieldDefinition; |
19 | 20 | import org.labkey.test.params.FieldKey; |
20 | 21 | import org.labkey.test.util.AuditLogHelper; |
@@ -268,6 +269,11 @@ public EntityBulkUpdateDialog removeFile(CharSequence fieldIdentifier) |
268 | 269 | return this; |
269 | 270 | } |
270 | 271 |
|
| 272 | + public FileUploadField getExistingFileField(String fieldKey) |
| 273 | + { |
| 274 | + return elementCache().fileField(fieldKey); |
| 275 | + } |
| 276 | + |
271 | 277 | /** |
272 | 278 | * @param fieldIdentifier Identifier for the field; name ({@link String}) or fieldKey ({@link FieldKey}) |
273 | 279 | * @param checked value to set |
@@ -469,6 +475,11 @@ public FileAttachmentContainer fileUploadField(CharSequence fieldIdentifier) |
469 | 475 | return new FileAttachmentContainer(formRow(fieldIdentifier), getDriver()); |
470 | 476 | } |
471 | 477 |
|
| 478 | + public FileUploadField fileField(String fieldKey) |
| 479 | + { |
| 480 | + return new FileUploadField(Locator.tagWithClass("div", "col-xs-12").findElementOrNull(formRow(fieldKey)), getDriver()); |
| 481 | + } |
| 482 | + |
472 | 483 | final Locator textInputLoc = Locator.tagWithAttribute("input", "type", "text"); |
473 | 484 | final Locator numberInputLoc = Locator.tagWithAttribute("input", "type", "number"); |
474 | 485 | final Locator checkBoxLoc = Locator.tagWithAttribute("input", "type", "checkbox"); |
|
0 commit comments