[Samie-code] ClickLine issues / suggestions with Javascript
Brought to you by:
henrywasserman,
techlogic
|
From: Nick N. <Nic...@sn...> - 2004-03-30 17:13:09
|
BTW, I got some suggested code, from another member on the list, to click on
the javascript created link. It works great. This tool works perfect for
me.
This brings me to a problem with using SAM.pm with my application. Our
application is checking to prevent double-click on our website. The
resulting message is: "Request, submitted, Response pending, Please
wait...". So for each page I navigate to using SAMIE, I get this message
box.
The following code is used in my test.pl
ClickLink("AMS");
$seconds = WaitForDocumentComplete();
print "AMS search page took $seconds seconds to load\n";
The following line was commented out and fixed my problem.
$IEDocument->all($i)->click();
#$IEDocument->all($i)->fireEvent("onclick");
My guess is that, the first "click" will fire the onclick event once. Then
the "offending" lines calls the onclick again causing our script to get
fired to prevent double clicks.
Can I make some suggestions:
1) possibly remove the suggested line. I think the "onclick" is fired when
"click" is fired. Maybe not. This may break other developer tests.
2) give an option to "suppress" the message.
3) I would like to post a new example to be distributed with upcoming
releases. This example would have an html page with javascripts menus. How
can I submit the example????
Any thoughts????
Much thanks,
Nick Neuberger
- - - - - -
This e-mail message is intended only for the use of the individual or entity
identified in the alias address of this message and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution of this e-mail message is strictly prohibited. If you have
received this e-mail message in error, please notify the sender immediately
by reply e-mail and delete this message from your system. Thank you.
|