I am currently using Tellurium Data-driven testing with success except
for one issue. Sorry if this is (also) Selenium-related but I hope
there is a solution in Tellurium as well.
I have an application that overrides the Confirmation Window:
if (document.getElementById) {
window.confirm = function(txt, confirmedAction) {
return createCustomConfirm(txt, confirmedAction);
};
}
function show_confirmation() {
confirm('Are you sure?', do_confirm);
}
function do_confirm() {
// some actions here.
// alert("this code is executed if confirmation is true...!");
}
and in my HTML:
<a href="#" onclick="show_confirmation()">Confirm me</a>
In the normal execution, the do_confirm is executed in the button
click event of my overridden Confirmation (code not shown here).
However, the do_confirm is NOT executed by Selenium because Selenium
overrides the Confirmation and returns directly from the Confirmation
(I am using getConfirmation in Tellurium and it returns true as
expected).
- Is it correct?
- How could I 'force' the execution of the do_confirm in case of
getConfirmation returning true? May I call the javascript function
'do_confirm()' from within my test script after the getConfirmation
command (if getConfirmation returns true) or is there any another
solution?
Thank you,
Y.
--
You received this message because you are subscribed to the Google Groups
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tellurium-users?hl=en.