We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1ceaff commit 3c25aa8Copy full SHA for 3c25aa8
1 file changed
src/org/labkey/test/components/ui/edit/EditInlineField.java
@@ -61,7 +61,9 @@ public String getLabel()
61
62
public String getValue()
63
{
64
- return elementCache().toggle().getText();
+ if (elementCache().hasToggle())
65
+ return elementCache().toggle().getText();
66
+ return getComponentElement().getText();
67
}
68
69
private boolean isOpen()
@@ -125,6 +127,11 @@ WebElement toggle()
125
127
return toggleLoc.waitForElement(this, 1_000);
126
128
129
130
+ boolean hasToggle()
131
+ {
132
+ return toggleLoc.existsIn(this);
133
+ }
134
+
135
WebElement pencil()
136
137
return pencilLoc.waitForElement(this, 1_000);
0 commit comments