public InputTable<T> clickCheckBox(String attributeName){ $(Schrodinger.byAncestorPrecedingSiblingDescendantOrSelfElementEnclosedValue("input","type","checkbox",null,null,attributeName)) .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click(); return this; }
public ListResourcesPage testConnectionClick(String resourceName){ table() .search() .byName() .inputValue(resourceName) .updateSearch(); SelenideElement testConnectionIcon = $(Schrodinger .byElementAttributeValue("i", "class","fa fa-question fa-fw")).waitUntil(Condition.appear, MidPoint.TIMEOUT_DEFAULT_2_S); testConnectionIcon.click(); return this; } }
public T clickNo() { $(Schrodinger.byDataResourceKey("a", "confirmationDialog.no")) .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click(); $(Schrodinger.byDataResourceKey("a", "confirmationDialog.yes")) .waitUntil(Condition.disappears, MidPoint.TIMEOUT_LONG_1_M); return this.getParent(); }
public InputTable<NewTaskPage> basicTable() { SelenideElement tableElement = $(Schrodinger.byPrecedingSiblingEnclosedValue("table", "class", "table table-condensed table-striped", "", "", "Basic")) .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S); return new InputTable<>(this, tableElement); }
public PrismForm<T> showEmptyAttributes(String containerName) { $(Schrodinger.byAncestorPrecedingSiblingDescendantOrSelfElementEnclosedValue("div", "data-s-id", "showEmptyButton", "class", "prism-properties", containerName)) .waitUntil(Condition.visible, MidPoint.TIMEOUT_DEFAULT_2_S).click(); return this; }
public ResourceConfigurationTab clickEditResourceConfiguration() { $(Schrodinger.byDataResourceKey("a", "pageResource.button.configurationEdit")).waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click(); SelenideElement element= $(By.cssSelector(".tab-pane.active")) .waitUntil(Condition.visible, MidPoint.TIMEOUT_DEFAULT_2_S); return new ResourceConfigurationTab(new EditResourceConfigurationPage(), element); }
public TestConnectionModal<EditResourceConfigurationPage> clickSaveAndTestConnection() { $(Schrodinger.byDataId("testConnection")).click(); SelenideElement testModalBox = $(Schrodinger .byElementAttributeValue("div", "aria-labelledby", "Test connection result(s)")) .waitUntil(Condition.appears, MidPoint.TIMEOUT_LONG_1_M); return new TestConnectionModal<>(this, testModalBox); }
public T clickShowExisting() { $(Schrodinger.byDataResourceKey("schrodinger", "ResourceContentResourcePanel.showExisting")).parent() .click(); return this.getParent(); }
public ConfirmationModal<UsersTableDropDown<T>> clickUnlock() { $(Schrodinger.byElementValue("a", "data-s-id", "menuItemLink", "\n" + " Unlock")).waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click(); SelenideElement actualModal = $(Schrodinger.byElementAttributeValue("div", "aria-labelledby", "Confirm action")) .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S); return new ConfirmationModal<>(this, actualModal); }
public ResourceShadowTable<ResourceAccountsTab<T>> table() { SelenideElement element = $(By.cssSelector(".box.boxed-table.object-shadow-box")) .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S); return new ResourceShadowTable<>(this, element); }
public ResourceTaskQuickAccessDropDown<ResourceAccountsTab<T>> importTask() { $(Schrodinger.byElementAttributeValue("label", "data-s-id", "label", "Import")) .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click(); SelenideElement dropDownElement = $(Schrodinger.byElementAttributeValue("ul", "role", "menu")) .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S); return new ResourceTaskQuickAccessDropDown<>(this, dropDownElement); }
public ConfirmationModal<T> clickDelete() { $(Schrodinger.byDataResourceKey("pageContentAccounts.menu.deleteAccount")) .waitUntil(Condition.exist, MidPoint.TIMEOUT_DEFAULT_2_S).parent().click(); SelenideElement modalBox = $(Schrodinger.byElementAttributeValue("div", "aria-labelledby", "Confirm deletion")) .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S); return new ConfirmationModal<>(this.getParent(), modalBox); }
public ListTasksPage clickSave() { $(Schrodinger.byDataId("saveButton")) .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click(); return new ListTasksPage(); }
public void clickOnWizardTab(String tabName){ $(By.linkText(tabName)) .shouldBe(Condition.visible) .click(); } }
public ResourceShadowTableCog<ResourceShadowTable<T>> clickCog() { $(Schrodinger.byElementAttributeValue("button", "data-toggle", "dropdown")) .waitUntil(Condition.visible, MidPoint.TIMEOUT_DEFAULT_2_S).click(); SelenideElement cog = $(Schrodinger.byElementAttributeValue("ul","role","menu")) .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S); return new ResourceShadowTableCog<>(this, cog); }
public EditTaskPage clickResume() { $(Schrodinger.byDataResourceKey("a", "pageTaskEdit.button.resume")).waitUntil(Condition.visible, MidPoint.TIMEOUT_DEFAULT_2_S).click(); return this; } }
/** * Selenide style locator. * * @param locatorKey locator key (can include placeholders) * @param params parameters to replace the placeholders * @return {@link SelenideElement} */ protected SelenideElement $(String locatorKey, Object... params) { return Selenide.$(locators.getLocator(locatorKey, configuration.getPlatform(), params)); }