Back
浏览器环境模拟器

设备预设

选择预设设备(可搜索)

浏览器预设

Navigator 配置
User-Agent
平台
厂商
语言
语言列表
CPU核心数
最大触点数
设备内存(GB)
在线状态
启用Cookie
请勿追踪

请先开始模拟以使用预览功能

控制台日志
暂无日志

Browser Environment Simulator - Online Testing Tool for 200+ Device Browser APIs

Introduction

The Browser Environment Simulator is a powerful online development testing tool designed for frontend developers. Simulate browser environments of 200+ mainstream devices without physical hardware, including the latest iPhone 15 series, Huawei Mate 60 series, Samsung Galaxy S24, and more. With precise simulation of Navigator API, Screen API, Window API, and various sensor data, it helps developers comprehensively test cross-device compatibility of web applications.

Why Choose Our Browser Environment Simulator?

  • 200+ Real Device Presets: Covers latest 2024 devices from Apple, Samsung, Huawei, Xiaomi, OPPO, vivo, and more
  • One-Click Environment Switching: Quickly switch between different device environments with real-time preview
  • Complete API Simulation: Supports full-range browser API simulation including Navigator, Screen, Window, and sensors
  • Smart Search Function: Quickly locate devices among hundreds of options with brand, model, and type search
  • Pure Frontend Implementation: All operations execute locally, protecting data privacy without plugins
  • Code Generator: Generate reusable simulation code with one click for automation testing integration

Core Features

  1. Complete Navigator API Simulation

Precisely control browser identification information to test compatibility across different browser environments:
  • User-Agent String: Customize or select preset UA strings
  • Platform Information: Windows, macOS, Linux, Android, iOS, HarmonyOS
  • Language Settings: Simulate language preferences of users from different regions
  • Hardware Information: CPU cores (2-16), memory size (2-32GB)
  • Network Status: Online/offline state simulation
  • Touch Support: maxTouchPoints settings (0-10 points)

  1. Precise Screen and Window Properties Control

Simulate various screen sizes and resolutions for perfect responsive design testing:
  • Screen Resolution: From 320×568 to 3840×2160 (4K)
  • Device Pixel Ratio: 1.0 - 3.0, supporting high-definition screen testing
  • Screen Orientation: Free switching between landscape/portrait
  • Color Depth: 16-bit, 24-bit, 32-bit
  • Available Area: Simulate system taskbar occupation

  1. Real-time Sensor Data Simulation

Provide complete sensor testing environment for mobile web applications:
  • Gyroscope: X/Y/Z axis rotation speed simulation
  • Accelerometer: Gravity sensing and motion detection
  • Ambient Light Sensor: 0-1000 lux illuminance adjustment
  • Device Orientation Sensor: alpha, beta, gamma angle control

Sensor Simulation Modes:

  • Static Mode: Manually set fixed sensor values
  • Random Mode: Automatically generate randomly changing sensor data
  • Motion Mode: Preset motion patterns (shake, rotate, tilt, walk)

  1. Device Preset Library (200+ Devices)

Latest Flagship Phones

  • Apple: iPhone 15 Pro Max, iPhone 15 Pro, iPhone 14 series
  • Samsung: Galaxy S24 Ultra, Galaxy Z Fold5, Galaxy Z Flip5
  • Huawei: Mate 60 RS Ultimate, Mate X5, P60 Pro
  • Xiaomi: Xiaomi 14 Ultra, Xiaomi 14 Pro, MIX Fold 3
  • OPPO: Find X7 Ultra, Find N3, Reno11 Pro
  • vivo: X100 Pro, X Fold3, iQOO 12 Pro

Tablets

  • Apple: iPad Pro 13" (M4), iPad Air (M2), iPad mini 6
  • Huawei: MatePad Pro 13.2", MatePad Pro 12.6"
  • Samsung: Galaxy Tab S9 Ultra, Galaxy Tab S9+
  • Xiaomi: Xiaomi Pad 6S Pro 12.4", Redmi Pad Pro

Laptops

  • Apple: MacBook Pro 16" (M3), MacBook Air 15"
  • Huawei: MateBook X Pro, MateBook D 16
  • Lenovo: ThinkPad X1 Carbon, Yoga Book 9i
  • Microsoft: Surface Laptop Studio 2, Surface Pro 9

  1. Advanced Features

Real-time Preview Mode

  • URL Testing: Enter any URL for real-time preview in simulated environment
  • Comparison View: Side-by-side display of real and simulated environments
  • Zoom Control: 25%-200% free zoom, supporting 1:1 actual size display

Code Generation and Integration

// Generated simulation code example
(function() {
  const config = {
    navigator: {
      userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X)...',
      platform: 'iPhone',
      maxTouchPoints: 5
    },
    screen: {
      width: 430,
      height: 932,
      devicePixelRatio: 3
    }
  };
  // Auto-apply simulation configuration
})();

Configuration Management

  • Export Configuration: Save current settings as JSON file
  • Import Configuration: Quickly restore previous test environment
  • Bookmarklet: Generate bookmarklet for one-click simulation on any website

Usage Tutorial

Quick Start (3 Steps)

  1. Select or Search Device
- Method 1: Type device name in search box (e.g., "iPhone 15", "Huawei")
- Method 2: Browse by category (Phone/Tablet/Desktop/TV/Watch)
  1. Start Simulation
- Click "Start Simulation" button
- Environment takes effect immediately without page refresh
  1. Test and Verify
- View real-time environment parameter comparison
- Enter URL to test actual website performance
- Generate code for automation testing

Advanced Usage Tips

  1. Custom Device Configuration

Besides presets, you can fully customize each parameter:
  • Navigator Tab: Adjust UA, platform, language, etc.
  • Screen Tab: Set resolution, DPR, etc.
  • Window Tab: Configure window size
  • Sensors Tab: Simulate various sensor data

  1. Batch Testing Workflow

  1. Export commonly used device configurations
  2. Integrate generated code into automation tests
  3. Run cross-device tests automatically via CI/CD

  1. Team Collaboration

  • Export configuration files to share with team members
  • Ensure everyone uses the same test environment
  • Establish standard device testing procedures

Use Cases

  1. Responsive Web Development

  • Test responsive breakpoints for Bootstrap, Tailwind, etc.
  • Verify media query performance on different devices
  • Check image and video display effects on various screens

  1. Mobile Web Applications

  • Test touch events and gesture recognition
  • Verify sensor API usage (e.g., shake features)
  • Check mobile-specific interaction designs

  1. Cross-Platform Compatibility Testing

  • Verify display differences across operating systems
  • Test browser-specific feature compatibility
  • Check font rendering and typography effects

  1. Performance Optimization Validation

  • Test performance under different device memory
  • Verify resource loading on high DPR devices
  • Check performance on low-end devices

Technical Features

Implementation Principles

  • Use Object.defineProperty to override read-only properties
  • Intercept property access through Proxy
  • Simulate DeviceOrientationEvent and DeviceMotionEvent
  • Pure JavaScript implementation without browser plugins

Compatibility

  • Supported Browsers: Chrome 90+, Firefox 88+, Safari 14+, Edge 90+
  • Operating Systems: Windows, macOS, Linux, Android, iOS
  • Framework Compatible: Vue, React, Angular, Vanilla JavaScript

Security

  • All operations execute locally without uploading any data
  • Simulation only affects current tab
  • Original environment automatically restored on page refresh
  • Compliant with GDPR and privacy protection standards

FAQ

Q1: Will simulation affect my browser settings?

A: No. All simulations are temporary and only affect the current tab without modifying actual browser settings.

Q2: Why can't some websites detect the simulated environment?

A: Some websites may use deeper detection methods. Our tool simulates most standard APIs but cannot cover all detection methods.

Q3: How to use in Vue/React projects?

A: Use the "Generate Code" function to get simulation code and import it in your project entry file (main.js/index.js).

Q4: Which sensors are supported?

A: Currently supports gyroscope, accelerometer, ambient light sensor, and device orientation sensor. More sensors will be added continuously.

Q5: Can I simulate multiple devices simultaneously?

A: Yes, you can simulate different devices in different browser tabs for parallel testing.

Best Practices

  1. Establish Device Testing Matrix

  • Select 10-15 devices most commonly used by target users
  • Cover different screen sizes, resolutions, and operating systems
  • Regularly update test device list

  1. Integration with Automation Testing

// Cypress integration example
beforeEach(() => {
  cy.visit('/');
  cy.window().then((win) => {
    // Inject simulation code
    win.eval(simulationCode);
  });
});

  1. Performance Testing Considerations

  • Test performance under low-end device configurations
  • Note resource consumption on high DPR devices
  • Verify application performance in offline state

  1. Document Test Results

  • Record test results for each device
  • Save screenshots of key page performance
  • Establish issue tracking system

Changelog

Latest Update (January 2024)

  • Added 50+ latest 2024 device presets
  • Added device search function with fuzzy matching
  • Optimized sensor simulation accuracy
  • Support for HarmonyOS device simulation
  • Added real-time preview feature

Keywords: browser environment simulator, device emulator, user agent simulator, browser API testing, responsive design testing, mobile debugging tool, navigator API, screen API, sensor simulation, iPhone simulator, Android emulator, cross-device testing, frontend debugging tool, web compatibility testing, online simulator, device emulator, browser development tools