public String connIdFrameworkVersion() { return $(Schrodinger.bySchrodingerDataId("provisioningDetailValue")).parent().getText(); }
public String version() { return $(Schrodinger.bySchrodingerDataId("wicket_message-1130625241")).parent().getText(); }
public String buildAt() { return $(Schrodinger.bySchrodingerDataId("build")).parent().getText(); }
public T clickShowExisting() { $(Schrodinger.byDataResourceKey("schrodinger", "ResourceContentResourcePanel.showExisting")).parent() .click(); return this.getParent(); }
public SelenideElement clickTab(String resourceKey) { SelenideElement link = getParentElement().$(Schrodinger.bySchrodingerDataResourceKey(resourceKey)).parent(); return verifyAndFetchActiveTab(link); }
public T clickDisable() { $(Schrodinger.byDataResourceKey("pageContentAccounts.menu.disableAccounts")) .parent().waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click(); return this.getParent(); }
public T clickEnable() { $(Schrodinger.byDataResourceKey("pageContentAccounts.menu.enableAccounts")) .parent().waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click(); return this.getParent(); }
public T clickRemoveOwner() { $(Schrodinger.byDataResourceKey("pageContentAccounts.menu.removeOwners")) .parent().waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click(); return this.getParent(); }
public T clickImport() { $(Schrodinger.byDataResourceKey("pageContentAccounts.menu.importAccounts")) .parent().waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click(); return this.getParent(); }
public String getSystemProperty(String propertyNameUserHome) { SelenideElement propertiesTable = $(Schrodinger.byElementValue("h3","System properties")).waitUntil(Condition.appear,MidPoint.TIMEOUT_DEFAULT_2_S).parent().$(By.cssSelector(".table.table-striped")); ReadOnlyTable readOnlyTable = new ReadOnlyTable(this,propertiesTable); return readOnlyTable.getParameterValue(propertyNameUserHome); } }
public ResourceAccountsTab<ViewResourcePage> clicAccountsTab() { $(Schrodinger.byDataResourceKey("schrodinger", "PageResource.tab.content.account")).parent() .waitUntil(Condition.visible, MidPoint.TIMEOUT_DEFAULT_2_S).click(); SelenideElement tabContent = $(By.cssSelector(".tab-pane.active")) .waitUntil(Condition.visible, MidPoint.TIMEOUT_DEFAULT_2_S); return new ResourceAccountsTab<>(this, tabContent); }
public Paging<T> pageSize(int size) { Validate.isTrue(size > 0, "Size must be larger than zero."); SelenideElement parent = getParentElement(); SelenideElement button = parent.$(By.cssSelector(".btn.btn-default.dropdown-toggle")); button.click(); button.parent().$(By.className("dropdown-menu")).$$x(".//a").first().click(); SelenideElement popover = parent.$$(By.className("popover-title")) .findBy(Condition.text("Page size")).parent(); //todo fix localization popover.$(By.tagName("input")).setValue(Integer.toString(size)); popover.$(By.tagName("button")).click(); return this; }
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); }
private SelenideElement findProperty(String name) { Selenide.sleep(5000); SelenideElement element = null; boolean doesElementAttrValueExist = $(Schrodinger.byElementAttributeValue(null, "contains", Schrodinger.DATA_S_QNAME, "#" + name)).exists(); if (doesElementAttrValueExist) { element = $(Schrodinger.byElementAttributeValue(null, "contains", Schrodinger.DATA_S_QNAME, "#" + name)).waitUntil(Condition.visible, MidPoint.TIMEOUT_DEFAULT_2_S); } else { element = $(By.xpath("//span[@data-s-id=\"label\"][contains(.,\"" + name + "\")]/..")).waitUntil(Condition.visible, MidPoint.TIMEOUT_MEDIUM_6_S) .parent().waitUntil(Condition.visible, MidPoint.TIMEOUT_MEDIUM_6_S); } return element; }