Selenium Key Failure



  • Hello, how can i do if Key check = failure i do browser quit?
    In my code i do open browser, navigate to url, insert credentials then login if login is correct everything is ok but if keycheck = failure OB dont continue to another login...



  • Sorry ive already found.

    BROWSERACTION DOMtoSOURCE

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



  • IF "<SOURCE>" Contains "SOMETHING"
    BROWSERACTION ClearCookies
    BROWSERACTION Quit
    SET STATUS RETRY
    ENDIF

    Is possible to ban proxy too?


Log in to reply