when we open a link for ex:- google.co.in in that if we click on anyother link for ex:- gmail and if it redirects to another page in a new window.how can we close that window ?
i tried driver.switch.window().close();
but its not working
is there any other way to close the window which is opened in new tab?