diff --git a/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/TaskIFrameTemplatePage.java b/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/TaskIFrameTemplatePage.java index 001322d08c..25fbdb8317 100644 --- a/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/TaskIFrameTemplatePage.java +++ b/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/TaskIFrameTemplatePage.java @@ -220,7 +220,7 @@ public void inputValue(String employee, String from, String to, String represent $(By.id("leave-request:substitute")).sendKeys(representation); $(By.id("leave-request:from_input")).sendKeys(from); $(By.id("leave-request:to_input")).sendKeys(to); - clickByJavaScript($("div[id$='content']")); + clickByJavaScript($("form[id$='leave-request']")); $("div[id$='from_panel']").shouldBe(Condition.disappear); $("div[id$='to_panel']").shouldBe(Condition.disappear); } diff --git a/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/test/BackNavigationTest.java b/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/test/BackNavigationTest.java index 87dcffb381..2b1faaa5f5 100644 --- a/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/test/BackNavigationTest.java +++ b/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/test/BackNavigationTest.java @@ -142,7 +142,7 @@ public void testNavigateAfterFinishedTaskToCaseDetails() { String today = LocalDateTime.now().format(DateTimeFormatter.ofPattern(DateTimePattern.DATE_TIME_PATTERN)); taskTemplatePage.inputField("[id$='payment-request:from_input']", today); - taskTemplatePage.clickByJavaScript($("div[id$='content']")); + taskTemplatePage.clickByJavaScript($("form[id$='payment-request']")); $("div[id$='from_panel']").shouldBe(Condition.disappear); taskTemplatePage.clickOnSubmitButton(); caseDetailsPage = new CaseDetailsPage();