@oracle/oraclejet-core-pack 15.0.2 → 15.0.4
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 +36 -16
- 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/corepackbundle.js +7 -4
- 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 +11 -6
- 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 +52 -0
- package/oj-c/message-toast/__webdriver__/MessageToastWebElement.js +87 -21
- 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/message-toast/message-toast.js +7 -4
- 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/min/corepackbundle.js +4 -4
- package/oj-c/min/corepackbundle.js.map +1 -1
- package/oj-c/min/message-toast.js +1 -1
- package/oj-c/min/message-toast.js.map +1 -1
- 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/oj-c/types/message-toast/message-toast.d.ts +44 -44
- package/package.json +3 -3
- package/webdriver/docs/assets/search.js +1 -1
- package/webdriver/docs/classes/ButtonWebElement.html +17 -7
- package/webdriver/docs/classes/MessageToastWebElement.html +89 -0
- package/webdriver/index.d.ts +25 -0
- package/webdriver/index.js +1 -0
- package/webdriver/index.js.map +1 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { By } from 'selenium-webdriver';
|
|
2
|
+
import { DriverLike } from '@oracle/oraclejet-webdriver';
|
|
3
|
+
import { AvatarWebElement } from './AvatarWebElement';
|
|
4
|
+
export { AvatarWebElement };
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve an instance of [[AvatarWebElement]].
|
|
7
|
+
* @example
|
|
8
|
+
* ```javascript
|
|
9
|
+
* import { findAvatar } from '@oracle/oraclejet-core-pack/webdriver';
|
|
10
|
+
* const el = await findAvatar(driver, By.id('my-oj-c-avatar'));
|
|
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 findAvatar(driver: DriverLike, by: By): Promise<AvatarWebElement>;
|
|
@@ -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.findAvatar = exports.AvatarWebElement = void 0;
|
|
40
4
|
var oraclejet_webdriver_1 = require("@oracle/oraclejet-webdriver");
|
|
@@ -52,23 +16,15 @@ Object.defineProperty(exports, "AvatarWebElement", { enumerable: true, get: func
|
|
|
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 findAvatar(driver, by) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (!!(webEl instanceof AvatarWebElement_1.AvatarWebElement)) return [3 /*break*/, 3];
|
|
64
|
-
return [4 /*yield*/, webEl.getTagName()];
|
|
65
|
-
case 2:
|
|
66
|
-
tagName = _a.sent();
|
|
67
|
-
throw Error("findAvatar(".concat(by, ") created ").concat(webEl.constructor.name, " for <").concat(tagName, ">, but expected ").concat(AvatarWebElement_1.AvatarWebElement.name));
|
|
68
|
-
case 3: return [2 /*return*/, webEl];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
19
|
+
async function findAvatar(driver, by) {
|
|
20
|
+
const webEl = await driver.findElement(by);
|
|
21
|
+
// Check that the element is of type AvatarWebElement
|
|
22
|
+
if (!(webEl instanceof AvatarWebElement_1.AvatarWebElement)) {
|
|
23
|
+
const tagName = await webEl.getTagName();
|
|
24
|
+
throw Error(`findAvatar(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${AvatarWebElement_1.AvatarWebElement.name}`);
|
|
25
|
+
}
|
|
26
|
+
return webEl;
|
|
72
27
|
}
|
|
73
28
|
exports.findAvatar = findAvatar;
|
|
74
29
|
(0, oraclejet_webdriver_1.register)('oj-c-avatar', AvatarWebElement_1.AvatarWebElement);
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,mEAAmE;AACnE,uDAAsD;AAC7C,iGADA,mCAAgB,OACA;AAEzB;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,UAAU,CAAC,MAAkB,EAAE,EAAM;IACzD,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC3C,qDAAqD;IACrD,IAAI,CAAC,CAAC,KAAK,YAAY,mCAAgB,CAAC,EAAE;QACxC,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC;QACzC,MAAM,KAAK,CACT,cAAc,EAAE,aAAa,KAAK,CAAC,WAAW,CAAC,IAAI,SAAS,OAAO,mBAAmB,mCAAgB,CAAC,IAAI,EAAE,CAC9G,CAAC;KACH;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAVD,gCAUC;AAED,IAAA,8BAAQ,EAAC,aAAa,EAAE,mCAAgB,CAAC,CAAC","sourcesContent":["import { By } from 'selenium-webdriver';\nimport { DriverLike, register } from '@oracle/oraclejet-webdriver';\nimport { AvatarWebElement } from './AvatarWebElement';\nexport { AvatarWebElement };\n\n/**\n * Retrieve an instance of [[AvatarWebElement]].\n * @example\n * ```javascript\n * import { findAvatar } from '@oracle/oraclejet-core-pack/webdriver';\n * const el = await findAvatar(driver, By.id('my-oj-c-avatar'));\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 findAvatar(driver: DriverLike, by: By): Promise<AvatarWebElement> {\n const webEl = await driver.findElement(by);\n // Check that the element is of type AvatarWebElement\n if (!(webEl instanceof AvatarWebElement)) {\n const tagName = await webEl.getTagName();\n throw Error(\n `findAvatar(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${AvatarWebElement.name}`\n );\n }\n return webEl;\n}\n\nregister('oj-c-avatar', AvatarWebElement);\n"]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ButtonWebElementBase } from './ButtonWebElementBase';
|
|
2
|
+
/**
|
|
3
|
+
* The component WebElement for [oj-c-button](../../../oj-c/docs/oj.Button.html).
|
|
4
|
+
* Do not instantiate this class directly, instead, use
|
|
5
|
+
* [findButton](../modules.html#findButton).
|
|
6
|
+
*/
|
|
7
|
+
export declare class ButtonWebElement extends ButtonWebElementBase {
|
|
8
|
+
/**
|
|
9
|
+
* Perform a click on the button
|
|
10
|
+
*/
|
|
11
|
+
doAction(): Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Perform a click on the button
|
|
14
|
+
*/
|
|
15
|
+
click(): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Sets the value of <code>label</code> property.
|
|
18
|
+
* Text to show in the button.
|
|
19
|
+
* @param label The value to set for <code>label</code>
|
|
20
|
+
* @deprecated Since 14.0.0. Do not use this method to change the button label. It will be removed in the next release.
|
|
21
|
+
*/
|
|
22
|
+
changeLabel(label: string): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Sets the value of <code>disabled</code> property.
|
|
25
|
+
* Specifies that the button element should be disabled.
|
|
26
|
+
* @param disabled The value to set for <code>disabled</code>
|
|
27
|
+
* @deprecated Since 14.0.0. Do not use this method to disable the button. It will be removed in the next release.
|
|
28
|
+
*/
|
|
29
|
+
changeDisabled(disabled: boolean): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the value of <code>width</code> property.
|
|
32
|
+
* Specifies that the button style width
|
|
33
|
+
* @param width The value to set for <code>width</code>
|
|
34
|
+
* @deprecated Since 14.0.0. Do not use this method to change the button width. It will be removed in the next release.
|
|
35
|
+
*/
|
|
36
|
+
changeWidth(width: number | string): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Sets the value of <code>display</code> property.
|
|
39
|
+
* Display just the label, the icons, or all. Label is used as tooltip and should be set in all cases.
|
|
40
|
+
* @param display The value to set for <code>display</code>
|
|
41
|
+
* @deprecated Since 14.0.0. Do not use this method to change the button display. It will be removed in the next release.
|
|
42
|
+
*/
|
|
43
|
+
changeDisplay(display: string): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Sets the value of <code>size</code> property.
|
|
46
|
+
* Size of button
|
|
47
|
+
* @param size The value to set for <code>size</code>
|
|
48
|
+
* @deprecated Since 14.0.0. Do not use this method to change the button size. It will be removed in the next release.
|
|
49
|
+
*/
|
|
50
|
+
changeSizeProperty(size: string): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Sets the value of <code>edge</code> property.
|
|
53
|
+
* Specifies whether the button is attached to an edge. For example setting edge='bottom' can be used to attach a button to the bottom of a card. The button is then stretched to 100% width, and borders adjusted.
|
|
54
|
+
* @param edge The value to set for <code>edge</code>
|
|
55
|
+
* @deprecated Since 14.0.0. Do not use this method to change the button edge. It will be removed in the next release.
|
|
56
|
+
*/
|
|
57
|
+
changeEdge(edge: string): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Sets the value of <code>chroming</code> property.
|
|
60
|
+
* Indicates in what states the button has variants in background and border.
|
|
61
|
+
* @param chroming The value to set for <code>chroming</code>
|
|
62
|
+
* @deprecated Since 14.0.0. Do not use this method to change the button chroming. It will be removed in the next release.
|
|
63
|
+
*/
|
|
64
|
+
changeChroming(chroming: string): Promise<void>;
|
|
65
|
+
}
|
|
@@ -1,96 +1,92 @@
|
|
|
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.ButtonWebElement = void 0;
|
|
19
4
|
var ButtonWebElementBase_1 = require("./ButtonWebElementBase");
|
|
5
|
+
var selenium_webdriver_1 = require("selenium-webdriver");
|
|
20
6
|
/**
|
|
21
7
|
* The component WebElement for [oj-c-button](../../../oj-c/docs/oj.Button.html).
|
|
22
8
|
* Do not instantiate this class directly, instead, use
|
|
23
9
|
* [findButton](../modules.html#findButton).
|
|
24
10
|
*/
|
|
25
|
-
|
|
26
|
-
__extends(ButtonWebElement, _super);
|
|
27
|
-
function ButtonWebElement() {
|
|
28
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
-
}
|
|
11
|
+
class ButtonWebElement extends ButtonWebElementBase_1.ButtonWebElementBase {
|
|
30
12
|
// Put overrides here
|
|
13
|
+
/**
|
|
14
|
+
* Perform a click on the button
|
|
15
|
+
*/
|
|
16
|
+
doAction() {
|
|
17
|
+
return this.click();
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Perform a click on the button
|
|
21
|
+
*/
|
|
22
|
+
async click() {
|
|
23
|
+
// Find the <button> element to click so that it can receive focus
|
|
24
|
+
const button = await this.findElement(selenium_webdriver_1.By.css('button'));
|
|
25
|
+
return button.click();
|
|
26
|
+
}
|
|
31
27
|
/**
|
|
32
28
|
* Sets the value of <code>label</code> property.
|
|
33
29
|
* Text to show in the button.
|
|
34
30
|
* @param label The value to set for <code>label</code>
|
|
35
31
|
* @deprecated Since 14.0.0. Do not use this method to change the button label. It will be removed in the next release.
|
|
36
32
|
*/
|
|
37
|
-
|
|
33
|
+
changeLabel(label) {
|
|
38
34
|
return this.setProperty('label', label);
|
|
39
|
-
}
|
|
35
|
+
}
|
|
40
36
|
/**
|
|
41
37
|
* Sets the value of <code>disabled</code> property.
|
|
42
38
|
* Specifies that the button element should be disabled.
|
|
43
39
|
* @param disabled The value to set for <code>disabled</code>
|
|
44
40
|
* @deprecated Since 14.0.0. Do not use this method to disable the button. It will be removed in the next release.
|
|
45
41
|
*/
|
|
46
|
-
|
|
42
|
+
changeDisabled(disabled) {
|
|
47
43
|
return this.setProperty('disabled', disabled);
|
|
48
|
-
}
|
|
44
|
+
}
|
|
49
45
|
/**
|
|
50
46
|
* Sets the value of <code>width</code> property.
|
|
51
47
|
* Specifies that the button style width
|
|
52
48
|
* @param width The value to set for <code>width</code>
|
|
53
49
|
* @deprecated Since 14.0.0. Do not use this method to change the button width. It will be removed in the next release.
|
|
54
50
|
*/
|
|
55
|
-
|
|
51
|
+
changeWidth(width) {
|
|
56
52
|
return this.setProperty('width', width);
|
|
57
|
-
}
|
|
53
|
+
}
|
|
58
54
|
/**
|
|
59
55
|
* Sets the value of <code>display</code> property.
|
|
60
56
|
* Display just the label, the icons, or all. Label is used as tooltip and should be set in all cases.
|
|
61
57
|
* @param display The value to set for <code>display</code>
|
|
62
58
|
* @deprecated Since 14.0.0. Do not use this method to change the button display. It will be removed in the next release.
|
|
63
59
|
*/
|
|
64
|
-
|
|
60
|
+
changeDisplay(display) {
|
|
65
61
|
return this.setProperty('display', display);
|
|
66
|
-
}
|
|
62
|
+
}
|
|
67
63
|
/**
|
|
68
64
|
* Sets the value of <code>size</code> property.
|
|
69
65
|
* Size of button
|
|
70
66
|
* @param size The value to set for <code>size</code>
|
|
71
67
|
* @deprecated Since 14.0.0. Do not use this method to change the button size. It will be removed in the next release.
|
|
72
68
|
*/
|
|
73
|
-
|
|
69
|
+
changeSizeProperty(size) {
|
|
74
70
|
return this.setProperty('size', size);
|
|
75
|
-
}
|
|
71
|
+
}
|
|
76
72
|
/**
|
|
77
73
|
* Sets the value of <code>edge</code> property.
|
|
78
74
|
* Specifies whether the button is attached to an edge. For example setting edge='bottom' can be used to attach a button to the bottom of a card. The button is then stretched to 100% width, and borders adjusted.
|
|
79
75
|
* @param edge The value to set for <code>edge</code>
|
|
80
76
|
* @deprecated Since 14.0.0. Do not use this method to change the button edge. It will be removed in the next release.
|
|
81
77
|
*/
|
|
82
|
-
|
|
78
|
+
changeEdge(edge) {
|
|
83
79
|
return this.setProperty('edge', edge);
|
|
84
|
-
}
|
|
80
|
+
}
|
|
85
81
|
/**
|
|
86
82
|
* Sets the value of <code>chroming</code> property.
|
|
87
83
|
* Indicates in what states the button has variants in background and border.
|
|
88
84
|
* @param chroming The value to set for <code>chroming</code>
|
|
89
85
|
* @deprecated Since 14.0.0. Do not use this method to change the button chroming. It will be removed in the next release.
|
|
90
86
|
*/
|
|
91
|
-
|
|
87
|
+
changeChroming(chroming) {
|
|
92
88
|
return this.setProperty('chroming', chroming);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
}(ButtonWebElementBase_1.ButtonWebElementBase));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
96
91
|
exports.ButtonWebElement = ButtonWebElement;
|
|
92
|
+
//# sourceMappingURL=ButtonWebElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonWebElement.js","sourceRoot":"","sources":["ButtonWebElement.ts"],"names":[],"mappings":";;;AAAA,+DAA8D;AAC9D,yDAAwC;AAExC;;;;GAIG;AACH,MAAa,gBAAiB,SAAQ,2CAAoB;IACxD,qBAAqB;IAErB;;OAEG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,KAAK;QACT,kEAAkE;QAClE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,uBAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC;QACxD,OAAO,MAAM,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;IAED;;;;;OAKG;IACI,WAAW,CAAC,KAAa;QAC9B,OAAO,IAAI,CAAC,WAAW,CAAS,OAAO,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,cAAc,CAAC,QAAiB;QACrC,OAAO,IAAI,CAAC,WAAW,CAAU,UAAU,EAAE,QAAQ,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACI,WAAW,CAAC,KAAsB;QACvC,OAAO,IAAI,CAAC,WAAW,CAAkB,OAAO,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAAC,OAAe;QAClC,OAAO,IAAI,CAAC,WAAW,CAAS,SAAS,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CAAC,IAAY;QACpC,OAAO,IAAI,CAAC,WAAW,CAAS,MAAM,EAAE,IAAI,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,UAAU,CAAC,IAAY;QAC5B,OAAO,IAAI,CAAC,WAAW,CAAS,MAAM,EAAE,IAAI,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,cAAc,CAAC,QAAgB;QACpC,OAAO,IAAI,CAAC,WAAW,CAAS,UAAU,EAAE,QAAQ,CAAC,CAAC;IACxD,CAAC;CACF;AAxFD,4CAwFC","sourcesContent":["import { ButtonWebElementBase } from './ButtonWebElementBase';\nimport { By } from 'selenium-webdriver';\n\n/**\n * The component WebElement for [oj-c-button](../../../oj-c/docs/oj.Button.html).\n * Do not instantiate this class directly, instead, use\n * [findButton](../modules.html#findButton).\n */\nexport class ButtonWebElement extends ButtonWebElementBase {\n // Put overrides here\n\n /**\n * Perform a click on the button\n */\n doAction() {\n return this.click();\n }\n\n /**\n * Perform a click on the button\n */\n async click() {\n // Find the <button> element to click so that it can receive focus\n const button = await this.findElement(By.css('button'));\n return button.click();\n }\n\n /**\n * Sets the value of <code>label</code> property.\n * Text to show in the button.\n * @param label The value to set for <code>label</code>\n * @deprecated Since 14.0.0. Do not use this method to change the button label. It will be removed in the next release.\n */\n public changeLabel(label: string): Promise<void> {\n return this.setProperty<string>('label', label);\n }\n\n /**\n * Sets the value of <code>disabled</code> property.\n * Specifies that the button element should be disabled.\n * @param disabled The value to set for <code>disabled</code>\n * @deprecated Since 14.0.0. Do not use this method to disable the button. It will be removed in the next release.\n */\n public changeDisabled(disabled: boolean): Promise<void> {\n return this.setProperty<boolean>('disabled', disabled);\n }\n\n /**\n * Sets the value of <code>width</code> property.\n * Specifies that the button style width\n * @param width The value to set for <code>width</code>\n * @deprecated Since 14.0.0. Do not use this method to change the button width. It will be removed in the next release.\n */\n public changeWidth(width: number | string): Promise<void> {\n return this.setProperty<number | string>('width', width);\n }\n\n /**\n * Sets the value of <code>display</code> property.\n * Display just the label, the icons, or all. Label is used as tooltip and should be set in all cases.\n * @param display The value to set for <code>display</code>\n * @deprecated Since 14.0.0. Do not use this method to change the button display. It will be removed in the next release.\n */\n public changeDisplay(display: string): Promise<void> {\n return this.setProperty<string>('display', display);\n }\n\n /**\n * Sets the value of <code>size</code> property.\n * Size of button\n * @param size The value to set for <code>size</code>\n * @deprecated Since 14.0.0. Do not use this method to change the button size. It will be removed in the next release.\n */\n public changeSizeProperty(size: string): Promise<void> {\n return this.setProperty<string>('size', size);\n }\n\n /**\n * Sets the value of <code>edge</code> property.\n * Specifies whether the button is attached to an edge. For example setting edge='bottom' can be used to attach a button to the bottom of a card. The button is then stretched to 100% width, and borders adjusted.\n * @param edge The value to set for <code>edge</code>\n * @deprecated Since 14.0.0. Do not use this method to change the button edge. It will be removed in the next release.\n */\n public changeEdge(edge: string): Promise<void> {\n return this.setProperty<string>('edge', edge);\n }\n\n /**\n * Sets the value of <code>chroming</code> property.\n * Indicates in what states the button has variants in background and border.\n * @param chroming The value to set for <code>chroming</code>\n * @deprecated Since 14.0.0. Do not use this method to change the button chroming. It will be removed in the next release.\n */\n public changeChroming(chroming: string): Promise<void> {\n return this.setProperty<string>('chroming', chroming);\n }\n}\n"]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';
|
|
2
|
+
/**
|
|
3
|
+
* This is the base class for oj-c-button 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, ButtonWebElement.ts.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ButtonWebElementBase extends OjWebElement {
|
|
9
|
+
/**
|
|
10
|
+
* Gets the value of <code>label</code> property.
|
|
11
|
+
* Text to show in the button.
|
|
12
|
+
* @return The value of <code>label</code> property.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
getLabel(): Promise<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Gets the value of <code>tooltip</code> property.
|
|
18
|
+
* Text to show in the tooltip. This overrides the default tooltip that renders the label when in icon mode.
|
|
19
|
+
* @return The value of <code>tooltip</code> property.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
getTooltip(): Promise<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets the value of <code>disabled</code> property.
|
|
25
|
+
* Specifies that the button element should be disabled.
|
|
26
|
+
* @return The value of <code>disabled</code> property.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
getDisabled(): Promise<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* Gets the value of <code>width</code> property.
|
|
32
|
+
* Specifies that the button style width
|
|
33
|
+
* @return The value of <code>width</code> property.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
getWidth(): Promise<number | string>;
|
|
37
|
+
/**
|
|
38
|
+
* Gets the value of <code>display</code> property.
|
|
39
|
+
* Display just the label, the icons, or all. Label is used as tooltip and should be set in all cases.
|
|
40
|
+
* @return The value of <code>display</code> property.
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
getDisplay(): Promise<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Gets the value of <code>size</code> property.
|
|
46
|
+
* Size of button
|
|
47
|
+
* @return The value of <code>size</code> property.
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
getSizeProperty(): Promise<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Gets the value of <code>edge</code> property.
|
|
53
|
+
* Specifies whether the button is attached to an edge. For example setting edge='bottom' can be used to attach a button to the bottom of a card. The button is then stretched to 100% width, and borders adjusted.
|
|
54
|
+
* @return The value of <code>edge</code> property.
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
getEdge(): Promise<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the value of <code>chroming</code> property.
|
|
60
|
+
* Indicates in what states the button has variants in background and border.
|
|
61
|
+
* @return The value of <code>chroming</code> property.
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
getChroming(): Promise<string>;
|
|
65
|
+
}
|
|
@@ -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.ButtonWebElementBase = void 0;
|
|
19
4
|
var elements_1 = require("@oracle/oraclejet-webdriver/elements");
|
|
@@ -23,83 +8,79 @@ var elements_1 = require("@oracle/oraclejet-webdriver/elements");
|
|
|
23
8
|
* during the next generation.
|
|
24
9
|
* Put overrides into the WebElements's subclass, ButtonWebElement.ts.
|
|
25
10
|
*/
|
|
26
|
-
|
|
27
|
-
__extends(ButtonWebElementBase, _super);
|
|
28
|
-
function ButtonWebElementBase() {
|
|
29
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
-
}
|
|
11
|
+
class ButtonWebElementBase extends elements_1.OjWebElement {
|
|
31
12
|
/**
|
|
32
13
|
* Gets the value of <code>label</code> property.
|
|
33
14
|
* Text to show in the button.
|
|
34
15
|
* @return The value of <code>label</code> property.
|
|
35
16
|
*
|
|
36
17
|
*/
|
|
37
|
-
|
|
18
|
+
getLabel() {
|
|
38
19
|
return this.getProperty('label');
|
|
39
|
-
}
|
|
20
|
+
}
|
|
40
21
|
/**
|
|
41
22
|
* Gets the value of <code>tooltip</code> property.
|
|
42
23
|
* Text to show in the tooltip. This overrides the default tooltip that renders the label when in icon mode.
|
|
43
24
|
* @return The value of <code>tooltip</code> property.
|
|
44
25
|
*
|
|
45
26
|
*/
|
|
46
|
-
|
|
27
|
+
getTooltip() {
|
|
47
28
|
return this.getProperty('tooltip');
|
|
48
|
-
}
|
|
29
|
+
}
|
|
49
30
|
/**
|
|
50
31
|
* Gets the value of <code>disabled</code> property.
|
|
51
32
|
* Specifies that the button element should be disabled.
|
|
52
33
|
* @return The value of <code>disabled</code> property.
|
|
53
34
|
*
|
|
54
35
|
*/
|
|
55
|
-
|
|
36
|
+
getDisabled() {
|
|
56
37
|
return this.getProperty('disabled');
|
|
57
|
-
}
|
|
38
|
+
}
|
|
58
39
|
/**
|
|
59
40
|
* Gets the value of <code>width</code> property.
|
|
60
41
|
* Specifies that the button style width
|
|
61
42
|
* @return The value of <code>width</code> property.
|
|
62
43
|
*
|
|
63
44
|
*/
|
|
64
|
-
|
|
45
|
+
getWidth() {
|
|
65
46
|
return this.getProperty('width');
|
|
66
|
-
}
|
|
47
|
+
}
|
|
67
48
|
/**
|
|
68
49
|
* Gets the value of <code>display</code> property.
|
|
69
50
|
* Display just the label, the icons, or all. Label is used as tooltip and should be set in all cases.
|
|
70
51
|
* @return The value of <code>display</code> property.
|
|
71
52
|
*
|
|
72
53
|
*/
|
|
73
|
-
|
|
54
|
+
getDisplay() {
|
|
74
55
|
return this.getProperty('display');
|
|
75
|
-
}
|
|
56
|
+
}
|
|
76
57
|
/**
|
|
77
58
|
* Gets the value of <code>size</code> property.
|
|
78
59
|
* Size of button
|
|
79
60
|
* @return The value of <code>size</code> property.
|
|
80
61
|
*
|
|
81
62
|
*/
|
|
82
|
-
|
|
63
|
+
getSizeProperty() {
|
|
83
64
|
return this.getProperty('size');
|
|
84
|
-
}
|
|
65
|
+
}
|
|
85
66
|
/**
|
|
86
67
|
* Gets the value of <code>edge</code> property.
|
|
87
68
|
* Specifies whether the button is attached to an edge. For example setting edge='bottom' can be used to attach a button to the bottom of a card. The button is then stretched to 100% width, and borders adjusted.
|
|
88
69
|
* @return The value of <code>edge</code> property.
|
|
89
70
|
*
|
|
90
71
|
*/
|
|
91
|
-
|
|
72
|
+
getEdge() {
|
|
92
73
|
return this.getProperty('edge');
|
|
93
|
-
}
|
|
74
|
+
}
|
|
94
75
|
/**
|
|
95
76
|
* Gets the value of <code>chroming</code> property.
|
|
96
77
|
* Indicates in what states the button has variants in background and border.
|
|
97
78
|
* @return The value of <code>chroming</code> property.
|
|
98
79
|
*
|
|
99
80
|
*/
|
|
100
|
-
|
|
81
|
+
getChroming() {
|
|
101
82
|
return this.getProperty('chroming');
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
}(elements_1.OjWebElement));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
105
85
|
exports.ButtonWebElementBase = ButtonWebElementBase;
|
|
86
|
+
//# sourceMappingURL=ButtonWebElementBase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonWebElementBase.js","sourceRoot":"","sources":["ButtonWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,oBAAqB,SAAQ,uBAAY;IACpD;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAS,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;OAKG;IACI,UAAU;QACf,OAAO,IAAI,CAAC,WAAW,CAAS,SAAS,CAAC,CAAC;IAC7C,CAAC;IAED;;;;;OAKG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,WAAW,CAAU,UAAU,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAkB,OAAO,CAAC,CAAC;IACpD,CAAC;IAED;;;;;OAKG;IACI,UAAU;QACf,OAAO,IAAI,CAAC,WAAW,CAAS,SAAS,CAAC,CAAC;IAC7C,CAAC;IAED;;;;;OAKG;IACI,eAAe;QACpB,OAAO,IAAI,CAAC,WAAW,CAAS,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACI,OAAO;QACZ,OAAO,IAAI,CAAC,WAAW,CAAS,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,WAAW,CAAS,UAAU,CAAC,CAAC;IAC9C,CAAC;CACF;AAhFD,oDAgFC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-button 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, ButtonWebElement.ts.\n */\nexport class ButtonWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>label</code> property.\n * Text to show in the button.\n * @return The value of <code>label</code> property.\n *\n */\n public getLabel(): Promise<string> {\n return this.getProperty<string>('label');\n }\n\n /**\n * Gets the value of <code>tooltip</code> property.\n * Text to show in the tooltip. This overrides the default tooltip that renders the label when in icon mode.\n * @return The value of <code>tooltip</code> property.\n *\n */\n public getTooltip(): Promise<string> {\n return this.getProperty<string>('tooltip');\n }\n\n /**\n * Gets the value of <code>disabled</code> property.\n * Specifies that the button element should be disabled.\n * @return The value of <code>disabled</code> property.\n *\n */\n public getDisabled(): Promise<boolean> {\n return this.getProperty<boolean>('disabled');\n }\n\n /**\n * Gets the value of <code>width</code> property.\n * Specifies that the button style width\n * @return The value of <code>width</code> property.\n *\n */\n public getWidth(): Promise<number | string> {\n return this.getProperty<number | string>('width');\n }\n\n /**\n * Gets the value of <code>display</code> property.\n * Display just the label, the icons, or all. Label is used as tooltip and should be set in all cases.\n * @return The value of <code>display</code> property.\n *\n */\n public getDisplay(): Promise<string> {\n return this.getProperty<string>('display');\n }\n\n /**\n * Gets the value of <code>size</code> property.\n * Size of button\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>edge</code> property.\n * Specifies whether the button is attached to an edge. For example setting edge='bottom' can be used to attach a button to the bottom of a card. The button is then stretched to 100% width, and borders adjusted.\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 /**\n * Gets the value of <code>chroming</code> property.\n * Indicates in what states the button has variants in background and border.\n * @return The value of <code>chroming</code> property.\n *\n */\n public getChroming(): Promise<string> {\n return this.getProperty<string>('chroming');\n }\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { By } from 'selenium-webdriver';
|
|
2
|
+
import { DriverLike } from '@oracle/oraclejet-webdriver';
|
|
3
|
+
import { ButtonWebElement } from './ButtonWebElement';
|
|
4
|
+
export { ButtonWebElement };
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve an instance of [[ButtonWebElement]].
|
|
7
|
+
* @example
|
|
8
|
+
* ```javascript
|
|
9
|
+
* import { findButton } from '@oracle/oraclejet-core-pack/webdriver';
|
|
10
|
+
* const el = await findButton(driver, By.id('my-oj-c-button'));
|
|
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 findButton(driver: DriverLike, by: By): Promise<ButtonWebElement>;
|
|
@@ -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.findButton = exports.ButtonWebElement = void 0;
|
|
40
4
|
var oraclejet_webdriver_1 = require("@oracle/oraclejet-webdriver");
|
|
@@ -52,23 +16,15 @@ Object.defineProperty(exports, "ButtonWebElement", { enumerable: true, get: func
|
|
|
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 findButton(driver, by) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (!!(webEl instanceof ButtonWebElement_1.ButtonWebElement)) return [3 /*break*/, 3];
|
|
64
|
-
return [4 /*yield*/, webEl.getTagName()];
|
|
65
|
-
case 2:
|
|
66
|
-
tagName = _a.sent();
|
|
67
|
-
throw Error("findButton(".concat(by, ") created ").concat(webEl.constructor.name, " for <").concat(tagName, ">, but expected ").concat(ButtonWebElement_1.ButtonWebElement.name));
|
|
68
|
-
case 3: return [2 /*return*/, webEl];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
19
|
+
async function findButton(driver, by) {
|
|
20
|
+
const webEl = await driver.findElement(by);
|
|
21
|
+
// Check that the element is of type ButtonWebElement
|
|
22
|
+
if (!(webEl instanceof ButtonWebElement_1.ButtonWebElement)) {
|
|
23
|
+
const tagName = await webEl.getTagName();
|
|
24
|
+
throw Error(`findButton(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${ButtonWebElement_1.ButtonWebElement.name}`);
|
|
25
|
+
}
|
|
26
|
+
return webEl;
|
|
72
27
|
}
|
|
73
28
|
exports.findButton = findButton;
|
|
74
29
|
(0, oraclejet_webdriver_1.register)('oj-c-button', ButtonWebElement_1.ButtonWebElement);
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,mEAAmE;AACnE,uDAAsD;AAC7C,iGADA,mCAAgB,OACA;AAEzB;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,UAAU,CAAC,MAAkB,EAAE,EAAM;IACzD,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC3C,qDAAqD;IACrD,IAAI,CAAC,CAAC,KAAK,YAAY,mCAAgB,CAAC,EAAE;QACxC,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC;QACzC,MAAM,KAAK,CACT,cAAc,EAAE,aAAa,KAAK,CAAC,WAAW,CAAC,IAAI,SAAS,OAAO,mBAAmB,mCAAgB,CAAC,IAAI,EAAE,CAC9G,CAAC;KACH;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAVD,gCAUC;AAED,IAAA,8BAAQ,EAAC,aAAa,EAAE,mCAAgB,CAAC,CAAC","sourcesContent":["import { By } from 'selenium-webdriver';\nimport { DriverLike, register } from '@oracle/oraclejet-webdriver';\nimport { ButtonWebElement } from './ButtonWebElement';\nexport { ButtonWebElement };\n\n/**\n * Retrieve an instance of [[ButtonWebElement]].\n * @example\n * ```javascript\n * import { findButton } from '@oracle/oraclejet-core-pack/webdriver';\n * const el = await findButton(driver, By.id('my-oj-c-button'));\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 findButton(driver: DriverLike, by: By): Promise<ButtonWebElement> {\n const webEl = await driver.findElement(by);\n // Check that the element is of type ButtonWebElement\n if (!(webEl instanceof ButtonWebElement)) {\n const tagName = await webEl.getTagName();\n throw Error(\n `findButton(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${ButtonWebElement.name}`\n );\n }\n return webEl;\n}\n\nregister('oj-c-button', ButtonWebElement);\n"]}
|