I was going through a forum and found one of my mate tried to refresh a page after doing some operation in web. He used..
But this code was failing while running the code. I was googling for a suggestion or help and finally found one solution in stackoverflow..
Being interested , I observed all the possible causes and agreed the discussion there. The summary I found is as below:
Wow that is what I was looking for. Since this page is based on ajax so F5 was not working there. When I have used
It worked like a boom.
Also for pressing F5, we have one more option..
Actions actionObject = new Actions(driver); actionObject.keyDown(Keys.CONTROL).sendKeys(Keys.F5).perform();
Hope that helps.