I am testing my web application. I search for upload button and select file. Uploading changes URL of the page:
driver.findElement(By.id('upload')).click();
var upload = driver.findElement(By.id('files'));
var testDocAbsPath = getTestDocAbsPath('1run.docx');
upload.sendKeys(testDocAbsPath);
After this action I can't click buttons any more:
For example this one doesn't have any effect:
driver.findElement(By.id('btnId')).click();
while such button really presents on the new page. Probably some cache is not updated. How can I solve this?