Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Selenium controlled Chrome and Edge can’t both access webcams

    Selenium controlled Chrome and Edge can’t both access webcams

    July 13, 2024

    I am using Selenium 4 in java to control Chrome and Edge and other browsers in order to test a video call app. I have a test where I’m starting up 2 different browsers at once in order to get them to communicate with each-other. I am using OBS to provide virtual webcams with customizable feeds so that I can switch input for either browser.

    When I start up 2 Chromium-family browsers I get an issue that only the first one I launch (at a time) can get and show the full list of cameras while the other one shows nothing – even after waiting 15+ minutes. If I launch Firefox and Chrome as my browsers then they both can access the webcam list.

    Since Firefox is not planned to be supported for the first version of the webapp, that leaves mostly chromium family browsers for me to test with (I’m on windows so I can’t test safari at this point). Does anyone know why this is happening and how I could fix it?

    How I start Chrome:

    ChromeOptions chromeOptions= new ChromeOptions();
    chromeOptions.addArguments(“use-fake-ui-for-media-stream”);
    chromeDriver = new ChromeDriver(chromeOptions);

    How I start Edge:

    EdgeOptions edgeOptions= new EdgeOptions();
    edgeOptions.addArguments(“use-fake-ui-for-media-stream”);
    edgeDriver = new EdgeDriver(edgeOptions);

    How I start Firefox:

    FirefoxOptions firefoxOptions = new FirefoxOptions();
    firefoxOptions.addPreference(“browser.cache.disk.enable”, false);
    firefoxOptions.addPreference(“browser.cache.disk.capacity”, 0);
    firefoxOptions.addPreference(“browser.cache.disk.smart_size.enabled”, false);
    firefoxOptions.addPreference(“browser.cache.disk.smart_size.first_run”, false);
    firefoxOptions.addPreference(“browser.sessionstore.resume_from_crash”, false);
    firefoxOptions.addPreference(“browser.startup.page”, 0);
    firefoxOptions.addPreference(“media.navigator.permission.disabled”, true);
    firefoxOptions.addPreference(“device.storage.enabled”, false);
    firefoxOptions.addPreference(“media.gstreamer.enabled”, false);
    firefoxOptions.addPreference(“browser.startup.homepage”, “about,blank”);
    firefoxOptions.addPreference(“browser.startup.firstrunSkipsHomepage”, false);
    firefoxOptions.addPreference(“extensions.update.enabled”, false);
    firefoxOptions.addPreference(“app.update.enabled”, false);
    firefoxOptions.addPreference(“network.http.use-cache”, false);
    firefoxOptions.addPreference(“browser.shell.checkDefaultBrowser”, false);
    firefoxDriver = new FirefoxDriver(firefoxOptions);

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleHow to handle this Particular date picker scenario where i want to traverse back in selenium
    Next Article Mouse hover action to browser window close button

    Related Posts

    Machine Learning

    Salesforce AI Releases BLIP3-o: A Fully Open-Source Unified Multimodal Model Built with CLIP Embeddings and Flow Matching for Image Understanding and Generation

    May 16, 2025
    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 16, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Baseline 2024: more tools to help web developers

    Development

    Synthwave Mountains Scroll Animation Header Using Trig.js

    Development

    Chirurgien – hex editor

    Linux

    Converting Collections to Queries in Laravel Using toQuery()

    Development
    Hostinger

    Highlights

    Development

    World Cybercon 3.0 META Awards Celebrate Champions of Cybersecurity in the Middle East

    May 27, 2024

    The Cyber Express World CyberCon 3.0 META cybersecurity conference in Dubai was a standout event,…

    Anthropic CEO Dario Amodei claims AI could surpass “almost all humans at almost everything,” even robotics, within 3 years — dismisses AGI as a “marketing term”

    January 24, 2025

    TWIN-GPT: A Large Language Model-based Digital Twin Creation Approach for Clinical Trials

    April 4, 2024

    An Ode To Side Project Time

    January 17, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.