JavaScript pop up message box

sriharini sriharini <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <[email protected]>
Hi,
I am having trouble in making the script click OK button on the
pop-up JavaScript message box (pop-up has only 'OK' option) when the
'Cancel' button is clicked on the main page. Once the pop-up message is
clicked OK, the main page is navigated to other page

Test result shows the steps as passed, but result screen shows the pop-up
with same main page

Can you guys please share some light how to proceed with this.


Appreciate your input.

Regards,
srini

my steps ------

<click xpath="//img[@alt='Cancel']"/>

<steps description="Pop-up warning message for exchanges">
<expectDialogs description="cancel transaction">
<alert description="Are you sure you want to cancel this transaction? "/>
</expectDialogs>
</steps>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.