I am not sure just what your "modal window" is, but have you tried switching to the window before searching for the elements.
Providing your Selenium code and the HTML would help get you better answers, because not everything that looks like a window is one, and Selenium doesn't interact with system windows. I have no clue which case you are dealing with here.
Mike
On Wednesday, November 21, 2012 6:26:15 AM UTC-8, Miles wrote:
I'm trying to test a data entry form that is contained within a Wicket ModalWindow, I'm having trouble getting at the form elements from Selenium. I can find elements on the parent page but not in the child ModalWindow. The exception I'm seeing is...
The element could not be found
My test code seems straightforward, I ask the WebDriver to find the form elements by name but it can't find them. I've tried waiting for the form elements to appear, but that wait times out.
I strongly suspect that I am missing something fundamental, any help would be greatly appreciated.
Thank you
--
Miles