Constructor. Pass an instance of WebDriver's WebElement that represents the DOM node on which we"ll perform operations.
The basic WebElement with which this WebElement will work.
Takes an Array of objects containing file paths + types. These files will be read from the local filesystem and then sent to the oj-file-picker to simulate user file selection. Only the basename of the file will be sent, not the entire path to make it consistent with how the browser sets the value.
An array of objects containing the path and type of selected files
Get a named property value from this component. This function will wait for the application's busy context to complete before attempting to get the property value.
The name of the property
A Promise that yields a value for the named property.
Gets the value of selectOn property.
The type of event to select the files.
The value of selectOn property.
Since 13.1.0. Main use case was to turn off drag and drop for button filepicker. The current recommendation for that use case is to use ojfilepickerutils with an oj-button.
Protected hasCreate a wait condition that is satisfied when the element's DOM has a non-zero size.
The Condition to be used with driver.wait() that's satisfied when the element's DOM has a non-zero size.
Since 11.0.0. Call the appropriate WebElement method to test the size of the element.
Protected hasCreate a wait condition that is satisfid when the element is visible. The condition is satisfied when the element is displayed, as reported by #isDisplayed, and is scrolled into view. This is method is deprecated. Use WebElement.isDisplayed instead to test the display of the element, and scroll it into view if necessary.
Protected setSet a property value on the remote element. This function first waits for the BusyContext to clear before setting the property, then after setting, waits again to ensure that no additional busy states were created due to the property setting.
The property name to set
The value to set for the property
A Promise which resolves when the remote property has been set to the value. Any value returned from the call to set the remote property is returned in the Promise.
Returns a Promise that is resolved when the application's busy state reports ready. This method checks only that the application's busy context is ready, and not that the DOM element is actually displayed or has a physical size, such as is the case with #whenReady. Operations which are read-only in nature should call this method prior to execution.
A Promise which is resolved when the page's busy state is ready.
Returns a Promise that is resolved when the element is ready for interaction--it is visible, has a size, and the app's busy context is ready. Operations on the DOM which rely on its physical location and size to be in a "ready" state should use this command, such as clicking, sending keys, locating child elements, and so on.
A Promise that's resolved when all conditions are met.
Static buildStatic equalsStatic extractStatic isStatic setupThis method should be called right before ojfilepickerutils.pickFiles Takes the webdriver and an Array of objects containing file paths + types. These files will be read from the local filesystem and then sent to the pickFiles method to simulate user file selection. Only the basename of the file will be sent, not the entire path to make it consistent with how the browser sets the value.
the Webdriver of the test
An array of objects containing the path and type of selected files
Generated using TypeDoc
The component WebElement for oj-file-picker. Do not instantiate this class directly, instead, use ojFilePicker.
Migration
When you migrate a page from using oj-file-picker to oj-c-file-picker you will also need to migrate your WebDriver tests from OjFilePicker to FilePickerWebElement. To do that you will need to revise type and locator instances as follows Type: from OjFilePicker to FilePickerWebElement Locator: from ojFilePicker to findFilePicker For more details on migrating from legacy to core pack please see component's migration section