Closed agritheory closed 1 year ago
@agritheory, the signature for the simulate function is actually simulate(DOMElement, mStringOrArray)
and I was able to successfully get this to run:
window.scanHandler.scanner.simulate(document, 'handling_unit_id')
That's what I was doing wrong. Feels silly now.
And it's not clear why. This is important for doing automated testing since you can't hook up a barcode scanner to a CI.
To reproduce, try the following in the browser console: