@oracle/oraclejet-core-pack 15.0.2 → 15.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/oj-c/Avatar.json +10 -10
- package/oj-c/Button.json +19 -19
- package/oj-c/Collapsible.json +14 -14
- package/oj-c/FilePicker.json +19 -19
- package/oj-c/HighlightText.json +6 -6
- package/oj-c/InputDateText.json +43 -43
- package/oj-c/InputNumber.json +49 -49
- package/oj-c/InputPassword.json +40 -40
- package/oj-c/InputText.json +47 -47
- package/oj-c/Legend.json +34 -34
- package/oj-c/LegendItem.json +15 -15
- package/oj-c/LegendSection.json +5 -5
- package/oj-c/ListItemLayout.json +16 -16
- package/oj-c/ListView.json +18 -18
- package/oj-c/MessageToast.json +11 -11
- package/oj-c/MeterBar.json +26 -26
- package/oj-c/MeterCircle.json +30 -30
- package/oj-c/ProgressBar.json +7 -7
- package/oj-c/ProgressCircle.json +7 -7
- package/oj-c/RatingGauge.json +21 -21
- package/oj-c/SelectMultiple.json +39 -39
- package/oj-c/SelectSingle.json +39 -39
- package/oj-c/Selector.json +8 -8
- package/oj-c/SelectorAll.json +5 -5
- package/oj-c/SplitMenuButton.json +17 -17
- package/oj-c/TagCloud.json +18 -18
- package/oj-c/TagCloudItem.json +10 -10
- package/oj-c/TextArea.json +44 -44
- package/oj-c/avatar/__webdriver__/AvatarWebElement.d.ts +8 -0
- package/oj-c/avatar/__webdriver__/AvatarWebElement.js +3 -22
- package/oj-c/avatar/__webdriver__/AvatarWebElement.js.map +1 -0
- package/oj-c/avatar/__webdriver__/AvatarWebElementBase.d.ts +51 -0
- package/oj-c/avatar/__webdriver__/AvatarWebElementBase.js +15 -34
- package/oj-c/avatar/__webdriver__/AvatarWebElementBase.js.map +1 -0
- package/oj-c/avatar/__webdriver__/index.d.ts +17 -0
- package/oj-c/avatar/__webdriver__/index.js +9 -53
- package/oj-c/avatar/__webdriver__/index.js.map +1 -0
- package/oj-c/avatar/component.json +2 -2
- package/oj-c/button/__webdriver__/ButtonWebElement.d.ts +65 -0
- package/oj-c/button/__webdriver__/ButtonWebElement.js +32 -36
- package/oj-c/button/__webdriver__/ButtonWebElement.js.map +1 -0
- package/oj-c/button/__webdriver__/ButtonWebElementBase.d.ts +65 -0
- package/oj-c/button/__webdriver__/ButtonWebElementBase.js +19 -38
- package/oj-c/button/__webdriver__/ButtonWebElementBase.js.map +1 -0
- package/oj-c/button/__webdriver__/index.d.ts +17 -0
- package/oj-c/button/__webdriver__/index.js +9 -53
- package/oj-c/button/__webdriver__/index.js.map +1 -0
- package/oj-c/button/component.json +2 -2
- package/oj-c/collapsible/__webdriver__/CollapsibleWebElement.d.ts +21 -0
- package/oj-c/collapsible/__webdriver__/CollapsibleWebElement.js +17 -90
- package/oj-c/collapsible/__webdriver__/CollapsibleWebElement.js.map +1 -0
- package/oj-c/collapsible/__webdriver__/CollapsibleWebElementBase.d.ts +30 -0
- package/oj-c/collapsible/__webdriver__/CollapsibleWebElementBase.js +9 -28
- package/oj-c/collapsible/__webdriver__/CollapsibleWebElementBase.js.map +1 -0
- package/oj-c/collapsible/__webdriver__/index.d.ts +17 -0
- package/oj-c/collapsible/__webdriver__/index.js +9 -53
- package/oj-c/collapsible/__webdriver__/index.js.map +1 -0
- package/oj-c/collapsible/component.json +2 -2
- package/oj-c/component.json +3 -3
- package/oj-c/docs/avatar.html +3 -3
- package/oj-c/docs/button.html +3 -3
- package/oj-c/docs/collapsible.html +3 -3
- package/oj-c/docs/file-picker.html +3 -3
- package/oj-c/docs/highlight-text.html +3 -3
- package/oj-c/docs/index.html +3 -3
- package/oj-c/docs/input-date-text.html +3 -3
- package/oj-c/docs/input-number.html +3 -3
- package/oj-c/docs/input-password.html +3 -3
- package/oj-c/docs/input-text.html +3 -3
- package/oj-c/docs/legend-item.html +3 -3
- package/oj-c/docs/legend-section.html +3 -3
- package/oj-c/docs/legend.html +3 -3
- package/oj-c/docs/list-item-layout.html +3 -3
- package/oj-c/docs/list-view.html +3 -3
- package/oj-c/docs/message-toast.html +3 -3
- package/oj-c/docs/meter-bar.html +3 -3
- package/oj-c/docs/meter-circle.html +3 -3
- package/oj-c/docs/oj-c.Avatar.html +3 -3
- package/oj-c/docs/oj-c.Button.html +3 -3
- package/oj-c/docs/oj-c.Collapsible.html +3 -3
- package/oj-c/docs/oj-c.FilePicker.html +3 -3
- package/oj-c/docs/oj-c.HighlightText.html +3 -3
- package/oj-c/docs/oj-c.InputDateText.html +3 -3
- package/oj-c/docs/oj-c.InputNumber.html +3 -3
- package/oj-c/docs/oj-c.InputPassword.html +3 -3
- package/oj-c/docs/oj-c.InputText.html +3 -3
- package/oj-c/docs/oj-c.Legend.html +3 -3
- package/oj-c/docs/oj-c.LegendItem.html +3 -3
- package/oj-c/docs/oj-c.LegendSection.html +3 -3
- package/oj-c/docs/oj-c.ListItemLayout.html +3 -3
- package/oj-c/docs/oj-c.ListView.html +3 -3
- package/oj-c/docs/oj-c.MessageToast.html +3 -3
- package/oj-c/docs/oj-c.MeterBar.html +3 -3
- package/oj-c/docs/oj-c.MeterCircle.html +3 -3
- package/oj-c/docs/oj-c.ProgressBar.html +3 -3
- package/oj-c/docs/oj-c.ProgressCircle.html +3 -3
- package/oj-c/docs/oj-c.RatingGauge.html +3 -3
- package/oj-c/docs/oj-c.SelectMultiple.html +3 -3
- package/oj-c/docs/oj-c.SelectSingle.html +3 -3
- package/oj-c/docs/oj-c.Selector.html +3 -3
- package/oj-c/docs/oj-c.SelectorAll.html +3 -3
- package/oj-c/docs/oj-c.SplitMenuButton.html +3 -3
- package/oj-c/docs/oj-c.TagCloud.html +3 -3
- package/oj-c/docs/oj-c.TagCloudItem.html +3 -3
- package/oj-c/docs/oj-c.TextArea.html +3 -3
- package/oj-c/docs/progress-bar.html +3 -3
- package/oj-c/docs/progress-circle.html +3 -3
- package/oj-c/docs/rating-gauge.html +3 -3
- package/oj-c/docs/select-multiple.html +3 -3
- package/oj-c/docs/select-single.html +3 -3
- package/oj-c/docs/selector-all.html +3 -3
- package/oj-c/docs/selector.html +3 -3
- package/oj-c/docs/split-menu-button.html +3 -3
- package/oj-c/docs/tag-cloud-item.html +3 -3
- package/oj-c/docs/tag-cloud.html +3 -3
- package/oj-c/docs/text-area.html +3 -3
- package/oj-c/file-picker/__webdriver__/FilePickerWebElement.d.ts +8 -0
- package/oj-c/file-picker/__webdriver__/FilePickerWebElement.js +3 -22
- package/oj-c/file-picker/__webdriver__/FilePickerWebElement.js.map +1 -0
- package/oj-c/file-picker/__webdriver__/FilePickerWebElementBase.d.ts +51 -0
- package/oj-c/file-picker/__webdriver__/FilePickerWebElementBase.js +15 -34
- package/oj-c/file-picker/__webdriver__/FilePickerWebElementBase.js.map +1 -0
- package/oj-c/file-picker/__webdriver__/index.d.ts +17 -0
- package/oj-c/file-picker/__webdriver__/index.js +9 -53
- package/oj-c/file-picker/__webdriver__/index.js.map +1 -0
- package/oj-c/file-picker/component.json +2 -2
- package/oj-c/highlight-text/__webdriver__/HighlightTextWebElement.d.ts +8 -0
- package/oj-c/highlight-text/__webdriver__/HighlightTextWebElement.js +3 -22
- package/oj-c/highlight-text/__webdriver__/HighlightTextWebElement.js.map +1 -0
- package/oj-c/highlight-text/__webdriver__/HighlightTextWebElementBase.d.ts +23 -0
- package/oj-c/highlight-text/__webdriver__/HighlightTextWebElementBase.js +7 -26
- package/oj-c/highlight-text/__webdriver__/HighlightTextWebElementBase.js.map +1 -0
- package/oj-c/highlight-text/__webdriver__/index.d.ts +17 -0
- package/oj-c/highlight-text/__webdriver__/index.js +9 -53
- package/oj-c/highlight-text/__webdriver__/index.js.map +1 -0
- package/oj-c/highlight-text/component.json +2 -2
- package/oj-c/input-date-text/__webdriver__/InputDateTextWebElement.d.ts +8 -0
- package/oj-c/input-date-text/__webdriver__/InputDateTextWebElement.js +3 -22
- package/oj-c/input-date-text/__webdriver__/InputDateTextWebElement.js.map +1 -0
- package/oj-c/input-date-text/__webdriver__/InputDateTextWebElementBase.d.ts +246 -0
- package/oj-c/input-date-text/__webdriver__/InputDateTextWebElementBase.js +57 -76
- package/oj-c/input-date-text/__webdriver__/InputDateTextWebElementBase.js.map +1 -0
- package/oj-c/input-date-text/__webdriver__/index.d.ts +17 -0
- package/oj-c/input-date-text/__webdriver__/index.js +9 -53
- package/oj-c/input-date-text/__webdriver__/index.js.map +1 -0
- package/oj-c/input-date-text/component.json +2 -2
- package/oj-c/input-number/__webdriver__/InputNumberWebElement.d.ts +8 -0
- package/oj-c/input-number/__webdriver__/InputNumberWebElement.js +3 -22
- package/oj-c/input-number/__webdriver__/InputNumberWebElement.js.map +1 -0
- package/oj-c/input-number/__webdriver__/InputNumberWebElementBase.d.ts +302 -0
- package/oj-c/input-number/__webdriver__/InputNumberWebElementBase.js +73 -92
- package/oj-c/input-number/__webdriver__/InputNumberWebElementBase.js.map +1 -0
- package/oj-c/input-number/__webdriver__/index.d.ts +17 -0
- package/oj-c/input-number/__webdriver__/index.js +9 -53
- package/oj-c/input-number/__webdriver__/index.js.map +1 -0
- package/oj-c/input-number/component.json +2 -2
- package/oj-c/input-password/__webdriver__/InputPasswordWebElement.d.ts +8 -0
- package/oj-c/input-password/__webdriver__/InputPasswordWebElement.js +3 -22
- package/oj-c/input-password/__webdriver__/InputPasswordWebElement.js.map +1 -0
- package/oj-c/input-password/__webdriver__/InputPasswordWebElementBase.d.ts +239 -0
- package/oj-c/input-password/__webdriver__/InputPasswordWebElementBase.js +55 -74
- package/oj-c/input-password/__webdriver__/InputPasswordWebElementBase.js.map +1 -0
- package/oj-c/input-password/__webdriver__/index.d.ts +17 -0
- package/oj-c/input-password/__webdriver__/index.js +9 -53
- package/oj-c/input-password/__webdriver__/index.js.map +1 -0
- package/oj-c/input-password/component.json +2 -2
- package/oj-c/input-text/__webdriver__/InputTextWebElement.d.ts +8 -0
- package/oj-c/input-text/__webdriver__/InputTextWebElement.js +3 -22
- package/oj-c/input-text/__webdriver__/InputTextWebElement.js.map +1 -0
- package/oj-c/input-text/__webdriver__/InputTextWebElementBase.d.ts +277 -0
- package/oj-c/input-text/__webdriver__/InputTextWebElementBase.js +63 -82
- package/oj-c/input-text/__webdriver__/InputTextWebElementBase.js.map +1 -0
- package/oj-c/input-text/__webdriver__/index.d.ts +17 -0
- package/oj-c/input-text/__webdriver__/index.js +9 -53
- package/oj-c/input-text/__webdriver__/index.js.map +1 -0
- package/oj-c/input-text/component.json +2 -2
- package/oj-c/legend/__webdriver__/LegendWebElement.d.ts +8 -0
- package/oj-c/legend/__webdriver__/LegendWebElement.js +3 -22
- package/oj-c/legend/__webdriver__/LegendWebElement.js.map +1 -0
- package/oj-c/legend/__webdriver__/LegendWebElementBase.d.ts +173 -0
- package/oj-c/legend/__webdriver__/LegendWebElementBase.js +35 -54
- package/oj-c/legend/__webdriver__/LegendWebElementBase.js.map +1 -0
- package/oj-c/legend/__webdriver__/index.d.ts +17 -0
- package/oj-c/legend/__webdriver__/index.js +9 -53
- package/oj-c/legend/__webdriver__/index.js.map +1 -0
- package/oj-c/legend/component.json +2 -2
- package/oj-c/legend-item/component.json +2 -2
- package/oj-c/legend-section/component.json +2 -2
- package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElement.d.ts +8 -0
- package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElement.js +3 -22
- package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElement.js.map +1 -0
- package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElementBase.d.ts +16 -0
- package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElementBase.js +5 -24
- package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElementBase.js.map +1 -0
- package/oj-c/list-item-layout/__webdriver__/index.d.ts +17 -0
- package/oj-c/list-item-layout/__webdriver__/index.js +9 -53
- package/oj-c/list-item-layout/__webdriver__/index.js.map +1 -0
- package/oj-c/list-item-layout/component.json +2 -2
- package/oj-c/list-view/__webdriver__/ListViewWebElement.d.ts +8 -0
- package/oj-c/list-view/__webdriver__/ListViewWebElement.js +3 -22
- package/oj-c/list-view/__webdriver__/ListViewWebElement.js.map +1 -0
- package/oj-c/list-view/__webdriver__/ListViewWebElementBase.d.ts +75 -0
- package/oj-c/list-view/__webdriver__/ListViewWebElementBase.js +15 -34
- package/oj-c/list-view/__webdriver__/ListViewWebElementBase.js.map +1 -0
- package/oj-c/list-view/__webdriver__/index.d.ts +17 -0
- package/oj-c/list-view/__webdriver__/index.js +9 -53
- package/oj-c/list-view/__webdriver__/index.js.map +1 -0
- package/oj-c/list-view/component.json +2 -2
- package/oj-c/message-toast/__webdriver__/MessageToastWebElement.d.ts +8 -0
- package/oj-c/message-toast/__webdriver__/MessageToastWebElement.js +3 -22
- package/oj-c/message-toast/__webdriver__/MessageToastWebElement.js.map +1 -0
- package/oj-c/message-toast/__webdriver__/MessageToastWebElementBase.d.ts +44 -0
- package/oj-c/message-toast/__webdriver__/MessageToastWebElementBase.js +13 -32
- package/oj-c/message-toast/__webdriver__/MessageToastWebElementBase.js.map +1 -0
- package/oj-c/message-toast/__webdriver__/index.d.ts +17 -0
- package/oj-c/message-toast/__webdriver__/index.js +9 -53
- package/oj-c/message-toast/__webdriver__/index.js.map +1 -0
- package/oj-c/message-toast/component.json +2 -2
- package/oj-c/metadata/allComponents.json +57 -57
- package/oj-c/meter-bar/__webdriver__/MeterBarWebElement.d.ts +8 -0
- package/oj-c/meter-bar/__webdriver__/MeterBarWebElement.js +3 -22
- package/oj-c/meter-bar/__webdriver__/MeterBarWebElement.js.map +1 -0
- package/oj-c/meter-bar/__webdriver__/MeterBarWebElementBase.d.ts +173 -0
- package/oj-c/meter-bar/__webdriver__/MeterBarWebElementBase.js +39 -58
- package/oj-c/meter-bar/__webdriver__/MeterBarWebElementBase.js.map +1 -0
- package/oj-c/meter-bar/__webdriver__/index.d.ts +17 -0
- package/oj-c/meter-bar/__webdriver__/index.js +9 -53
- package/oj-c/meter-bar/__webdriver__/index.js.map +1 -0
- package/oj-c/meter-bar/component.json +2 -2
- package/oj-c/meter-circle/__webdriver__/MeterCircleWebElement.d.ts +8 -0
- package/oj-c/meter-circle/__webdriver__/MeterCircleWebElement.js +3 -22
- package/oj-c/meter-circle/__webdriver__/MeterCircleWebElement.js.map +1 -0
- package/oj-c/meter-circle/__webdriver__/MeterCircleWebElementBase.d.ts +183 -0
- package/oj-c/meter-circle/__webdriver__/MeterCircleWebElementBase.js +43 -62
- package/oj-c/meter-circle/__webdriver__/MeterCircleWebElementBase.js.map +1 -0
- package/oj-c/meter-circle/__webdriver__/index.d.ts +17 -0
- package/oj-c/meter-circle/__webdriver__/index.js +9 -53
- package/oj-c/meter-circle/__webdriver__/index.js.map +1 -0
- package/oj-c/meter-circle/component.json +2 -2
- package/oj-c/progress-bar/__webdriver__/ProgressBarWebElement.d.ts +8 -0
- package/oj-c/progress-bar/__webdriver__/ProgressBarWebElement.js +3 -22
- package/oj-c/progress-bar/__webdriver__/ProgressBarWebElement.js.map +1 -0
- package/oj-c/progress-bar/__webdriver__/ProgressBarWebElementBase.d.ts +30 -0
- package/oj-c/progress-bar/__webdriver__/ProgressBarWebElementBase.js +9 -28
- package/oj-c/progress-bar/__webdriver__/ProgressBarWebElementBase.js.map +1 -0
- package/oj-c/progress-bar/__webdriver__/index.d.ts +17 -0
- package/oj-c/progress-bar/__webdriver__/index.js +9 -53
- package/oj-c/progress-bar/__webdriver__/index.js.map +1 -0
- package/oj-c/progress-bar/component.json +2 -2
- package/oj-c/progress-circle/__webdriver__/ProgressCircleWebElement.d.ts +8 -0
- package/oj-c/progress-circle/__webdriver__/ProgressCircleWebElement.js +3 -22
- package/oj-c/progress-circle/__webdriver__/ProgressCircleWebElement.js.map +1 -0
- package/oj-c/progress-circle/__webdriver__/ProgressCircleWebElementBase.d.ts +30 -0
- package/oj-c/progress-circle/__webdriver__/ProgressCircleWebElementBase.js +9 -28
- package/oj-c/progress-circle/__webdriver__/ProgressCircleWebElementBase.js.map +1 -0
- package/oj-c/progress-circle/__webdriver__/index.d.ts +17 -0
- package/oj-c/progress-circle/__webdriver__/index.js +9 -53
- package/oj-c/progress-circle/__webdriver__/index.js.map +1 -0
- package/oj-c/progress-circle/component.json +2 -2
- package/oj-c/rating-gauge/__webdriver__/RatingGaugeWebElement.d.ts +8 -0
- package/oj-c/rating-gauge/__webdriver__/RatingGaugeWebElement.js +3 -22
- package/oj-c/rating-gauge/__webdriver__/RatingGaugeWebElement.js.map +1 -0
- package/oj-c/rating-gauge/__webdriver__/RatingGaugeWebElementBase.d.ts +135 -0
- package/oj-c/rating-gauge/__webdriver__/RatingGaugeWebElementBase.js +35 -54
- package/oj-c/rating-gauge/__webdriver__/RatingGaugeWebElementBase.js.map +1 -0
- package/oj-c/rating-gauge/__webdriver__/index.d.ts +17 -0
- package/oj-c/rating-gauge/__webdriver__/index.js +9 -53
- package/oj-c/rating-gauge/__webdriver__/index.js.map +1 -0
- package/oj-c/rating-gauge/component.json +2 -2
- package/oj-c/select-multiple/__webdriver__/SelectMultipleWebElement.d.ts +8 -0
- package/oj-c/select-multiple/__webdriver__/SelectMultipleWebElement.js +3 -22
- package/oj-c/select-multiple/__webdriver__/SelectMultipleWebElement.js.map +1 -0
- package/oj-c/select-multiple/__webdriver__/SelectMultipleWebElementBase.d.ts +231 -0
- package/oj-c/select-multiple/__webdriver__/SelectMultipleWebElementBase.js +55 -74
- package/oj-c/select-multiple/__webdriver__/SelectMultipleWebElementBase.js.map +1 -0
- package/oj-c/select-multiple/__webdriver__/index.d.ts +17 -0
- package/oj-c/select-multiple/__webdriver__/index.js +9 -53
- package/oj-c/select-multiple/__webdriver__/index.js.map +1 -0
- package/oj-c/select-multiple/component.json +2 -2
- package/oj-c/select-single/__webdriver__/SelectSingleWebElement.d.ts +8 -0
- package/oj-c/select-single/__webdriver__/SelectSingleWebElement.js +3 -22
- package/oj-c/select-single/__webdriver__/SelectSingleWebElement.js.map +1 -0
- package/oj-c/select-single/__webdriver__/SelectSingleWebElementBase.d.ts +289 -0
- package/oj-c/select-single/__webdriver__/SelectSingleWebElementBase.js +55 -74
- package/oj-c/select-single/__webdriver__/SelectSingleWebElementBase.js.map +1 -0
- package/oj-c/select-single/__webdriver__/index.d.ts +17 -0
- package/oj-c/select-single/__webdriver__/index.js +9 -53
- package/oj-c/select-single/__webdriver__/index.js.map +1 -0
- package/oj-c/select-single/component.json +2 -2
- package/oj-c/selector/__webdriver__/SelectorWebElement.d.ts +8 -0
- package/oj-c/selector/__webdriver__/SelectorWebElement.js +3 -22
- package/oj-c/selector/__webdriver__/SelectorWebElement.js.map +1 -0
- package/oj-c/selector/__webdriver__/SelectorWebElementBase.d.ts +44 -0
- package/oj-c/selector/__webdriver__/SelectorWebElementBase.js +13 -32
- package/oj-c/selector/__webdriver__/SelectorWebElementBase.js.map +1 -0
- package/oj-c/selector/__webdriver__/index.d.ts +17 -0
- package/oj-c/selector/__webdriver__/index.js +9 -53
- package/oj-c/selector/__webdriver__/index.js.map +1 -0
- package/oj-c/selector/component.json +2 -2
- package/oj-c/selector-all/__webdriver__/SelectorAllWebElement.d.ts +8 -0
- package/oj-c/selector-all/__webdriver__/SelectorAllWebElement.js +3 -22
- package/oj-c/selector-all/__webdriver__/SelectorAllWebElement.js.map +1 -0
- package/oj-c/selector-all/__webdriver__/SelectorAllWebElementBase.d.ts +23 -0
- package/oj-c/selector-all/__webdriver__/SelectorAllWebElementBase.js +7 -26
- package/oj-c/selector-all/__webdriver__/SelectorAllWebElementBase.js.map +1 -0
- package/oj-c/selector-all/__webdriver__/index.d.ts +17 -0
- package/oj-c/selector-all/__webdriver__/index.js +9 -53
- package/oj-c/selector-all/__webdriver__/index.js.map +1 -0
- package/oj-c/selector-all/component.json +2 -2
- package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElement.d.ts +8 -0
- package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElement.js +3 -22
- package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElement.js.map +1 -0
- package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElementBase.d.ts +65 -0
- package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElementBase.js +15 -34
- package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElementBase.js.map +1 -0
- package/oj-c/split-menu-button/__webdriver__/index.d.ts +17 -0
- package/oj-c/split-menu-button/__webdriver__/index.js +9 -53
- package/oj-c/split-menu-button/__webdriver__/index.js.map +1 -0
- package/oj-c/split-menu-button/component.json +2 -2
- package/oj-c/tag-cloud/__webdriver__/TagCloudWebElement.d.ts +8 -0
- package/oj-c/tag-cloud/__webdriver__/TagCloudWebElement.js +3 -22
- package/oj-c/tag-cloud/__webdriver__/TagCloudWebElement.js.map +1 -0
- package/oj-c/tag-cloud/__webdriver__/TagCloudWebElementBase.d.ts +100 -0
- package/oj-c/tag-cloud/__webdriver__/TagCloudWebElementBase.js +29 -48
- package/oj-c/tag-cloud/__webdriver__/TagCloudWebElementBase.js.map +1 -0
- package/oj-c/tag-cloud/__webdriver__/index.d.ts +17 -0
- package/oj-c/tag-cloud/__webdriver__/index.js +9 -53
- package/oj-c/tag-cloud/__webdriver__/index.js.map +1 -0
- package/oj-c/tag-cloud/component.json +2 -2
- package/oj-c/tag-cloud-item/component.json +2 -2
- package/oj-c/text-area/__webdriver__/TextAreaWebElement.d.ts +8 -0
- package/oj-c/text-area/__webdriver__/TextAreaWebElement.js +3 -22
- package/oj-c/text-area/__webdriver__/TextAreaWebElement.js.map +1 -0
- package/oj-c/text-area/__webdriver__/TextAreaWebElementBase.d.ts +274 -0
- package/oj-c/text-area/__webdriver__/TextAreaWebElementBase.js +61 -80
- package/oj-c/text-area/__webdriver__/TextAreaWebElementBase.js.map +1 -0
- package/oj-c/text-area/__webdriver__/index.d.ts +17 -0
- package/oj-c/text-area/__webdriver__/index.js +9 -53
- package/oj-c/text-area/__webdriver__/index.js.map +1 -0
- package/oj-c/text-area/component.json +2 -2
- package/package.json +3 -3
- package/webdriver/docs/assets/search.js +1 -1
- package/webdriver/docs/classes/ButtonWebElement.html +17 -7
- package/webdriver/index.d.ts +25 -0
- package/webdriver/index.js +1 -0
- package/webdriver/index.js.map +1 -0
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.MeterCircleWebElementBase = void 0;
|
|
19
4
|
var elements_1 = require("@oracle/oraclejet-webdriver/elements");
|
|
@@ -23,191 +8,187 @@ var elements_1 = require("@oracle/oraclejet-webdriver/elements");
|
|
|
23
8
|
* during the next generation.
|
|
24
9
|
* Put overrides into the WebElements's subclass, MeterCircleWebElement.ts.
|
|
25
10
|
*/
|
|
26
|
-
|
|
27
|
-
__extends(MeterCircleWebElementBase, _super);
|
|
28
|
-
function MeterCircleWebElementBase() {
|
|
29
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
-
}
|
|
11
|
+
class MeterCircleWebElementBase extends elements_1.OjWebElement {
|
|
31
12
|
/**
|
|
32
13
|
* Gets the value of <code>max</code> property.
|
|
33
14
|
* The maximum value of the meter circle.
|
|
34
15
|
* @return The value of <code>max</code> property.
|
|
35
16
|
*
|
|
36
17
|
*/
|
|
37
|
-
|
|
18
|
+
getMax() {
|
|
38
19
|
return this.getProperty('max');
|
|
39
|
-
}
|
|
20
|
+
}
|
|
40
21
|
/**
|
|
41
22
|
* Gets the value of <code>min</code> property.
|
|
42
23
|
* The minimum value of the meter circle.
|
|
43
24
|
* @return The value of <code>min</code> property.
|
|
44
25
|
*
|
|
45
26
|
*/
|
|
46
|
-
|
|
27
|
+
getMin() {
|
|
47
28
|
return this.getProperty('min');
|
|
48
|
-
}
|
|
29
|
+
}
|
|
49
30
|
/**
|
|
50
31
|
* Gets the value of <code>readonly</code> property.
|
|
51
32
|
*
|
|
52
33
|
* @return The value of <code>readonly</code> property.
|
|
53
34
|
*
|
|
54
35
|
*/
|
|
55
|
-
|
|
36
|
+
getReadonly() {
|
|
56
37
|
return this.getProperty('readonly');
|
|
57
|
-
}
|
|
38
|
+
}
|
|
58
39
|
/**
|
|
59
40
|
* Sets the value of <code>value</code> property.
|
|
60
41
|
* The value of the meter circle.
|
|
61
42
|
* @param value The value to set for <code>value</code>
|
|
62
43
|
*
|
|
63
44
|
*/
|
|
64
|
-
|
|
45
|
+
changeValue(value) {
|
|
65
46
|
return this.setProperty('value', value);
|
|
66
|
-
}
|
|
47
|
+
}
|
|
67
48
|
/**
|
|
68
49
|
* Gets the value of <code>value</code> property.
|
|
69
50
|
* The value of the meter circle.
|
|
70
51
|
* @return The value of <code>value</code> property.
|
|
71
52
|
*
|
|
72
53
|
*/
|
|
73
|
-
|
|
54
|
+
getValue() {
|
|
74
55
|
return this.getProperty('value');
|
|
75
|
-
}
|
|
56
|
+
}
|
|
76
57
|
/**
|
|
77
58
|
* Gets the value of <code>step</code> property.
|
|
78
59
|
*
|
|
79
60
|
* @return The value of <code>step</code> property.
|
|
80
61
|
*
|
|
81
62
|
*/
|
|
82
|
-
|
|
63
|
+
getStep() {
|
|
83
64
|
return this.getProperty('step');
|
|
84
|
-
}
|
|
65
|
+
}
|
|
85
66
|
/**
|
|
86
67
|
* Gets the value of <code>color</code> property.
|
|
87
68
|
*
|
|
88
69
|
* @return The value of <code>color</code> property.
|
|
89
70
|
*
|
|
90
71
|
*/
|
|
91
|
-
|
|
72
|
+
getColor() {
|
|
92
73
|
return this.getProperty('color');
|
|
93
|
-
}
|
|
74
|
+
}
|
|
94
75
|
/**
|
|
95
76
|
* Gets the value of <code>indicatorSize</code> property.
|
|
96
77
|
*
|
|
97
78
|
* @return The value of <code>indicatorSize</code> property.
|
|
98
79
|
*
|
|
99
80
|
*/
|
|
100
|
-
|
|
81
|
+
getIndicatorSize() {
|
|
101
82
|
return this.getProperty('indicatorSize');
|
|
102
|
-
}
|
|
83
|
+
}
|
|
103
84
|
/**
|
|
104
85
|
* Gets the value of <code>innerRadius</code> property.
|
|
105
86
|
*
|
|
106
87
|
* @return The value of <code>innerRadius</code> property.
|
|
107
88
|
*
|
|
108
89
|
*/
|
|
109
|
-
|
|
90
|
+
getInnerRadius() {
|
|
110
91
|
return this.getProperty('innerRadius');
|
|
111
|
-
}
|
|
92
|
+
}
|
|
112
93
|
/**
|
|
113
94
|
* Gets the value of <code>plotArea</code> property.
|
|
114
95
|
*
|
|
115
96
|
* @return The value of <code>plotArea</code> property.
|
|
116
97
|
*
|
|
117
98
|
*/
|
|
118
|
-
|
|
99
|
+
getPlotArea() {
|
|
119
100
|
return this.getProperty('plotArea');
|
|
120
|
-
}
|
|
101
|
+
}
|
|
121
102
|
/**
|
|
122
103
|
* Gets the value of <code>angleExtent</code> property.
|
|
123
104
|
*
|
|
124
105
|
* @return The value of <code>angleExtent</code> property.
|
|
125
106
|
*
|
|
126
107
|
*/
|
|
127
|
-
|
|
108
|
+
getAngleExtent() {
|
|
128
109
|
return this.getProperty('angleExtent');
|
|
129
|
-
}
|
|
110
|
+
}
|
|
130
111
|
/**
|
|
131
112
|
* Gets the value of <code>startAngle</code> property.
|
|
132
113
|
*
|
|
133
114
|
* @return The value of <code>startAngle</code> property.
|
|
134
115
|
*
|
|
135
116
|
*/
|
|
136
|
-
|
|
117
|
+
getStartAngle() {
|
|
137
118
|
return this.getProperty('startAngle');
|
|
138
|
-
}
|
|
119
|
+
}
|
|
139
120
|
/**
|
|
140
121
|
* Gets the value of <code>referenceLines</code> property.
|
|
141
122
|
*
|
|
142
123
|
* @return The value of <code>referenceLines</code> property.
|
|
143
124
|
*
|
|
144
125
|
*/
|
|
145
|
-
|
|
126
|
+
getReferenceLines() {
|
|
146
127
|
return this.getProperty('referenceLines');
|
|
147
|
-
}
|
|
128
|
+
}
|
|
148
129
|
/**
|
|
149
130
|
* Gets the value of <code>thresholdDisplay</code> property.
|
|
150
131
|
*
|
|
151
132
|
* @return The value of <code>thresholdDisplay</code> property.
|
|
152
133
|
*
|
|
153
134
|
*/
|
|
154
|
-
|
|
135
|
+
getThresholdDisplay() {
|
|
155
136
|
return this.getProperty('thresholdDisplay');
|
|
156
|
-
}
|
|
137
|
+
}
|
|
157
138
|
/**
|
|
158
139
|
* Gets the value of <code>thresholds</code> property.
|
|
159
140
|
*
|
|
160
141
|
* @return The value of <code>thresholds</code> property.
|
|
161
142
|
*
|
|
162
143
|
*/
|
|
163
|
-
|
|
144
|
+
getThresholds() {
|
|
164
145
|
return this.getProperty('thresholds');
|
|
165
|
-
}
|
|
146
|
+
}
|
|
166
147
|
/**
|
|
167
148
|
* Gets the value of <code>describedBy</code> property.
|
|
168
149
|
*
|
|
169
150
|
* @return The value of <code>describedBy</code> property.
|
|
170
151
|
*
|
|
171
152
|
*/
|
|
172
|
-
|
|
153
|
+
getDescribedBy() {
|
|
173
154
|
return this.getProperty('describedBy');
|
|
174
|
-
}
|
|
155
|
+
}
|
|
175
156
|
/**
|
|
176
157
|
* Gets the value of <code>labelledBy</code> property.
|
|
177
158
|
*
|
|
178
159
|
* @return The value of <code>labelledBy</code> property.
|
|
179
160
|
*
|
|
180
161
|
*/
|
|
181
|
-
|
|
162
|
+
getLabelledBy() {
|
|
182
163
|
return this.getProperty('labelledBy');
|
|
183
|
-
}
|
|
164
|
+
}
|
|
184
165
|
/**
|
|
185
166
|
* Gets the value of <code>size</code> property.
|
|
186
167
|
* Specifies the size of the meter circle.
|
|
187
168
|
* @return The value of <code>size</code> property.
|
|
188
169
|
*
|
|
189
170
|
*/
|
|
190
|
-
|
|
171
|
+
getSizeProperty() {
|
|
191
172
|
return this.getProperty('size');
|
|
192
|
-
}
|
|
173
|
+
}
|
|
193
174
|
/**
|
|
194
175
|
* Gets the value of <code>datatip</code> property.
|
|
195
176
|
*
|
|
196
177
|
* @return The value of <code>datatip</code> property.
|
|
197
178
|
*
|
|
198
179
|
*/
|
|
199
|
-
|
|
180
|
+
getDatatip() {
|
|
200
181
|
return this.getProperty('datatip');
|
|
201
|
-
}
|
|
182
|
+
}
|
|
202
183
|
/**
|
|
203
184
|
* Gets the value of <code>transientValue</code> property.
|
|
204
185
|
*
|
|
205
186
|
* @return The value of <code>transientValue</code> property.
|
|
206
187
|
*
|
|
207
188
|
*/
|
|
208
|
-
|
|
189
|
+
getTransientValue() {
|
|
209
190
|
return this.getProperty('transientValue');
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
}(elements_1.OjWebElement));
|
|
191
|
+
}
|
|
192
|
+
}
|
|
213
193
|
exports.MeterCircleWebElementBase = MeterCircleWebElementBase;
|
|
194
|
+
//# sourceMappingURL=MeterCircleWebElementBase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MeterCircleWebElementBase.js","sourceRoot":"","sources":["MeterCircleWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,yBAA0B,SAAQ,uBAAY;IACzD;;;;;OAKG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,WAAW,CAAS,KAAK,CAAC,CAAC;IACzC,CAAC;IAED;;;;;OAKG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,WAAW,CAAS,KAAK,CAAC,CAAC;IACzC,CAAC;IAED;;;;;OAKG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,WAAW,CAAU,UAAU,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;OAKG;IACI,WAAW,CAAC,KAAoB;QACrC,OAAO,IAAI,CAAC,WAAW,CAAgB,OAAO,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAgB,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,OAAO;QACZ,OAAO,IAAI,CAAC,WAAW,CAAS,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAS,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAS,eAAe,CAAC,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,WAAW,CAAS,aAAa,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,WAAW,CAAW,UAAU,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,WAAW,CAAS,aAAa,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,aAAa;QAClB,OAAO,IAAI,CAAC,WAAW,CAAS,YAAY,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,iBAAiB;QACtB,OAAO,IAAI,CAAC,WAAW,CAAwB,gBAAgB,CAAC,CAAC;IACnE,CAAC;IAED;;;;;OAKG;IACI,mBAAmB;QACxB,OAAO,IAAI,CAAC,WAAW,CAAS,kBAAkB,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,aAAa;QAClB,OAAO,IAAI,CAAC,WAAW,CAAoB,YAAY,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,WAAW,CAAgB,aAAa,CAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACI,aAAa;QAClB,OAAO,IAAI,CAAC,WAAW,CAAgB,YAAY,CAAC,CAAC;IACvD,CAAC;IAED;;;;;OAKG;IACI,eAAe;QACpB,OAAO,IAAI,CAAC,WAAW,CAAS,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACI,UAAU;QACf,OAAO,IAAI,CAAC,WAAW,CAAO,SAAS,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;OAKG;IACI,iBAAiB;QACtB,OAAO,IAAI,CAAC,WAAW,CAAS,gBAAgB,CAAC,CAAC;IACpD,CAAC;CACF;AAxMD,8DAwMC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-meter-circle WebElement, and is generated from the\n * component's metadata. Do not modify these contents since they'll be replaced\n * during the next generation.\n * Put overrides into the WebElements's subclass, MeterCircleWebElement.ts.\n */\nexport class MeterCircleWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>max</code> property.\n * The maximum value of the meter circle.\n * @return The value of <code>max</code> property.\n *\n */\n public getMax(): Promise<number> {\n return this.getProperty<number>('max');\n }\n\n /**\n * Gets the value of <code>min</code> property.\n * The minimum value of the meter circle.\n * @return The value of <code>min</code> property.\n *\n */\n public getMin(): Promise<number> {\n return this.getProperty<number>('min');\n }\n\n /**\n * Gets the value of <code>readonly</code> property.\n *\n * @return The value of <code>readonly</code> property.\n *\n */\n public getReadonly(): Promise<boolean> {\n return this.getProperty<boolean>('readonly');\n }\n\n /**\n * Sets the value of <code>value</code> property.\n * The value of the meter circle.\n * @param value The value to set for <code>value</code>\n *\n */\n public changeValue(value: number | null): Promise<void> {\n return this.setProperty<number | null>('value', value);\n }\n\n /**\n * Gets the value of <code>value</code> property.\n * The value of the meter circle.\n * @return The value of <code>value</code> property.\n *\n */\n public getValue(): Promise<number | null> {\n return this.getProperty<number | null>('value');\n }\n\n /**\n * Gets the value of <code>step</code> property.\n *\n * @return The value of <code>step</code> property.\n *\n */\n public getStep(): Promise<number> {\n return this.getProperty<number>('step');\n }\n\n /**\n * Gets the value of <code>color</code> property.\n *\n * @return The value of <code>color</code> property.\n *\n */\n public getColor(): Promise<string> {\n return this.getProperty<string>('color');\n }\n\n /**\n * Gets the value of <code>indicatorSize</code> property.\n *\n * @return The value of <code>indicatorSize</code> property.\n *\n */\n public getIndicatorSize(): Promise<number> {\n return this.getProperty<number>('indicatorSize');\n }\n\n /**\n * Gets the value of <code>innerRadius</code> property.\n *\n * @return The value of <code>innerRadius</code> property.\n *\n */\n public getInnerRadius(): Promise<number> {\n return this.getProperty<number>('innerRadius');\n }\n\n /**\n * Gets the value of <code>plotArea</code> property.\n *\n * @return The value of <code>plotArea</code> property.\n *\n */\n public getPlotArea(): Promise<PlotArea> {\n return this.getProperty<PlotArea>('plotArea');\n }\n\n /**\n * Gets the value of <code>angleExtent</code> property.\n *\n * @return The value of <code>angleExtent</code> property.\n *\n */\n public getAngleExtent(): Promise<number> {\n return this.getProperty<number>('angleExtent');\n }\n\n /**\n * Gets the value of <code>startAngle</code> property.\n *\n * @return The value of <code>startAngle</code> property.\n *\n */\n public getStartAngle(): Promise<number> {\n return this.getProperty<number>('startAngle');\n }\n\n /**\n * Gets the value of <code>referenceLines</code> property.\n *\n * @return The value of <code>referenceLines</code> property.\n *\n */\n public getReferenceLines(): Promise<Array<ReferenceLines>> {\n return this.getProperty<Array<ReferenceLines>>('referenceLines');\n }\n\n /**\n * Gets the value of <code>thresholdDisplay</code> property.\n *\n * @return The value of <code>thresholdDisplay</code> property.\n *\n */\n public getThresholdDisplay(): Promise<string> {\n return this.getProperty<string>('thresholdDisplay');\n }\n\n /**\n * Gets the value of <code>thresholds</code> property.\n *\n * @return The value of <code>thresholds</code> property.\n *\n */\n public getThresholds(): Promise<Array<Thresholds>> {\n return this.getProperty<Array<Thresholds>>('thresholds');\n }\n\n /**\n * Gets the value of <code>describedBy</code> property.\n *\n * @return The value of <code>describedBy</code> property.\n *\n */\n public getDescribedBy(): Promise<string | null> {\n return this.getProperty<string | null>('describedBy');\n }\n\n /**\n * Gets the value of <code>labelledBy</code> property.\n *\n * @return The value of <code>labelledBy</code> property.\n *\n */\n public getLabelledBy(): Promise<string | null> {\n return this.getProperty<string | null>('labelledBy');\n }\n\n /**\n * Gets the value of <code>size</code> property.\n * Specifies the size of the meter circle.\n * @return The value of <code>size</code> property.\n *\n */\n public getSizeProperty(): Promise<string> {\n return this.getProperty<string>('size');\n }\n\n /**\n * Gets the value of <code>datatip</code> property.\n *\n * @return The value of <code>datatip</code> property.\n *\n */\n public getDatatip(): Promise<null> {\n return this.getProperty<null>('datatip');\n }\n\n /**\n * Gets the value of <code>transientValue</code> property.\n *\n * @return The value of <code>transientValue</code> property.\n *\n */\n public getTransientValue(): Promise<number> {\n return this.getProperty<number>('transientValue');\n }\n}\nexport interface PlotArea {\n /**\n *\n */\n color: string;\n /**\n *\n */\n rendered: string;\n}\nexport interface ReferenceLines {\n /**\n *\n */\n value: number;\n /**\n *\n */\n color: string;\n}\nexport interface Thresholds {\n /**\n *\n */\n accessibleLabel: string;\n /**\n *\n */\n color: string;\n /**\n *\n */\n max: number;\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { By } from 'selenium-webdriver';
|
|
2
|
+
import { DriverLike } from '@oracle/oraclejet-webdriver';
|
|
3
|
+
import { MeterCircleWebElement } from './MeterCircleWebElement';
|
|
4
|
+
export { MeterCircleWebElement };
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve an instance of [[MeterCircleWebElement]].
|
|
7
|
+
* @example
|
|
8
|
+
* ```javascript
|
|
9
|
+
* import { findMeterCircle } from '@oracle/oraclejet-core-pack/webdriver';
|
|
10
|
+
* const el = await findMeterCircle(driver, By.id('my-oj-c-meter-circle'));
|
|
11
|
+
* ```
|
|
12
|
+
* @param driver A WebDriver/WebElement instance from where the element will be
|
|
13
|
+
* searched. If WebDriver is passed, the element will be searched globally in the
|
|
14
|
+
* document. If WebElement is passed, the search will be relative to this element.
|
|
15
|
+
* @param by The locator with which to find the element
|
|
16
|
+
*/
|
|
17
|
+
export declare function findMeterCircle(driver: DriverLike, by: By): Promise<MeterCircleWebElement>;
|
|
@@ -1,40 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
3
|
exports.findMeterCircle = exports.MeterCircleWebElement = void 0;
|
|
40
4
|
var oraclejet_webdriver_1 = require("@oracle/oraclejet-webdriver");
|
|
@@ -52,23 +16,15 @@ Object.defineProperty(exports, "MeterCircleWebElement", { enumerable: true, get:
|
|
|
52
16
|
* document. If WebElement is passed, the search will be relative to this element.
|
|
53
17
|
* @param by The locator with which to find the element
|
|
54
18
|
*/
|
|
55
|
-
function findMeterCircle(driver, by) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (!!(webEl instanceof MeterCircleWebElement_1.MeterCircleWebElement)) return [3 /*break*/, 3];
|
|
64
|
-
return [4 /*yield*/, webEl.getTagName()];
|
|
65
|
-
case 2:
|
|
66
|
-
tagName = _a.sent();
|
|
67
|
-
throw Error("findMeterCircle(".concat(by, ") created ").concat(webEl.constructor.name, " for <").concat(tagName, ">, but expected ").concat(MeterCircleWebElement_1.MeterCircleWebElement.name));
|
|
68
|
-
case 3: return [2 /*return*/, webEl];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
19
|
+
async function findMeterCircle(driver, by) {
|
|
20
|
+
const webEl = await driver.findElement(by);
|
|
21
|
+
// Check that the element is of type MeterCircleWebElement
|
|
22
|
+
if (!(webEl instanceof MeterCircleWebElement_1.MeterCircleWebElement)) {
|
|
23
|
+
const tagName = await webEl.getTagName();
|
|
24
|
+
throw Error(`findMeterCircle(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${MeterCircleWebElement_1.MeterCircleWebElement.name}`);
|
|
25
|
+
}
|
|
26
|
+
return webEl;
|
|
72
27
|
}
|
|
73
28
|
exports.findMeterCircle = findMeterCircle;
|
|
74
29
|
(0, oraclejet_webdriver_1.register)('oj-c-meter-circle', MeterCircleWebElement_1.MeterCircleWebElement);
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,mEAAmE;AACnE,iEAAgE;AACvD,sGADA,6CAAqB,OACA;AAE9B;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,eAAe,CAAC,MAAkB,EAAE,EAAM;IAC9D,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC3C,0DAA0D;IAC1D,IAAI,CAAC,CAAC,KAAK,YAAY,6CAAqB,CAAC,EAAE;QAC7C,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC;QACzC,MAAM,KAAK,CACT,mBAAmB,EAAE,aAAa,KAAK,CAAC,WAAW,CAAC,IAAI,SAAS,OAAO,mBAAmB,6CAAqB,CAAC,IAAI,EAAE,CACxH,CAAC;KACH;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAVD,0CAUC;AAED,IAAA,8BAAQ,EAAC,mBAAmB,EAAE,6CAAqB,CAAC,CAAC","sourcesContent":["import { By } from 'selenium-webdriver';\nimport { DriverLike, register } from '@oracle/oraclejet-webdriver';\nimport { MeterCircleWebElement } from './MeterCircleWebElement';\nexport { MeterCircleWebElement };\n\n/**\n * Retrieve an instance of [[MeterCircleWebElement]].\n * @example\n * ```javascript\n * import { findMeterCircle } from '@oracle/oraclejet-core-pack/webdriver';\n * const el = await findMeterCircle(driver, By.id('my-oj-c-meter-circle'));\n * ```\n * @param driver A WebDriver/WebElement instance from where the element will be\n * searched. If WebDriver is passed, the element will be searched globally in the\n * document. If WebElement is passed, the search will be relative to this element.\n * @param by The locator with which to find the element\n */\nexport async function findMeterCircle(driver: DriverLike, by: By): Promise<MeterCircleWebElement> {\n const webEl = await driver.findElement(by);\n // Check that the element is of type MeterCircleWebElement\n if (!(webEl instanceof MeterCircleWebElement)) {\n const tagName = await webEl.getTagName();\n throw Error(\n `findMeterCircle(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${MeterCircleWebElement.name}`\n );\n }\n return webEl;\n}\n\nregister('oj-c-meter-circle', MeterCircleWebElement);\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ProgressBarWebElementBase } from './ProgressBarWebElementBase';
|
|
2
|
+
/**
|
|
3
|
+
* The component WebElement for [oj-c-progress-bar](../../../oj-c/docs/oj.ProgressBar.html).
|
|
4
|
+
* Do not instantiate this class directly, instead, use
|
|
5
|
+
* [findProgressBar](../modules.html#findProgressBar).
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProgressBarWebElement extends ProgressBarWebElementBase {
|
|
8
|
+
}
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.ProgressBarWebElement = void 0;
|
|
19
4
|
var ProgressBarWebElementBase_1 = require("./ProgressBarWebElementBase");
|
|
@@ -22,11 +7,7 @@ var ProgressBarWebElementBase_1 = require("./ProgressBarWebElementBase");
|
|
|
22
7
|
* Do not instantiate this class directly, instead, use
|
|
23
8
|
* [findProgressBar](../modules.html#findProgressBar).
|
|
24
9
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function ProgressBarWebElement() {
|
|
28
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
-
}
|
|
30
|
-
return ProgressBarWebElement;
|
|
31
|
-
}(ProgressBarWebElementBase_1.ProgressBarWebElementBase));
|
|
10
|
+
class ProgressBarWebElement extends ProgressBarWebElementBase_1.ProgressBarWebElementBase {
|
|
11
|
+
}
|
|
32
12
|
exports.ProgressBarWebElement = ProgressBarWebElement;
|
|
13
|
+
//# sourceMappingURL=ProgressBarWebElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressBarWebElement.js","sourceRoot":"","sources":["ProgressBarWebElement.ts"],"names":[],"mappings":";;;AAAA,yEAAwE;AAExE;;;;GAIG;AACH,MAAa,qBAAsB,SAAQ,qDAAyB;CAEnE;AAFD,sDAEC","sourcesContent":["import { ProgressBarWebElementBase } from './ProgressBarWebElementBase';\n\n/**\n * The component WebElement for [oj-c-progress-bar](../../../oj-c/docs/oj.ProgressBar.html).\n * Do not instantiate this class directly, instead, use\n * [findProgressBar](../modules.html#findProgressBar).\n */\nexport class ProgressBarWebElement extends ProgressBarWebElementBase {\n // Put overrides here\n}\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';
|
|
2
|
+
/**
|
|
3
|
+
* This is the base class for oj-c-progress-bar WebElement, and is generated from the
|
|
4
|
+
* component's metadata. Do not modify these contents since they'll be replaced
|
|
5
|
+
* during the next generation.
|
|
6
|
+
* Put overrides into the WebElements's subclass, ProgressBarWebElement.ts.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ProgressBarWebElementBase extends OjWebElement {
|
|
9
|
+
/**
|
|
10
|
+
* Gets the value of <code>max</code> property.
|
|
11
|
+
* The maximum allowed value.
|
|
12
|
+
* @return The value of <code>max</code> property.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
getMax(): Promise<number>;
|
|
16
|
+
/**
|
|
17
|
+
* Gets the value of <code>value</code> property.
|
|
18
|
+
* The value of the Progress Bar.
|
|
19
|
+
* @return The value of <code>value</code> property.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
getValue(): Promise<number>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets the value of <code>edge</code> property.
|
|
25
|
+
* Specifies whether the progress bar is on the top edge of a container
|
|
26
|
+
* @return The value of <code>edge</code> property.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
getEdge(): Promise<string>;
|
|
30
|
+
}
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.ProgressBarWebElementBase = void 0;
|
|
19
4
|
var elements_1 = require("@oracle/oraclejet-webdriver/elements");
|
|
@@ -23,38 +8,34 @@ var elements_1 = require("@oracle/oraclejet-webdriver/elements");
|
|
|
23
8
|
* during the next generation.
|
|
24
9
|
* Put overrides into the WebElements's subclass, ProgressBarWebElement.ts.
|
|
25
10
|
*/
|
|
26
|
-
|
|
27
|
-
__extends(ProgressBarWebElementBase, _super);
|
|
28
|
-
function ProgressBarWebElementBase() {
|
|
29
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
-
}
|
|
11
|
+
class ProgressBarWebElementBase extends elements_1.OjWebElement {
|
|
31
12
|
/**
|
|
32
13
|
* Gets the value of <code>max</code> property.
|
|
33
14
|
* The maximum allowed value.
|
|
34
15
|
* @return The value of <code>max</code> property.
|
|
35
16
|
*
|
|
36
17
|
*/
|
|
37
|
-
|
|
18
|
+
getMax() {
|
|
38
19
|
return this.getProperty('max');
|
|
39
|
-
}
|
|
20
|
+
}
|
|
40
21
|
/**
|
|
41
22
|
* Gets the value of <code>value</code> property.
|
|
42
23
|
* The value of the Progress Bar.
|
|
43
24
|
* @return The value of <code>value</code> property.
|
|
44
25
|
*
|
|
45
26
|
*/
|
|
46
|
-
|
|
27
|
+
getValue() {
|
|
47
28
|
return this.getProperty('value');
|
|
48
|
-
}
|
|
29
|
+
}
|
|
49
30
|
/**
|
|
50
31
|
* Gets the value of <code>edge</code> property.
|
|
51
32
|
* Specifies whether the progress bar is on the top edge of a container
|
|
52
33
|
* @return The value of <code>edge</code> property.
|
|
53
34
|
*
|
|
54
35
|
*/
|
|
55
|
-
|
|
36
|
+
getEdge() {
|
|
56
37
|
return this.getProperty('edge');
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
}(elements_1.OjWebElement));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
60
40
|
exports.ProgressBarWebElementBase = ProgressBarWebElementBase;
|
|
41
|
+
//# sourceMappingURL=ProgressBarWebElementBase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressBarWebElementBase.js","sourceRoot":"","sources":["ProgressBarWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,yBAA0B,SAAQ,uBAAY;IACzD;;;;;OAKG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,WAAW,CAAS,KAAK,CAAC,CAAC;IACzC,CAAC;IAED;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAS,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;OAKG;IACI,OAAO;QACZ,OAAO,IAAI,CAAC,WAAW,CAAS,MAAM,CAAC,CAAC;IAC1C,CAAC;CACF;AA9BD,8DA8BC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-progress-bar WebElement, and is generated from the\n * component's metadata. Do not modify these contents since they'll be replaced\n * during the next generation.\n * Put overrides into the WebElements's subclass, ProgressBarWebElement.ts.\n */\nexport class ProgressBarWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>max</code> property.\n * The maximum allowed value.\n * @return The value of <code>max</code> property.\n *\n */\n public getMax(): Promise<number> {\n return this.getProperty<number>('max');\n }\n\n /**\n * Gets the value of <code>value</code> property.\n * The value of the Progress Bar.\n * @return The value of <code>value</code> property.\n *\n */\n public getValue(): Promise<number> {\n return this.getProperty<number>('value');\n }\n\n /**\n * Gets the value of <code>edge</code> property.\n * Specifies whether the progress bar is on the top edge of a container\n * @return The value of <code>edge</code> property.\n *\n */\n public getEdge(): Promise<string> {\n return this.getProperty<string>('edge');\n }\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { By } from 'selenium-webdriver';
|
|
2
|
+
import { DriverLike } from '@oracle/oraclejet-webdriver';
|
|
3
|
+
import { ProgressBarWebElement } from './ProgressBarWebElement';
|
|
4
|
+
export { ProgressBarWebElement };
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve an instance of [[ProgressBarWebElement]].
|
|
7
|
+
* @example
|
|
8
|
+
* ```javascript
|
|
9
|
+
* import { findProgressBar } from '@oracle/oraclejet-core-pack/webdriver';
|
|
10
|
+
* const el = await findProgressBar(driver, By.id('my-oj-c-progress-bar'));
|
|
11
|
+
* ```
|
|
12
|
+
* @param driver A WebDriver/WebElement instance from where the element will be
|
|
13
|
+
* searched. If WebDriver is passed, the element will be searched globally in the
|
|
14
|
+
* document. If WebElement is passed, the search will be relative to this element.
|
|
15
|
+
* @param by The locator with which to find the element
|
|
16
|
+
*/
|
|
17
|
+
export declare function findProgressBar(driver: DriverLike, by: By): Promise<ProgressBarWebElement>;
|
|
@@ -1,40 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
3
|
exports.findProgressBar = exports.ProgressBarWebElement = void 0;
|
|
40
4
|
var oraclejet_webdriver_1 = require("@oracle/oraclejet-webdriver");
|
|
@@ -52,23 +16,15 @@ Object.defineProperty(exports, "ProgressBarWebElement", { enumerable: true, get:
|
|
|
52
16
|
* document. If WebElement is passed, the search will be relative to this element.
|
|
53
17
|
* @param by The locator with which to find the element
|
|
54
18
|
*/
|
|
55
|
-
function findProgressBar(driver, by) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (!!(webEl instanceof ProgressBarWebElement_1.ProgressBarWebElement)) return [3 /*break*/, 3];
|
|
64
|
-
return [4 /*yield*/, webEl.getTagName()];
|
|
65
|
-
case 2:
|
|
66
|
-
tagName = _a.sent();
|
|
67
|
-
throw Error("findProgressBar(".concat(by, ") created ").concat(webEl.constructor.name, " for <").concat(tagName, ">, but expected ").concat(ProgressBarWebElement_1.ProgressBarWebElement.name));
|
|
68
|
-
case 3: return [2 /*return*/, webEl];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
19
|
+
async function findProgressBar(driver, by) {
|
|
20
|
+
const webEl = await driver.findElement(by);
|
|
21
|
+
// Check that the element is of type ProgressBarWebElement
|
|
22
|
+
if (!(webEl instanceof ProgressBarWebElement_1.ProgressBarWebElement)) {
|
|
23
|
+
const tagName = await webEl.getTagName();
|
|
24
|
+
throw Error(`findProgressBar(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${ProgressBarWebElement_1.ProgressBarWebElement.name}`);
|
|
25
|
+
}
|
|
26
|
+
return webEl;
|
|
72
27
|
}
|
|
73
28
|
exports.findProgressBar = findProgressBar;
|
|
74
29
|
(0, oraclejet_webdriver_1.register)('oj-c-progress-bar', ProgressBarWebElement_1.ProgressBarWebElement);
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,mEAAmE;AACnE,iEAAgE;AACvD,sGADA,6CAAqB,OACA;AAE9B;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,eAAe,CAAC,MAAkB,EAAE,EAAM;IAC9D,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC3C,0DAA0D;IAC1D,IAAI,CAAC,CAAC,KAAK,YAAY,6CAAqB,CAAC,EAAE;QAC7C,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC;QACzC,MAAM,KAAK,CACT,mBAAmB,EAAE,aAAa,KAAK,CAAC,WAAW,CAAC,IAAI,SAAS,OAAO,mBAAmB,6CAAqB,CAAC,IAAI,EAAE,CACxH,CAAC;KACH;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAVD,0CAUC;AAED,IAAA,8BAAQ,EAAC,mBAAmB,EAAE,6CAAqB,CAAC,CAAC","sourcesContent":["import { By } from 'selenium-webdriver';\nimport { DriverLike, register } from '@oracle/oraclejet-webdriver';\nimport { ProgressBarWebElement } from './ProgressBarWebElement';\nexport { ProgressBarWebElement };\n\n/**\n * Retrieve an instance of [[ProgressBarWebElement]].\n * @example\n * ```javascript\n * import { findProgressBar } from '@oracle/oraclejet-core-pack/webdriver';\n * const el = await findProgressBar(driver, By.id('my-oj-c-progress-bar'));\n * ```\n * @param driver A WebDriver/WebElement instance from where the element will be\n * searched. If WebDriver is passed, the element will be searched globally in the\n * document. If WebElement is passed, the search will be relative to this element.\n * @param by The locator with which to find the element\n */\nexport async function findProgressBar(driver: DriverLike, by: By): Promise<ProgressBarWebElement> {\n const webEl = await driver.findElement(by);\n // Check that the element is of type ProgressBarWebElement\n if (!(webEl instanceof ProgressBarWebElement)) {\n const tagName = await webEl.getTagName();\n throw Error(\n `findProgressBar(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${ProgressBarWebElement.name}`\n );\n }\n return webEl;\n}\n\nregister('oj-c-progress-bar', ProgressBarWebElement);\n"]}
|