From 5a3df2e7439fdac3c326f5d2d3c667b5a96b2fc1 Mon Sep 17 00:00:00 2001 From: xingchun-chen <55787491+xingchun-chen@users.noreply.github.com> Date: Mon, 13 Jul 2020 13:03:15 +0800 Subject: [PATCH] Update CreateWorkflowLocator.java modify submit workflow button --- .../locator/project/CreateWorkflowLocator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/src/test/java/org/apache/dolphinscheduler/locator/project/CreateWorkflowLocator.java b/e2e/src/test/java/org/apache/dolphinscheduler/locator/project/CreateWorkflowLocator.java index faea6e81cc..0d3e2b6de5 100644 --- a/e2e/src/test/java/org/apache/dolphinscheduler/locator/project/CreateWorkflowLocator.java +++ b/e2e/src/test/java/org/apache/dolphinscheduler/locator/project/CreateWorkflowLocator.java @@ -119,14 +119,14 @@ public class CreateWorkflowLocator { public static final By CLICK_DELETE_CUSTOM_PARAMETERS = By.xpath("//div[2]/span/a/em"); //click submit button - public static final By CLICK_SUBMIT_BUTTON = By.xpath("//button[2]/span"); + public static final By CLICK_SUBMIT_BUTTON = By.xpath("//div[3]/div/button[2]/span"); /** * save workflow */ //click save workflow button - public static final By CLICK_SAVE_WORKFLOW_BUTTON = By.xpath("/html/body/div[1]/div[2]/div/div[2]/div/div[2]/div[1]/div[2]/button[2]/span"); + public static final By CLICK_SAVE_WORKFLOW_BUTTON = By.xpath("//div[2]/div[1]/div[2]/button[2]"); //input workflow name public static final By INPUT_WORKFLOW_NAME = By.xpath("//input");