Clicking a LinkValue in a Child Window and Passing Value to parent window.
How can i achieve this through Selenium. Your help will be appreciated. Below the HTML of the link .
You need to capture the window handles using the below syntax –
String parentWindow = driver.getWindowHandle();
Set<String> handles = driver.getWindowHandles();
for(String windowHandle : handles)
// Perform the click operation in child window
// Close the child window in case if you are done with the operation or you can just leave it in case if there are any other operations pending so that you can switch to child window
//Switch to parent window
//verify the text here..
is there any way i can click on that link through selenium.