I think you should see this question : How to Automate a Dynamic page through Selenium Web Driver?
This is already answered here , this may help you also with your problem statement or give some example of your problem statement , please provide UI html part .