From 8ace181c75257b47fc162ec78815a0fab5daf2e1 Mon Sep 17 00:00:00 2001 From: cnathe Date: Tue, 3 Dec 2024 09:38:32 -0600 Subject: [PATCH] fix for ChartTypeDialog check in hasTrendlineOption --- src/org/labkey/test/components/ChartTypeDialog.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/org/labkey/test/components/ChartTypeDialog.java b/src/org/labkey/test/components/ChartTypeDialog.java index cf1d768988..e0441c52bd 100644 --- a/src/org/labkey/test/components/ChartTypeDialog.java +++ b/src/org/labkey/test/components/ChartTypeDialog.java @@ -126,7 +126,10 @@ public ChartTypeDialog setSeries(String columnName) public boolean hasTrendlineOption() { - return getWrapper().isElementVisible(Ext4Helper.Locators.formItemWithInputNamed("trendlineType")); + Locator loc = Ext4Helper.Locators.formItemWithInputNamed("trendlineType"); + if (getWrapper().isElementPresent(loc)) + return getWrapper().isElementVisible(loc); + return false; } public List getTrendlineOptions()