diff --git a/doc-factory-demos-test/src_test/com/axon/docfactory/demos/WebTestApiExamplesIT.java b/doc-factory-demos-test/src_test/com/axon/docfactory/demos/WebTestApiExamplesIT.java index e5a08b0e..e981d2f1 100644 --- a/doc-factory-demos-test/src_test/com/axon/docfactory/demos/WebTestApiExamplesIT.java +++ b/doc-factory-demos-test/src_test/com/axon/docfactory/demos/WebTestApiExamplesIT.java @@ -20,6 +20,7 @@ import com.codeborne.selenide.Configuration; import com.codeborne.selenide.FileDownloadMode; import com.codeborne.selenide.Selenide; +import com.codeborne.selenide.SelenideElement; @IvyWebTest class WebTestApiExamplesIT { @@ -79,7 +80,11 @@ void ivyDocApi(WebAppFixture fixture) { $(withText("Task End")).shouldBe(visible); open(EngineUrl.create().path("tasks").toUrl()); - $(By.linkText("Task: View attached document")).shouldBe(visible).click(); + $(By.id("tasksForm:tasks:0:taskName")).shouldBe(visible).click(); + SelenideElement taskStartBtn = $(By.id("actionMenuForm:taskStartBtn")); + if (taskStartBtn.isDisplayed()) { + taskStartBtn.shouldBe(visible).click(); + } Selenide.switchTo().frame("iFrame"); $("h3").shouldHave(exactText("DocFactoryDemos: Attached Document")); $("iframe").shouldBe(visible);