From: Mike B. <mb...@Ga...> - 2002-07-09 17:50:57
|
Hi Craig, > (HtmlArea)page.getOneHtmlElementByAttribute("area","onclic", I'm not sure if it was just a typo in what you pasted, but "onclic" is not a valid attribute. It should be "onclick" Generally, I would recommend searching for the element by id rather than the attribute value as you've done here. If you change the javascript in the onclick handler then your test will fail. All html elements support the id attribute so you can have <area id="myArea" .... And then call HtmlPage.getHtmlElementById("myArea"); If "onclic" wasn't the problem then let me know and I'll dig a bit deeper ;-) -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |