Hi everyone!
in my workflow, I’m trying to use the Inject JavaScript step to make a new field. I’m using the sample code syntax for this, but it’s showing the following error “Index 4 out of bounds for lenght 4”.
Below is a demo image
Can anybody help me?
1 Like
Hi! Guilherme
Here is a sample code for the Inject Java Script step in GUI Automation to fetch stock value:
var FieldName = “StockValue”;
var FieldValue =document.getElementsByClassName(‘YMlKec fxKbKc’)[0].innerHTML;
return “<<>>”+FieldName+“::”+FieldValue+“<<>>”;
1 Like