MCPcopy Create free account
hub / github.com/GCWing/BitFun / getValue

Method getValue

tests/e2e/page-objects/components/ChatInput.ts:141–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139 }
140
141 async getValue(): Promise<string> {
142 const input = await this.findTextarea();
143 if (input) {
144 const isContentEditable = await input.getAttribute('contenteditable');
145
146 if (isContentEditable === 'true') {
147 // For contentEditable, get textContent
148 return await input.getText();
149 } else {
150 // Regular textarea
151 return await input.getValue();
152 }
153 }
154 return '';
155 }
156
157 async clear(): Promise<void> {
158 const input = await this.findTextarea();

Callers 15

clearMethod · 0.95
QwFunction · 0.80
initDiffEditorFunction · 0.80
DiffEditorFunction · 0.80
CodeEditorFunction · 0.80
initEditorFunction · 0.80
initEditorFunction · 0.80
MonacoDiffCore.tsxFile · 0.80
getOrCreateModelMethod · 0.80
markAsSavedMethod · 0.80

Calls 2

findTextareaMethod · 0.95
getTextMethod · 0.80

Tested by

no test coverage detected