THE FORUM IS IN READ-ONLY MODE

This forum is in read-only mode. The new forum is live at https://discourse.openbullet.dev and registrations are open!

Help with Selenium Source



  • Hello, i have a question, i want to do like this :

    DomtoSource

    IF "Source" Contains "ReCaptcha"
    Browseraction refresh

    Etc..
    Etc..

    ENDIF

    Basically if it finds the word "Recaptcha" it executes the string i choose, but after that the program will keep going, is it possible to keep using that IF function until the word "Recaptcha" doesn't show anymore?

    Is it possible to like clear the log so i'll just put another
    DomToSource

    IF "Source" Contains "ReCaptcha"

    ..

    End if

    Until it goes through

    I hope you can understand what i'm saying 🙂



  • BROWSERACTION Open 
    
    NAVIGATE "https://www.google.com" 
    
    BROWSERACTION DOMtoSOURCE 
    
    #BLOCKNAMEREFRESH BROWSERACTION Refresh 
    
    WHILE "<SOURCE>" Contains "google"
    JUMP #BLOCKNAMEREFRESH
    ELSE
    SET STATUS SUCCESS
    ENDWHILE
    

    a little explanation about this code: WHILE GOOGLE SITE Contains "GOOGLE" it will refresh until the site dosnt have google when it dosnt have "google" it will do a SUCCESS key and will continue the config.

    and about clearing the log I don't know how


Log in to reply