chandu
unread,Apr 20, 2012, 8:27:53 AM4/20/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to watij
Hi ,
I am using WatiJ for creating a POC for my company.
Here's a simple link on a page ( which is in a table ) :
<a title="" class="Grid_Link_Smaller" id="FillinIndLink_5"
onmouseover="javascript:this.className='Grid_Link_Smaller_Over';window.status='Access
Fill-In Information';return true;"
onmouseout="javascript:this.className='Grid_Link_Smaller';window.status='';return
true;"
href="javascript:SubmitFromInsideGridControl('CoFormProcMainHTML_dgFormsList',
7,false,'');">
I was able to flash the link and can do mouseOver also. But when i try
to click using click() Or mouseDown & mouseUp ( as shown
below)....Java script error pops up on the browser.
el_.flash(); // flashing correctly on the link
el_.fireEvent(ONMOUSEOVER); // doing mouseover
el_.fireEvent(ONMOUSEDOWN); // Java script error
el_.click(); // Java script error
ie.frame(FRAME_INSDMAIN).link(href,
"javascript:SubmitFromInsideGridControl('CoFormProcMainHTML_dgFormsList',
7,false,'');").focus(); // fine
ie.frame(FRAME_INSDMAIN).link(href,"javascript:SubmitFromInsideGridControl('CoFormProcMainHTML_dgFormsList',
7,false,'');").click(); // JS error on IE 8
I had put lot of effort in it...but in vain!
I tried on Windows 7 + IE 8 and Windows XP + IE 8 ( environment
details below ), and the same JS error is poping up everytime! :(
Any help / pointers are greatly appreciated!!
Info regarding the environment :
> Watij version
-------------------------
watij_release_3.2.1
> Java version :
--------------------
C:\Users\chandrashekar>java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
> OS
-----
- Windows - 7 - SP1
- 32 bit
> IE version
---------------
IE 8.0.7601.86074
Thank you
chandra