@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,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.findSelectSingle = exports.SelectSingleWebElement = void 0;
|
|
40
4
|
var oraclejet_webdriver_1 = require("@oracle/oraclejet-webdriver");
|
|
@@ -52,23 +16,15 @@ Object.defineProperty(exports, "SelectSingleWebElement", { 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 findSelectSingle(driver, by) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (!!(webEl instanceof SelectSingleWebElement_1.SelectSingleWebElement)) return [3 /*break*/, 3];
|
|
64
|
-
return [4 /*yield*/, webEl.getTagName()];
|
|
65
|
-
case 2:
|
|
66
|
-
tagName = _a.sent();
|
|
67
|
-
throw Error("findSelectSingle(".concat(by, ") created ").concat(webEl.constructor.name, " for <").concat(tagName, ">, but expected ").concat(SelectSingleWebElement_1.SelectSingleWebElement.name));
|
|
68
|
-
case 3: return [2 /*return*/, webEl];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
19
|
+
async function findSelectSingle(driver, by) {
|
|
20
|
+
const webEl = await driver.findElement(by);
|
|
21
|
+
// Check that the element is of type SelectSingleWebElement
|
|
22
|
+
if (!(webEl instanceof SelectSingleWebElement_1.SelectSingleWebElement)) {
|
|
23
|
+
const tagName = await webEl.getTagName();
|
|
24
|
+
throw Error(`findSelectSingle(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${SelectSingleWebElement_1.SelectSingleWebElement.name}`);
|
|
25
|
+
}
|
|
26
|
+
return webEl;
|
|
72
27
|
}
|
|
73
28
|
exports.findSelectSingle = findSelectSingle;
|
|
74
29
|
(0, oraclejet_webdriver_1.register)('oj-c-select-single', SelectSingleWebElement_1.SelectSingleWebElement);
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,mEAAmE;AACnE,mEAAkE;AACzD,uGADA,+CAAsB,OACA;AAE/B;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,gBAAgB,CACpC,MAAkB,EAClB,EAAM;IAEN,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC3C,2DAA2D;IAC3D,IAAI,CAAC,CAAC,KAAK,YAAY,+CAAsB,CAAC,EAAE;QAC9C,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC;QACzC,MAAM,KAAK,CACT,oBAAoB,EAAE,aAAa,KAAK,CAAC,WAAW,CAAC,IAAI,SAAS,OAAO,mBAAmB,+CAAsB,CAAC,IAAI,EAAE,CAC1H,CAAC;KACH;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAbD,4CAaC;AAED,IAAA,8BAAQ,EAAC,oBAAoB,EAAE,+CAAsB,CAAC,CAAC","sourcesContent":["import { By } from 'selenium-webdriver';\nimport { DriverLike, register } from '@oracle/oraclejet-webdriver';\nimport { SelectSingleWebElement } from './SelectSingleWebElement';\nexport { SelectSingleWebElement };\n\n/**\n * Retrieve an instance of [[SelectSingleWebElement]].\n * @example\n * ```javascript\n * import { findSelectSingle } from '@oracle/oraclejet-core-pack/webdriver';\n * const el = await findSelectSingle(driver, By.id('my-oj-c-select-single'));\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 findSelectSingle(\n driver: DriverLike,\n by: By\n): Promise<SelectSingleWebElement> {\n const webEl = await driver.findElement(by);\n // Check that the element is of type SelectSingleWebElement\n if (!(webEl instanceof SelectSingleWebElement)) {\n const tagName = await webEl.getTagName();\n throw Error(\n `findSelectSingle(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${SelectSingleWebElement.name}`\n );\n }\n return webEl;\n}\n\nregister('oj-c-select-single', SelectSingleWebElement);\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SelectorWebElementBase } from './SelectorWebElementBase';
|
|
2
|
+
/**
|
|
3
|
+
* The component WebElement for [oj-c-selector](../../../oj-c/docs/oj.Selector.html).
|
|
4
|
+
* Do not instantiate this class directly, instead, use
|
|
5
|
+
* [findSelector](../modules.html#findSelector).
|
|
6
|
+
*/
|
|
7
|
+
export declare class SelectorWebElement extends SelectorWebElementBase {
|
|
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.SelectorWebElement = void 0;
|
|
19
4
|
var SelectorWebElementBase_1 = require("./SelectorWebElementBase");
|
|
@@ -22,11 +7,7 @@ var SelectorWebElementBase_1 = require("./SelectorWebElementBase");
|
|
|
22
7
|
* Do not instantiate this class directly, instead, use
|
|
23
8
|
* [findSelector](../modules.html#findSelector).
|
|
24
9
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function SelectorWebElement() {
|
|
28
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
-
}
|
|
30
|
-
return SelectorWebElement;
|
|
31
|
-
}(SelectorWebElementBase_1.SelectorWebElementBase));
|
|
10
|
+
class SelectorWebElement extends SelectorWebElementBase_1.SelectorWebElementBase {
|
|
11
|
+
}
|
|
32
12
|
exports.SelectorWebElement = SelectorWebElement;
|
|
13
|
+
//# sourceMappingURL=SelectorWebElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectorWebElement.js","sourceRoot":"","sources":["SelectorWebElement.ts"],"names":[],"mappings":";;;AAAA,mEAAkE;AAElE;;;;GAIG;AACH,MAAa,kBAAmB,SAAQ,+CAAsB;CAE7D;AAFD,gDAEC","sourcesContent":["import { SelectorWebElementBase } from './SelectorWebElementBase';\n\n/**\n * The component WebElement for [oj-c-selector](../../../oj-c/docs/oj.Selector.html).\n * Do not instantiate this class directly, instead, use\n * [findSelector](../modules.html#findSelector).\n */\nexport class SelectorWebElement extends SelectorWebElementBase {\n // Put overrides here\n}\n"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';
|
|
2
|
+
/**
|
|
3
|
+
* This is the base class for oj-c-selector 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, SelectorWebElement.ts.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SelectorWebElementBase extends OjWebElement {
|
|
9
|
+
/**
|
|
10
|
+
* Gets the value of <code>rowKey</code> property.
|
|
11
|
+
* Specifies the row key of each selector.
|
|
12
|
+
* @return The value of <code>rowKey</code> property.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
getRowKey(): Promise<any>;
|
|
16
|
+
/**
|
|
17
|
+
* Sets the value of <code>selectedKeys</code> property.
|
|
18
|
+
* Specifies the selectedKeys, should be hooked into the collection component.
|
|
19
|
+
* @param selectedKeys The value to set for <code>selectedKeys</code>
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
changeSelectedKeys(selectedKeys: object): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets the value of <code>selectedKeys</code> property.
|
|
25
|
+
* Specifies the selectedKeys, should be hooked into the collection component.
|
|
26
|
+
* @return The value of <code>selectedKeys</code> property.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
getSelectedKeys(): Promise<object>;
|
|
30
|
+
/**
|
|
31
|
+
* Gets the value of <code>indeterminate</code> property.
|
|
32
|
+
* Visual only state to indicate partial selection
|
|
33
|
+
* @return The value of <code>indeterminate</code> property.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
getIndeterminate(): Promise<boolean>;
|
|
37
|
+
/**
|
|
38
|
+
* Gets the value of <code>selectionMode</code> property.
|
|
39
|
+
* Specifies the selection mode.
|
|
40
|
+
* @return The value of <code>selectionMode</code> property.
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
getSelectionMode(): Promise<string>;
|
|
44
|
+
}
|
|
@@ -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.SelectorWebElementBase = void 0;
|
|
19
4
|
var elements_1 = require("@oracle/oraclejet-webdriver/elements");
|
|
@@ -23,56 +8,52 @@ var elements_1 = require("@oracle/oraclejet-webdriver/elements");
|
|
|
23
8
|
* during the next generation.
|
|
24
9
|
* Put overrides into the WebElements's subclass, SelectorWebElement.ts.
|
|
25
10
|
*/
|
|
26
|
-
|
|
27
|
-
__extends(SelectorWebElementBase, _super);
|
|
28
|
-
function SelectorWebElementBase() {
|
|
29
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
-
}
|
|
11
|
+
class SelectorWebElementBase extends elements_1.OjWebElement {
|
|
31
12
|
/**
|
|
32
13
|
* Gets the value of <code>rowKey</code> property.
|
|
33
14
|
* Specifies the row key of each selector.
|
|
34
15
|
* @return The value of <code>rowKey</code> property.
|
|
35
16
|
*
|
|
36
17
|
*/
|
|
37
|
-
|
|
18
|
+
getRowKey() {
|
|
38
19
|
return this.getProperty('rowKey');
|
|
39
|
-
}
|
|
20
|
+
}
|
|
40
21
|
/**
|
|
41
22
|
* Sets the value of <code>selectedKeys</code> property.
|
|
42
23
|
* Specifies the selectedKeys, should be hooked into the collection component.
|
|
43
24
|
* @param selectedKeys The value to set for <code>selectedKeys</code>
|
|
44
25
|
*
|
|
45
26
|
*/
|
|
46
|
-
|
|
27
|
+
changeSelectedKeys(selectedKeys) {
|
|
47
28
|
return this.setProperty('selectedKeys', selectedKeys);
|
|
48
|
-
}
|
|
29
|
+
}
|
|
49
30
|
/**
|
|
50
31
|
* Gets the value of <code>selectedKeys</code> property.
|
|
51
32
|
* Specifies the selectedKeys, should be hooked into the collection component.
|
|
52
33
|
* @return The value of <code>selectedKeys</code> property.
|
|
53
34
|
*
|
|
54
35
|
*/
|
|
55
|
-
|
|
36
|
+
getSelectedKeys() {
|
|
56
37
|
return this.getProperty('selectedKeys');
|
|
57
|
-
}
|
|
38
|
+
}
|
|
58
39
|
/**
|
|
59
40
|
* Gets the value of <code>indeterminate</code> property.
|
|
60
41
|
* Visual only state to indicate partial selection
|
|
61
42
|
* @return The value of <code>indeterminate</code> property.
|
|
62
43
|
*
|
|
63
44
|
*/
|
|
64
|
-
|
|
45
|
+
getIndeterminate() {
|
|
65
46
|
return this.getProperty('indeterminate');
|
|
66
|
-
}
|
|
47
|
+
}
|
|
67
48
|
/**
|
|
68
49
|
* Gets the value of <code>selectionMode</code> property.
|
|
69
50
|
* Specifies the selection mode.
|
|
70
51
|
* @return The value of <code>selectionMode</code> property.
|
|
71
52
|
*
|
|
72
53
|
*/
|
|
73
|
-
|
|
54
|
+
getSelectionMode() {
|
|
74
55
|
return this.getProperty('selectionMode');
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
}(elements_1.OjWebElement));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
78
58
|
exports.SelectorWebElementBase = SelectorWebElementBase;
|
|
59
|
+
//# sourceMappingURL=SelectorWebElementBase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectorWebElementBase.js","sourceRoot":"","sources":["SelectorWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,sBAAuB,SAAQ,uBAAY;IACtD;;;;;OAKG;IACI,SAAS;QACd,OAAO,IAAI,CAAC,WAAW,CAAM,QAAQ,CAAC,CAAC;IACzC,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CAAC,YAAoB;QAC5C,OAAO,IAAI,CAAC,WAAW,CAAS,cAAc,EAAE,YAAY,CAAC,CAAC;IAChE,CAAC;IAED;;;;;OAKG;IACI,eAAe;QACpB,OAAO,IAAI,CAAC,WAAW,CAAS,cAAc,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAU,eAAe,CAAC,CAAC;IACpD,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAS,eAAe,CAAC,CAAC;IACnD,CAAC;CACF;AAlDD,wDAkDC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-selector 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, SelectorWebElement.ts.\n */\nexport class SelectorWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>rowKey</code> property.\n * Specifies the row key of each selector.\n * @return The value of <code>rowKey</code> property.\n *\n */\n public getRowKey(): Promise<any> {\n return this.getProperty<any>('rowKey');\n }\n\n /**\n * Sets the value of <code>selectedKeys</code> property.\n * Specifies the selectedKeys, should be hooked into the collection component.\n * @param selectedKeys The value to set for <code>selectedKeys</code>\n *\n */\n public changeSelectedKeys(selectedKeys: object): Promise<void> {\n return this.setProperty<object>('selectedKeys', selectedKeys);\n }\n\n /**\n * Gets the value of <code>selectedKeys</code> property.\n * Specifies the selectedKeys, should be hooked into the collection component.\n * @return The value of <code>selectedKeys</code> property.\n *\n */\n public getSelectedKeys(): Promise<object> {\n return this.getProperty<object>('selectedKeys');\n }\n\n /**\n * Gets the value of <code>indeterminate</code> property.\n * Visual only state to indicate partial selection\n * @return The value of <code>indeterminate</code> property.\n *\n */\n public getIndeterminate(): Promise<boolean> {\n return this.getProperty<boolean>('indeterminate');\n }\n\n /**\n * Gets the value of <code>selectionMode</code> property.\n * Specifies the selection mode.\n * @return The value of <code>selectionMode</code> property.\n *\n */\n public getSelectionMode(): Promise<string> {\n return this.getProperty<string>('selectionMode');\n }\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { By } from 'selenium-webdriver';
|
|
2
|
+
import { DriverLike } from '@oracle/oraclejet-webdriver';
|
|
3
|
+
import { SelectorWebElement } from './SelectorWebElement';
|
|
4
|
+
export { SelectorWebElement };
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve an instance of [[SelectorWebElement]].
|
|
7
|
+
* @example
|
|
8
|
+
* ```javascript
|
|
9
|
+
* import { findSelector } from '@oracle/oraclejet-core-pack/webdriver';
|
|
10
|
+
* const el = await findSelector(driver, By.id('my-oj-c-selector'));
|
|
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 findSelector(driver: DriverLike, by: By): Promise<SelectorWebElement>;
|
|
@@ -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.findSelector = exports.SelectorWebElement = void 0;
|
|
40
4
|
var oraclejet_webdriver_1 = require("@oracle/oraclejet-webdriver");
|
|
@@ -52,23 +16,15 @@ Object.defineProperty(exports, "SelectorWebElement", { enumerable: true, get: fu
|
|
|
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 findSelector(driver, by) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (!!(webEl instanceof SelectorWebElement_1.SelectorWebElement)) return [3 /*break*/, 3];
|
|
64
|
-
return [4 /*yield*/, webEl.getTagName()];
|
|
65
|
-
case 2:
|
|
66
|
-
tagName = _a.sent();
|
|
67
|
-
throw Error("findSelector(".concat(by, ") created ").concat(webEl.constructor.name, " for <").concat(tagName, ">, but expected ").concat(SelectorWebElement_1.SelectorWebElement.name));
|
|
68
|
-
case 3: return [2 /*return*/, webEl];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
19
|
+
async function findSelector(driver, by) {
|
|
20
|
+
const webEl = await driver.findElement(by);
|
|
21
|
+
// Check that the element is of type SelectorWebElement
|
|
22
|
+
if (!(webEl instanceof SelectorWebElement_1.SelectorWebElement)) {
|
|
23
|
+
const tagName = await webEl.getTagName();
|
|
24
|
+
throw Error(`findSelector(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${SelectorWebElement_1.SelectorWebElement.name}`);
|
|
25
|
+
}
|
|
26
|
+
return webEl;
|
|
72
27
|
}
|
|
73
28
|
exports.findSelector = findSelector;
|
|
74
29
|
(0, oraclejet_webdriver_1.register)('oj-c-selector', SelectorWebElement_1.SelectorWebElement);
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,mEAAmE;AACnE,2DAA0D;AACjD,mGADA,uCAAkB,OACA;AAE3B;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,YAAY,CAAC,MAAkB,EAAE,EAAM;IAC3D,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC3C,uDAAuD;IACvD,IAAI,CAAC,CAAC,KAAK,YAAY,uCAAkB,CAAC,EAAE;QAC1C,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC;QACzC,MAAM,KAAK,CACT,gBAAgB,EAAE,aAAa,KAAK,CAAC,WAAW,CAAC,IAAI,SAAS,OAAO,mBAAmB,uCAAkB,CAAC,IAAI,EAAE,CAClH,CAAC;KACH;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAVD,oCAUC;AAED,IAAA,8BAAQ,EAAC,eAAe,EAAE,uCAAkB,CAAC,CAAC","sourcesContent":["import { By } from 'selenium-webdriver';\nimport { DriverLike, register } from '@oracle/oraclejet-webdriver';\nimport { SelectorWebElement } from './SelectorWebElement';\nexport { SelectorWebElement };\n\n/**\n * Retrieve an instance of [[SelectorWebElement]].\n * @example\n * ```javascript\n * import { findSelector } from '@oracle/oraclejet-core-pack/webdriver';\n * const el = await findSelector(driver, By.id('my-oj-c-selector'));\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 findSelector(driver: DriverLike, by: By): Promise<SelectorWebElement> {\n const webEl = await driver.findElement(by);\n // Check that the element is of type SelectorWebElement\n if (!(webEl instanceof SelectorWebElement)) {\n const tagName = await webEl.getTagName();\n throw Error(\n `findSelector(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${SelectorWebElement.name}`\n );\n }\n return webEl;\n}\n\nregister('oj-c-selector', SelectorWebElement);\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SelectorAllWebElementBase } from './SelectorAllWebElementBase';
|
|
2
|
+
/**
|
|
3
|
+
* The component WebElement for [oj-c-selector-all](../../../oj-c/docs/oj.SelectorAll.html).
|
|
4
|
+
* Do not instantiate this class directly, instead, use
|
|
5
|
+
* [findSelectorAll](../modules.html#findSelectorAll).
|
|
6
|
+
*/
|
|
7
|
+
export declare class SelectorAllWebElement extends SelectorAllWebElementBase {
|
|
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.SelectorAllWebElement = void 0;
|
|
19
4
|
var SelectorAllWebElementBase_1 = require("./SelectorAllWebElementBase");
|
|
@@ -22,11 +7,7 @@ var SelectorAllWebElementBase_1 = require("./SelectorAllWebElementBase");
|
|
|
22
7
|
* Do not instantiate this class directly, instead, use
|
|
23
8
|
* [findSelectorAll](../modules.html#findSelectorAll).
|
|
24
9
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function SelectorAllWebElement() {
|
|
28
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
-
}
|
|
30
|
-
return SelectorAllWebElement;
|
|
31
|
-
}(SelectorAllWebElementBase_1.SelectorAllWebElementBase));
|
|
10
|
+
class SelectorAllWebElement extends SelectorAllWebElementBase_1.SelectorAllWebElementBase {
|
|
11
|
+
}
|
|
32
12
|
exports.SelectorAllWebElement = SelectorAllWebElement;
|
|
13
|
+
//# sourceMappingURL=SelectorAllWebElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectorAllWebElement.js","sourceRoot":"","sources":["SelectorAllWebElement.ts"],"names":[],"mappings":";;;AAAA,yEAAwE;AAExE;;;;GAIG;AACH,MAAa,qBAAsB,SAAQ,qDAAyB;CAEnE;AAFD,sDAEC","sourcesContent":["import { SelectorAllWebElementBase } from './SelectorAllWebElementBase';\n\n/**\n * The component WebElement for [oj-c-selector-all](../../../oj-c/docs/oj.SelectorAll.html).\n * Do not instantiate this class directly, instead, use\n * [findSelectorAll](../modules.html#findSelectorAll).\n */\nexport class SelectorAllWebElement extends SelectorAllWebElementBase {\n // Put overrides here\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';
|
|
2
|
+
/**
|
|
3
|
+
* This is the base class for oj-c-selector-all 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, SelectorAllWebElement.ts.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SelectorAllWebElementBase extends OjWebElement {
|
|
9
|
+
/**
|
|
10
|
+
* Sets the value of <code>selectedKeys</code> property.
|
|
11
|
+
* Specifies the selectedKeys, should be hooked into the collection component.
|
|
12
|
+
* @param selectedKeys The value to set for <code>selectedKeys</code>
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
changeSelectedKeys(selectedKeys: object): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Gets the value of <code>selectedKeys</code> property.
|
|
18
|
+
* Specifies the selectedKeys, should be hooked into the collection component.
|
|
19
|
+
* @return The value of <code>selectedKeys</code> property.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
getSelectedKeys(): Promise<object>;
|
|
23
|
+
}
|
|
@@ -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.SelectorAllWebElementBase = void 0;
|
|
19
4
|
var elements_1 = require("@oracle/oraclejet-webdriver/elements");
|
|
@@ -23,29 +8,25 @@ var elements_1 = require("@oracle/oraclejet-webdriver/elements");
|
|
|
23
8
|
* during the next generation.
|
|
24
9
|
* Put overrides into the WebElements's subclass, SelectorAllWebElement.ts.
|
|
25
10
|
*/
|
|
26
|
-
|
|
27
|
-
__extends(SelectorAllWebElementBase, _super);
|
|
28
|
-
function SelectorAllWebElementBase() {
|
|
29
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
-
}
|
|
11
|
+
class SelectorAllWebElementBase extends elements_1.OjWebElement {
|
|
31
12
|
/**
|
|
32
13
|
* Sets the value of <code>selectedKeys</code> property.
|
|
33
14
|
* Specifies the selectedKeys, should be hooked into the collection component.
|
|
34
15
|
* @param selectedKeys The value to set for <code>selectedKeys</code>
|
|
35
16
|
*
|
|
36
17
|
*/
|
|
37
|
-
|
|
18
|
+
changeSelectedKeys(selectedKeys) {
|
|
38
19
|
return this.setProperty('selectedKeys', selectedKeys);
|
|
39
|
-
}
|
|
20
|
+
}
|
|
40
21
|
/**
|
|
41
22
|
* Gets the value of <code>selectedKeys</code> property.
|
|
42
23
|
* Specifies the selectedKeys, should be hooked into the collection component.
|
|
43
24
|
* @return The value of <code>selectedKeys</code> property.
|
|
44
25
|
*
|
|
45
26
|
*/
|
|
46
|
-
|
|
27
|
+
getSelectedKeys() {
|
|
47
28
|
return this.getProperty('selectedKeys');
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
}(elements_1.OjWebElement));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
51
31
|
exports.SelectorAllWebElementBase = SelectorAllWebElementBase;
|
|
32
|
+
//# sourceMappingURL=SelectorAllWebElementBase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectorAllWebElementBase.js","sourceRoot":"","sources":["SelectorAllWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,yBAA0B,SAAQ,uBAAY;IACzD;;;;;OAKG;IACI,kBAAkB,CAAC,YAAoB;QAC5C,OAAO,IAAI,CAAC,WAAW,CAAS,cAAc,EAAE,YAAY,CAAC,CAAC;IAChE,CAAC;IAED;;;;;OAKG;IACI,eAAe;QACpB,OAAO,IAAI,CAAC,WAAW,CAAS,cAAc,CAAC,CAAC;IAClD,CAAC;CACF;AApBD,8DAoBC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-selector-all 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, SelectorAllWebElement.ts.\n */\nexport class SelectorAllWebElementBase extends OjWebElement {\n /**\n * Sets the value of <code>selectedKeys</code> property.\n * Specifies the selectedKeys, should be hooked into the collection component.\n * @param selectedKeys The value to set for <code>selectedKeys</code>\n *\n */\n public changeSelectedKeys(selectedKeys: object): Promise<void> {\n return this.setProperty<object>('selectedKeys', selectedKeys);\n }\n\n /**\n * Gets the value of <code>selectedKeys</code> property.\n * Specifies the selectedKeys, should be hooked into the collection component.\n * @return The value of <code>selectedKeys</code> property.\n *\n */\n public getSelectedKeys(): Promise<object> {\n return this.getProperty<object>('selectedKeys');\n }\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { By } from 'selenium-webdriver';
|
|
2
|
+
import { DriverLike } from '@oracle/oraclejet-webdriver';
|
|
3
|
+
import { SelectorAllWebElement } from './SelectorAllWebElement';
|
|
4
|
+
export { SelectorAllWebElement };
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve an instance of [[SelectorAllWebElement]].
|
|
7
|
+
* @example
|
|
8
|
+
* ```javascript
|
|
9
|
+
* import { findSelectorAll } from '@oracle/oraclejet-core-pack/webdriver';
|
|
10
|
+
* const el = await findSelectorAll(driver, By.id('my-oj-c-selector-all'));
|
|
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 findSelectorAll(driver: DriverLike, by: By): Promise<SelectorAllWebElement>;
|
|
@@ -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.findSelectorAll = exports.SelectorAllWebElement = void 0;
|
|
40
4
|
var oraclejet_webdriver_1 = require("@oracle/oraclejet-webdriver");
|
|
@@ -52,23 +16,15 @@ Object.defineProperty(exports, "SelectorAllWebElement", { 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 findSelectorAll(driver, by) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (!!(webEl instanceof SelectorAllWebElement_1.SelectorAllWebElement)) return [3 /*break*/, 3];
|
|
64
|
-
return [4 /*yield*/, webEl.getTagName()];
|
|
65
|
-
case 2:
|
|
66
|
-
tagName = _a.sent();
|
|
67
|
-
throw Error("findSelectorAll(".concat(by, ") created ").concat(webEl.constructor.name, " for <").concat(tagName, ">, but expected ").concat(SelectorAllWebElement_1.SelectorAllWebElement.name));
|
|
68
|
-
case 3: return [2 /*return*/, webEl];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
19
|
+
async function findSelectorAll(driver, by) {
|
|
20
|
+
const webEl = await driver.findElement(by);
|
|
21
|
+
// Check that the element is of type SelectorAllWebElement
|
|
22
|
+
if (!(webEl instanceof SelectorAllWebElement_1.SelectorAllWebElement)) {
|
|
23
|
+
const tagName = await webEl.getTagName();
|
|
24
|
+
throw Error(`findSelectorAll(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${SelectorAllWebElement_1.SelectorAllWebElement.name}`);
|
|
25
|
+
}
|
|
26
|
+
return webEl;
|
|
72
27
|
}
|
|
73
28
|
exports.findSelectorAll = findSelectorAll;
|
|
74
29
|
(0, oraclejet_webdriver_1.register)('oj-c-selector-all', SelectorAllWebElement_1.SelectorAllWebElement);
|
|
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 { SelectorAllWebElement } from './SelectorAllWebElement';\nexport { SelectorAllWebElement };\n\n/**\n * Retrieve an instance of [[SelectorAllWebElement]].\n * @example\n * ```javascript\n * import { findSelectorAll } from '@oracle/oraclejet-core-pack/webdriver';\n * const el = await findSelectorAll(driver, By.id('my-oj-c-selector-all'));\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 findSelectorAll(driver: DriverLike, by: By): Promise<SelectorAllWebElement> {\n const webEl = await driver.findElement(by);\n // Check that the element is of type SelectorAllWebElement\n if (!(webEl instanceof SelectorAllWebElement)) {\n const tagName = await webEl.getTagName();\n throw Error(\n `findSelectorAll(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${SelectorAllWebElement.name}`\n );\n }\n return webEl;\n}\n\nregister('oj-c-selector-all', SelectorAllWebElement);\n"]}
|