Skip to content

Commit 899ec75

Browse files
committed
FE: Try new a locator
1 parent 5d4838e commit 899ec75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

e2e-tests/src/main/java/io/kafbat/ui/screens/BasePage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public abstract class BasePage extends WebUtil {
3535
protected ElementsCollection ddlOptions = $$x("//li[@value]");
3636
protected ElementsCollection gridItems = $$x("//tr[@class]");
3737
protected String summaryCellLocator = "//div[contains(text(),'%s')]";
38-
protected String tableElementNameLocator = "//tbody//a[contains(text(),'%s')]";
38+
protected String tableElementNameLocator = "//a[normalize-space(text())='%s']";
3939
protected String columnCellLocator = "//table//tr/td//*[contains(text(),'%s')]";
4040
protected String columnHeaderLocator = "//table//tr/th//div[text()='%s']";
4141
protected String pageTitleFromHeader = "//h1[text()='%s']";

e2e-tests/src/main/java/io/kafbat/ui/screens/connectors/KafkaConnectList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public KafkaConnectList clickCreateConnectorBtn() {
3333

3434
@Step
3535
public KafkaConnectList openConnector(String connectorName) {
36-
getTableCellElement(connectorName).shouldBe(Condition.enabled).click();
36+
tableElementNameLocator(connectorName).shouldBe(Condition.enabled).click();
3737
return this;
3838
}
3939

0 commit comments

Comments
 (0)