|
1 | | -# Spring '21 locators |
2 | | -outboundfundsnpsp_lex_locators = { |
3 | | - "app_launcher": { |
4 | | - "view_all_button": "//button[text()='View All']", |
5 | | - "app_link": "//p[contains(@title,'{}')]", |
6 | | - "app_link_search_result": "//mark[contains(text(),'{}')]", |
7 | | - "search_input": "//input[contains(@placeholder,'Search apps or items...')]", |
8 | | - }, |
9 | | - "new_record": { |
10 | | - "label": "//label[text()='{}']", |
11 | | - "title": "//h2[contains(@class, 'inlineTitle') and text()='{}']", |
12 | | - "field_label": "//div[./*/*[text()='{}']]", |
13 | | - "edit_title": "//h2[contains(@class, 'title') and text()='{}']", |
14 | | - "list": "//div[contains(@class,'forcePageBlockSectionRow')]/div[contains(@class,'forcePageBlockItem')]/div[contains(@class,'slds-hint-parent')]/div[@class='slds-form-element__control']/div[.//span[text()='{}']][//div[contains(@class,'uiMenu')]//a[@class='select']]", |
15 | | - "text_field": "//div[contains(@class, 'uiInput')][.//label[contains(@class, 'uiLabel')][.//span[text()='{}']]]//*[self::input or self::textarea]", |
16 | | - "dropdown_field": "//lightning-combobox[./label[text()='{}']]/div//input[contains(@class,'combobox__input')]", |
17 | | - "dropdown_popup": "//div[contains(@class, 'slds-dropdown-trigger')]/div[contains(@class, 'slds-listbox')]", |
18 | | - "dropdown_value": "//div[contains(@class,'slds-listbox')]//lightning-base-combobox-item//span[text()='{}']", |
19 | | - "dd_selection": "//lightning-base-combobox-item[@data-value='{}']", |
20 | | - "button": "//button[contains(@class, 'slds-button') and text()='{}']", |
21 | | - "lookup_field": "//div[contains(@class, 'autocompleteWrapper')]//input[@title='{}']", |
22 | | - "lightning_lookup": "//label[text()='{}']/following-sibling::div//input", |
23 | | - "lookup_value": "//div[contains(@class, 'listContent')]//div[contains(@class, 'slds-truncate') and @title='{}']", |
24 | | - "checkbox": "//div[contains(@class,'uiInputCheckbox')]/label/span[text()='{}']/../following-sibling::input[@type='checkbox']", |
25 | | - "field_input": '//label[text()="{}"]/following-sibling::div//*[self::input or self::textarea]', |
26 | | - "date_field": "//div[contains(@class,'slds-dropdown-trigger')][./label[text()='{}']]/div/input", |
27 | | - "select_date": "//div[contains(@class,'uiDatePickerGrid')]/table[@class='calGrid']//*[text()='{}']", |
28 | | - "text-field": "//label/span[text()='{}']/../following-sibling::input", |
29 | | - "footer_button": "//lightning-button//button[text()='{}']", |
30 | | - }, |
31 | | - "confirm": { |
32 | | - "check_value": "//div[contains(@class, 'forcePageBlockItem') or contains(@class, 'slds-form-element_stacked')][.//span[text()='{}']]//following-sibling::div[.//span[contains(@class, 'test-id__field-value')]]//*[text()='{}']", |
33 | | - "check_status": "//div[contains(@class, 'field-label-container')][.//span[text()='{}']]//following-sibling::div[.//span[contains(@class, 'test-id__field-value')]]/span//lightning-formatted-text[text()='{}']", |
34 | | - "check_numbers": "//div[contains(@class, 'field-label-container')][.//span[text()='{}']]//following-sibling::div[.//span[contains(@class, 'test-id__field-value')]]/span//lightning-formatted-number[text()='{}']", |
35 | | - }, |
36 | | - "tab": { |
37 | | - "tab_header": "//a[@class='slds-tabs_default__link' and text()='{}']", |
38 | | - "record_detail_tab": "//a[contains(@data-label,'{}')]", |
39 | | - "verify_header": "//div[contains(@class, 'entityNameTitle')]", |
40 | | - "verify_details": "//div[contains(@class, 'slds-form-element')][.//span[text()='{}']]//following-sibling::div[.//span[contains(@class, 'test-id__field-value')]]/span", |
41 | | - }, |
42 | | - "related": { |
43 | | - "title": '//div[contains(@class, "slds-card")]/header[.//span[@title="{}"]]', |
44 | | - "button": "//div[contains(@class, 'forceRelatedListSingleContainer')][.//img][.//span[@title='{}']]//a[@title='{}']", |
45 | | - "count": "//tbody/tr/td[1]", |
46 | | - "flexi_button": "//div[@lst-listviewmanagerheader_listviewmanagerheader][.//span[@title='{}']]//lightning-button//button[text()='{}']", |
47 | | - "flexi_link": "//a//span[contains(text(),'{}')]", |
48 | | - }, |
49 | | - "details": { |
50 | | - "button": "//button[contains(@class, 'slds-button') and text() = '{}']", |
51 | | - "header": "//h1//div[contains(@class, 'entityNameTitle') and contains(text(),'{}')]", |
52 | | - }, |
53 | | - "link": "//a[contains(text(),'{}')]", |
54 | | - "id": "//input[@type='text' and @inputmode='decimal' and @step='0.01']", |
55 | | - "button-with-text": "//button[contains(text(),'{}')]", |
56 | | - "error_locator": "//div[@class='INVALID']//lightning-formatted-number[contains(text(),'-')]", |
57 | | -} |
| 1 | +""" Locators for Spring '21 """ |
| 2 | + |
| 3 | +from locators_52 import outboundfundsnpsp_lex_locators |
| 4 | +import copy |
| 5 | + |
| 6 | +outboundfundsnpsp_lex_locators = copy.deepcopy(outboundfundsnpsp_lex_locators) |
0 commit comments