[Webunitproj-users] image submit button
Brought to you by:
dgan
From: Ahmet T. S. <ah...@20...> - 2004-01-22 01:42:50
|
Hello, I know this has been asked before but I havent seen any answers posted for them. So I wanted to give it a shot too. How can I make it click the <input type"image" .....> tag? I have tried this. SubmitButton but =(SubmitButton)currentPage.getRootTag().findFirst( new String[]{"type", "border", "height"}, new String[]{"image", "0", "22"}, new int[]{WebTag.FIND_EQUALS, WebTag.FIND_EQUALS, WebTag.FIND_EQUALS}, SubmitButton.class); but.click(); and it is giving me a "notfound" error. However if I change submitButton to WebTag, It finds the tag that I am trying to click, but this time it is telling me that I cant cast it that way. thanks |