I have a page where a link by name Done displays based on the transaction type.I have a script in which I would like to check if the link exists or not and based on that I will be performing some actions.
we have a fucntion in framework which is check_Link which returns a boolean value.if I use this function and if the Done link doesnt exists on the page then it says Done did not find and displays a alert with the message and ok button.
To avoid this is there anyway I can check the condition and if the function could not find the value Done then it should not show me the alert and instead it should perform the next statement in the script.
May be if I understood correctly you want alert message to be displayed under some condition. Why not then modify the code in your function that displays alert message when required OR if that is not the case then comment LOC that display message box.