You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a few ideas for this; but there are other ways of solving this sort of requirement, such as this step definition for testing confirmations:
Given /^I will press 'ok' for the "([^"]*)" confirmation$/ do |message|
page.execute_script <<-JS
window.confirm = function(msg) {
if ( msg === #{message.to_json} )
return true;
else
return false;
}
JS
end
In Selenium, it's like this:
I would think it'd be more appropriate to have one for alert, prompt, and confirm.
The text was updated successfully, but these errors were encountered: