I've been trying to click onto the hyperlink which leads to a popup on the screen. For some reason it is not working, currently the html for the hyperlink is this:
<a href="javascript:void(0)" class="operating-hours left">Select Hours</a>
Trying with this selenium code:
new WebDriverWait(driver, 50).until(ExpectedConditions.elementToBeClickable(By.linkText("Select Hours"))).click();
Also tried:
driver.findElement(By.id("operating_hours")).click();
Interestingly I am not getting any error either, just that the hyperlink is not clicked. screenshot after running the script After running the script, that is the screenshot.
Whereas the script should have opened this popup window popup that should open after running the script @DebanjanB hope that clarifies the problem.