Skip to main content
🚀 re:Imagine QA - See how AI reshapes your SDLC @ AWS re:Invent. Visit BrowserStack Booth!
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

Use browser flags in Low Code Automation

Learn how to configure and use browser flags in Low Code Automation to customize browser behavior for your automated tests.

You can use browser flags in Low Code Automation to customize browser behavior during automated tests. By passing specific command-line switches, you can modify browser features to simulate different user scenarios.

Here are a few use cases where you can add browser flags:

  • Automatically select a screen share source to streamline screen sharing during tests.
  • Enable camera and microphone access to test features that require audio or video input. Note: Enabling camera access displays an emulated test screen rather than real video from your device.
  • Allow location access to simulate geolocation scenarios in your application.
  • Grant clipboard access to test copy and paste functionality.

Enable browser flags

To enable browser flags in Low Code Automation:

  • You can only select flags from the available options.
  • Changes to browser flags take effect only on the next run.
  • Be cautious when adding flags, as some flags may override others.
  1. You can configure browser flags at three stages in your workflow:
    • Before recording: On Low Code Automation, click Advanced options and go to the Browser Flags section. Screenshot of the Low Code Automation interface. The Advanced options window is open, highlighting the Browser flags section where you can add or modify browser flags.
    • While recording: In the recorder, select the Settings icon, then click Advanced options and go to the Browser Flags section.
    • After saving the test: Open the test, click the Configurations tab, select Advanced options, and go to the Browser Flags section.
  2. Click + Add flag. Low Code Automation recorder interface showing Advanced options expanded, Browser flags section highlighted, Add flag button highlighted.
  3. Choose a flag from the list or use the search bar to find one. The interface displays a description for each flag and lists the supported browsers. Not all flags are compatible with every browser, so check compatibility before adding a flag. Low Code Automation interface showing available browser flag options, such as screen share, camera, and location access.

    You can enable the following browser flags, depending on your device type:

    • For desktop browsers:
      • Auto select screen share source
      • Camera and microphone access
      • Location access
      • Clipboard access
      • Incognito mode
      • Block all permissions
      • Dark mode
      • Browser language
    • For mobile and tablet browsers:
      • Camera and microphone access
      • Block all permissions
      • Dark mode
  4. After you select the required flags, click Add flag to include them in your configuration.
  5. Click Save options.

When you run your tests, the specified flags are passed to the local instance of the browser, and the browser launches with the customized settings.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle