Hi,everybody!
I am modifying selenium to test frames and made some progress.But now I
have some questions about event handler of frames:
----------------------------------
topFrame
----------------------------------
mainFrame
----------------------------------
bottomFrame
----------------------------------
The example of above worked.But below didn't work.
----------------------------------
topFrame
<script>
function overrideOnLoad() {
window.parent.frames['mainFrame'].window.attachEvent("onload",openModal);
window.parent.frames['mainFrame'].document.all["username"].attachEvent("oncl
ick",openModal);
}
</script>
<body>
<button id="override"
onclick="javascript:overrideOnLoad()">override</button>
</body>
----------------------------------
mainFrame
<input name='username'/>
----------------------------------
bottomFrame
----------------------------------
The second line of overrideOnLoad worked but the first line didn't.Why?
Thanks in advance.
James
_______________________________________________
Selenium-devel mailing list
[email protected]
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-devel