This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have run into some quirks when it comes to using web driver and xpath involving frames, but from the message you are getting I think you might have a 'procedural issue'. ElementNotVisibleException is suggesting that your expression has located an element and it is clickable but you can't see it. If you were a user on the browser, you could not click something that could not be seen.
In your test scenario, what would a person using a browser do in order to see the element (hyperlink) to be able to click it? From there, create code to fire that same activity in the webdriver browser session before you try clicking the element. If you are using a browser implementation (i.e. not the headless html driver), you should be able to see the link be made visible in the UI.
One other consideration: If you can see the element right now, then check your HTML to make sure an invisible link matching this Xpath is not "jumping" ahead of you. If the value of the id is unique on the page then you should be ok.
Joined: Jan 05, 2012
Thanks Brian for your reply.
The problem was the element was not visible . The element is visible only when we bring the mouse on the element.