Inject Js Script to store output in UI Path Variable

I want to store all existing text from this div element, and when I tried this on Console it displays the exacting text. but i’m not able to store this text in UI Path Variables using Inject Js Script, Output.

function (){

Have you tried browsing through the topics about this activity for clues on the correct syntax? :slight_smile: