hi, I would like one advice how to copy data from one web page and put this in one variable or paste.
here is the HTML
I would like to copy the 6,94 that could be variable. could you guys help me
hi, I would like one advice how to copy data from one web page and put this in one variable or paste.
here is the HTML
I would like to copy the 6,94 that could be variable. could you guys help me
If that is the only, or first, div with a class = "transactions—amount-div", then something like this should work using a KM Execute a JavaScript in Front Browser action:
document.querySelector('div.transactions—amount-div').innerText;
Note the above JavaScript is untested, but I have often used similar.
Change the Action result to output to a KM Variable, say "Local__TransAmt".
You can then set the System Clipboard to that variable, or use the variable as you like in the KM Macro.
Questions?
I choose to display but nothing shows up on the display box if I have more tabs open is there any problem?
No, just make sure the tab where the target data is is front most.
There may be a typo in the class name. Based on your image, I think there should be a single hyphen between transactions-amount
. So the command would be:
document.querySelector('div.transactions-amount-div').innerText;
HI IT WORKS ! THANK YOU , I HAD TO USE :
document.querySelector('span.sh-neg').innerText;
TO COPY THE $6.94 , BUT I UNDERSTAND HOW THIS WORKS NOW .