I have a swal:

swal({
            title: 'Success',
            text: 'Something',
            type: 'success',
            closeOnConfirm: true
          },function(){
            $("#somethingModal").modal("hide");
            $("html, body").animate({
              scrollTop : 0
            }, 1500);
          });

HTML for button of interest is <button class=confirm>.

Now, if I use Selenium’s browser.click('.confirm') the swal does close but the follow-up code i.e. hiding the modal and the animation are not triggered. Is there any way around this? Is there maybe another Action I can use that properly triggers the rest?



Source link https://sqa.stackexchange.com/questions/20004/---in--with--browser-click

LEAVE A REPLY

Please enter your comment!
Please enter your name here