Using JavaScript, how can I get the string inside of this HTML element, with the id being recItemString_GPLA\|input? Inside the element there is a string with "qty" (without quotes) that I'm trying to capture. When I inspect the element I get:
<input data-oj-internal="" type="text" readonly="" placeholder="" class="oj-inputtext-input oj-
component-initnode" id="recItemString_GPLA|input"> == $0.
Above that element in DevTools there is:
<oj-input-text :id="[[fieldId()]]" validators="[[validators]]" on-value-
changed="[[valueChanged.bind($data)]]" on-valid-changed="[[validChanged]]"
value="{{value}}" required="[[required]]" readonly="[[readOnly]]" messages-
custom="[[messagesComputed]]" display-options="[[displayOptions]]" help="
[[help]]" id="recItemString_GPLA" class="oj-inputtext oj-form-control oj-
component oj-read-only oj-complete"><input data-oj-internal="" type="text"
readonly="" placeholder="" class="oj-inputtext-input oj-component-initnode"
id="recItemString_GPLA|input"></oj-input-text>
I have not been able to gather the string inside the element to display it to the console.
Using the pluggin SelectorGadget the element XPath is: //*[(@id = "recItemString_GPLA\|input")]
When I try and query oj-input-text directly to the console the console returns [Object NodeList]

<input>elements don't have string inside of them (text content), you're probably looking to get a text node that is after this<input>, try:document.querySelector('#recItemString_GPLA\\|input').nextSibling.textContentNodeafter the<input/>, you should edit your question to add more context (more of the HTML) and specify exactly what you're trying to retrieve.