Search in sources :

Example 21 with SelenideElement

use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.

the class ActionConfigureComponentInvokeSql method fillSqlInput.

@Override
public void fillSqlInput(String query) {
    log.debug("filling sql query: {}", query);
    SelenideElement element = $(Element.INPUT_QUERY);
    this.fillInput(element, query);
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement)

Example 22 with SelenideElement

use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.

the class ActionConfigureComponentPeriodicSql method fillSqlInput.

@Override
public void fillSqlInput(String query) {
    log.debug("filling sql query: {}", query);
    SelenideElement element = $(Element.INPUT_QUERY);
    this.fillInput(element, query);
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement)

Example 23 with SelenideElement

use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.

the class BasicFilterStepComponent method setLatestOpSelect.

public void setLatestOpSelect(String op) {
    log.info("setting basic filter step op to option number {}", op);
    ElementsCollection opInputArray = this.getRootElement().findAll(Select.OP);
    SelenideElement opInput = opInputArray.get(opInputArray.size() - 1);
    this.selectOption(opInput, op);
}
Also used : ElementsCollection(com.codeborne.selenide.ElementsCollection) SelenideElement(com.codeborne.selenide.SelenideElement)

Example 24 with SelenideElement

use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.

the class BasicFilterStepComponent method setLatestPathInput.

public void setLatestPathInput(String path) {
    log.info("setting basic filter step path to {}", path);
    ElementsCollection pathInputArray = this.getRootElement().findAll(Input.PATH);
    SelenideElement pathInput = pathInputArray.get(pathInputArray.size() - 1);
    pathInput.shouldBe(visible).clear();
    pathInput.shouldBe(visible).sendKeys(path);
}
Also used : ElementsCollection(com.codeborne.selenide.ElementsCollection) SelenideElement(com.codeborne.selenide.SelenideElement)

Example 25 with SelenideElement

use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.

the class BasicFilterStepComponent method setLatestValueInput.

public void setLatestValueInput(String value) {
    log.info("Setting basic filter step value to {}", value);
    ElementsCollection valueInputArray = this.getRootElement().findAll(Input.VALUE);
    SelenideElement valueInput = valueInputArray.get(valueInputArray.size() - 1);
    valueInput.shouldBe(visible).clear();
    valueInput.shouldBe(visible).sendKeys(value);
}
Also used : ElementsCollection(com.codeborne.selenide.ElementsCollection) SelenideElement(com.codeborne.selenide.SelenideElement)

Aggregations

SelenideElement (com.codeborne.selenide.SelenideElement)91 ElementsCollection (com.codeborne.selenide.ElementsCollection)16 Then (cucumber.api.java.en.Then)13 And (cucumber.api.java.en.And)8 SyndesisRootPage (io.syndesis.qe.pages.SyndesisRootPage)6 ArrayList (java.util.ArrayList)5 When (cucumber.api.java.en.When)4 Test (org.junit.Test)4 QualityGate (org.sonar.wsclient.qualitygate.QualityGate)4 ProjectQualityGatePage (pageobjects.ProjectQualityGatePage)4 Given (cucumber.api.java.en.Given)2 ModalDialogPage (io.syndesis.qe.pages.ModalDialogPage)2 DashboardPage (io.syndesis.qe.pages.dashboard.DashboardPage)2 StepComponent (io.syndesis.qe.pages.integrations.edit.steps.StepComponent)2 List (java.util.List)2 By (org.openqa.selenium.By)2 CollectionCondition.sizeGreaterThanOrEqual (com.codeborne.selenide.CollectionCondition.sizeGreaterThanOrEqual)1 Condition.visible (com.codeborne.selenide.Condition.visible)1 AbstractSelenideTest (com.evolveum.midpoint.testing.selenide.tests.AbstractSelenideTest)1 DataTable (cucumber.api.DataTable)1