Desktop Browser Module

Share BAS modules
  • Name: DesktopBrowserModule_v1.37.zip
    Version: 1.37
    Any Desktop Browser Control With BAS
    Required version BAS: 30.5.0 or version newer.
    Do you agree to include your module in BAS: Yes

    Need More Application or Development ?
    Telegram: @adiorbit
    More Module Join Telegram Channel: https://t.me/bastutorial
    Website: https://adiorbit.com

    Desktop Browser Module has 51 functions. I took this list from the module's manifest file.

    Browser & Tabs

    Open Browser: launches Chrome, Edge or Brave with optional profile, proxy, user agent, timezone, headless mode and extensions
    Close Browser: closes the browser instance
    New Tab: opens a new tab
    Close Current Tab: closes the active tab
    Clean Browser: clears all cookies and cache without closing the browser

    Navigation & Waiting

    Goto Url: opens a URL
    Wait For Element: waits until an element appears
    Wait For Text: waits until specific text appears on the page
    Wait For Url: waits until the URL matches
    Wait For JavaScript Condition: waits until a JS expression returns true
    Wait For Network Idle: waits until network activity stops

    Clicking & Mouse

    Css Click: clicks an element by CSS selector
    Xpath Click: clicks an element by XPath
    Click By Text: clicks an element by its visible text
    Human Click: clicks with human-like mouse movement
    Hover Element: moves the mouse over an element
    Drag & Drop: drags one element onto another
    Scroll Page: scrolls the page

    Typing & Input

    Type Text: types text into an element
    Type Into Focused: types into whichever field is currently focused
    Paste Text: pastes text
    Press Key: presses a keyboard key
    Clear Field: empties an input field
    Set Input Value: sets an input's value directly
    Set ContentEditable: puts text or HTML into an editable element
    Select Option: chooses an option in a dropdown
    Check / Uncheck: sets the state of a checkbox or radio button

    Reading Data

    Get Text: gets an element's text
    Get Attribute: reads an element's attribute
    Set Attribute: changes an element's attribute
    Element HTML: gets an element's HTML
    Get Page Html: gets the full page HTML
    Is Element Exists: checks whether an element exists
    Take Screenshot: captures a screenshot

    JavaScript & CDP

    Execute Javascript: runs JS on the page
    Execute JavaScript - Advanced: runs more complex JS code
    Execute JavaScript In Frame: runs JS inside an iframe
    Execute CDP Command: sends a raw Chrome DevTools Protocol command

    Cookies & Storage

    Get Cookies: reads cookies
    Set Cookie: sets a cookie
    Save Cookies: saves cookies for later use
    Restore Cookies: loads saved cookies back
    Get Local Storage Item: reads a localStorage value
    Set Local Storage Item: writes a localStorage value

    Files: Upload & Download

    Upload File: uploads a file to an input
    Open File Result: chooses the file(s) for the next file dialog, with no Windows dialog shown
    Drag File Into Element: drops a file onto an element
    Download Settings: allows, blocks or resets downloads and sets the download folder
    Wait For Download: waits for a download to finish and returns the file path

    Extensions

    Click Extension: clicks an extension's toolbar icon
    Pin Extension: pins or unpins an extension on the toolbar