A new account is created using selenium script and a message appears that "Account is created successfully : <***12345>"
After this, Account page is displayed where all the accounts are available. And newly created account (***12345) is also listed but in the middle of table somewhere. Even sorting does not bring this account at the top so that It can be picked up after sorting.
Now I need to select this account to perform further operations on it. Currently when I click the account on 'accounts' page based on x-path provided, older account can be clicked. But since new account is created during script execution only, how can I click on this account from the account table.
I am thinking of grabbing account no. from the message box and storing in a variable but not able to write a x-path which uses this variable to click on newly added account only during execution.
Please provide your input?