<td>
<a id="userid_popup" onclick="openLookupWinNew('/oasis/UserLookup.do', 400, 270, 'userid_input', 'assignToUserId', 'uiAssignToUserId', false)" name="userid_popup">
<img class="icon" title="Users" alt="Users" src="/oasis/images/search_button1.gif" style="background-color: transparent;">
</a>
<input id="hide" type="button" style="display: none">
</td>
on clicking the img take it opens a popup window
I tried following code,
@FindBy(css = "#userid_popup>img")
private WebElement lookupButton;
lookupButton.click()
--> ElementNotVisibleException((JavascriptExecutor) driver).executeScript("return arguments[0].click();", lookupButton)
--> Even though it click it hangs there itself , no statements execute after that ..
Any help on this?