Just for fun - Robin's response as Batmobile speeds away

The perversity of JavaScript …

Code:

# Thanks to Gary Bernhardt, https://www.destroyallsoftware.com/talks/wat

WebAutomation.LaunchFirefox \
    Url: 'https://www.example.com' \
    WindowState:WebAutomation.BrowserWindowState.Maximized \
    ClearCache:False \
    ClearCookies:False \
    BrowserInstance=> Browser

WebAutomation.ExecuteJavascript \
    BrowserInstance:  Browser \
    Javascript:"""function ExecuteScript() {
    alert("Wanna see what Robin sings to Batman?");
    var watMan = Array(16).join("wat" -1) + " Batman!!!";
    return watMan;
     }
    """ \
    Result=> Result
    
Display.ShowMessage \
    Title:"Robin's ode to the Caped Crusader" \
    Message: """♪♪♪♪♪""" + """
    """ + Result \
    Icon:Display.Icon.None \
    Buttons:Display.Buttons.OK \
    DefaultButton:Display.DefaultButton.Button1 \
    IsTopMost:False \
    ButtonPressed=> ButtonPressed

Regards,
burque505

3 Likes

@burque505, epic project!!

Best regards,
J.

2 Likes