While testing a basic website, I encountered an issue with the Firefox webdriver not displaying a Javascript calendar window when a button is clicked. Even though the Selenium IDE successfully spawns the window, running the Java code does not result in the window appearing.
The snippet of code used to click the Javascript element is:
WebElement element = driver.findElement(By.cssSelector("img[alt=\"Pick a date\"]"));
element.click();
Additional information: The 'cal.gif' image is also not visible when using the webdriver. The problem lies in getting the calendar window to appear rather than interacting with it after it's open.
You can find the website I am testing here: Parking Meter
I have extensively searched for a solution to this issue but have yet to find one. Any assistance or guidance would be greatly appreciated.
Edit: Here is the HTML code for the JS calendar:
<a href="javascript:NewCal('EntryDate','mmddyyyy',false,24)"
<img height="16" width="16" border="0" alt="Pick a date" src="cal.gif"></img>
</a>