selenium keycheck and closing browser



  • hello
    if i put "3 keys" check on the run of selenium, if its fail at first key the browser keeps running and it also consider the "right" thing as a "wrong key"....

    so i need to know how can close the browser on "1st keycheck" itself .......and if its passes the "1st keycheck" how to kept it open so that it can go to "2nd keycheck".......and so go on for "3rd keycheck"



  • or browser can be closed or continue further using IF.ELSE statement........if yes what will be script be like/...........


  • Banned

    BROWSERACTION DOMtoSOURCE

    IF "<SOURCE>" Contains "(FAILKEYHERE)"
    BROWSERACTION Quit
    ENDIF


Log in to reply