Here is my problem
Iam running a script for creating a journal entry and then logging on as another user and clicking that for approval.
now, while I crate a journal ,I don't know the number ,it generates when i save it. Its just a text on the webpage .I was trying to get text output to the action sheet ,but it just takes the value of my first journal ID , it doesn't change with runtime.I also tried GetROProperty.

And once I get this value I've to see if this number is present in the page I'm loggin on to for approval. The whole scenario should be in one script.And here I have plenty of journal waiting for approval, but I've to approve only the one I created using this script.

I hope I gave a clear picture of whats going on.

Can anyone please provide a solution
Thanks in Advance.