I am not able to derive the xpath for the following Text "Payment complete. Your policy will be generated soon". I have tried using the default xpath by directly copying the same but it throws the following error during execution invalid selector:
The result of the xpath expression "//*[@id="__next"]/div/div[1]/div[2]/div[1]/div[1]/span/text()" is: [object Text]. It should be an element.
Snapshot: