Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
phhung-axonivy committed Oct 16, 2024
1 parent e490e95 commit 44df564
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -80,7 +81,10 @@ void ivyDocApi(WebAppFixture fixture) {

open(EngineUrl.create().path("tasks").toUrl());
$(By.id("tasksForm:tasks:0:taskName")).shouldBe(visible).click();
$(By.id("actionMenuForm:taskStartBtn")).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);
Expand Down

0 comments on commit 44df564

Please sign in to comment.