View in English

  • Apple Developer
    • Get Started

    Explore Get Started

    • Overview
    • Learn
    • Apple Developer Program

    Stay Updated

    • Latest News
    • Hello Developer
    • Platforms

    Explore Platforms

    • Apple Platforms
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    Featured

    • Design
    • Distribution
    • Games
    • Accessories
    • Web
    • Home
    • CarPlay
    • Technologies

    Explore Technologies

    • Overview
    • Xcode
    • Swift
    • SwiftUI

    Featured

    • Accessibility
    • App Intents
    • Apple Intelligence
    • Games
    • Machine Learning & AI
    • Security
    • Xcode Cloud
    • Community

    Explore Community

    • Overview
    • Meet with Apple events
    • Community-driven events
    • Developer Forums
    • Open Source

    Featured

    • WWDC
    • Swift Student Challenge
    • Developer Stories
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Centers
    • Documentation

    Explore Documentation

    • Documentation Library
    • Technology Overviews
    • Sample Code
    • Human Interface Guidelines
    • Videos

    Release Notes

    • Featured Updates
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • Downloads

    Explore Downloads

    • All Downloads
    • Operating Systems
    • Applications
    • Design Resources

    Featured

    • Xcode
    • TestFlight
    • Fonts
    • SF Symbols
    • Icon Composer
    • Support

    Explore Support

    • Overview
    • Help Guides
    • Developer Forums
    • Feedback Assistant
    • Contact Us

    Featured

    • Account Help
    • App Review Guidelines
    • App Store Connect Help
    • Upcoming Requirements
    • Agreements and Guidelines
    • System Status
  • Quick Links

    • Events
    • News
    • Forums
    • Sample Code
    • Videos
 

Vídeos

Abrir menu Fechar menu
  • Coleções
  • Todos os vídeos
  • Sobre

Mais vídeos

  • Sobre
  • Código
  • Rediscover Safari developer features

    Get ready to explore Safari's rich set of tools for web developers and designers. Learn how you can inspect web content, find out about Responsive Design Mode and WebDriver, and get started with simulators and devices. We'll also show you how to pair with Vision Pro, make content inspectable in your apps, and use Open with Simulator in Responsive Design Mode to help you test your websites on any device.

    Recursos

    • Adding a web development tool to Safari Web Inspector
    • Safari Technology Preview
    • WebKit Open Source Project
    • Web Inspector Reference
    • Submit feedback
      • Vídeo HD
      • Vídeo SD

    Vídeos relacionados

    Tech Talks

    • Get started with Apple Pay on the Web

    WWDC23

    • Explore media formats for the web
    • Meet Safari for spatial computing
    • What’s new in CSS
    • What’s new in Safari extensions
    • What’s new in Web Inspector

    WWDC21

    • Discover Web Inspector improvements
  • Buscar neste vídeo...
    • 6:20 - HTML image source set

      <img
        src="astronaut_1x.jpg"
        srcset="astronaut_2x.jpg 2x astronaut_3x.jpg 3x"
      />
    • 6:27 - CSS image set

      .starfield {
        background-image: image-set("stars_1x.jpg" 1x, "stars_2x.jpg" 2x);
      }
    • 6:32 - CSS resolution media query

      @media (min-resolution: 2dppx) {
        .divider-line {
          border: 0.5px solid grey;
        }
      }
    • 13:41 - Inspectable WKWebViews and JSContexts

      let webConfiguration = WKWebViewConfiguration()
      let webView = WKWebView(frame: .zero, configuration: webConfiguration)
      
      if #available(macOS 13.3, iOS 16.4, *) {
        webView.isInspectable = true
      }
      
      let jsContext = JSContext()
      jsContext?.name = "Context name"
      
      if #available(macOS 13.3, iOS 16.4, tvOS 16.4, *) {
        jsContext?.isInspectable = true
      }
    • 15:32 - WebDriver test

      from selenium import webdriver
      from selenium.webdriver.common.by import By
      from selenium.webdriver.safari.options import Options as SafariOptions
      
      options = SafariOptions()
      driver = webdriver.Safari(options=options)
      
      driver.get("https://webkit.org/web-inspector/")
      
      search_element = driver.find_element(by=By.ID, value="search")
      search_element.send_keys("device")
      
      assert(driver.find_element(by=By.LINK_TEXT, value="Device Settings"))
      
      driver.quit()

Developer Footer

  • Vídeos
  • WWDC23
  • Rediscover Safari developer features
  • Open Menu Close Menu
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    Open Menu Close Menu
    • Accessibility
    • Accessories
    • Apple Intelligence
    • Audio & Video
    • Augmented Reality
    • Business
    • Design
    • Distribution
    • Education
    • Games
    • Health & Fitness
    • In-App Purchase
    • Localization
    • Maps & Location
    • Machine Learning & AI
    • Security
    • Safari & Web
    Open Menu Close Menu
    • Documentation
    • Downloads
    • Sample Code
    • Videos
    Open Menu Close Menu
    • Help Guides & Articles
    • Contact Us
    • Forums
    • Feedback & Bug Reporting
    • System Status
    Open Menu Close Menu
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles
    • Feedback Assistant
    Open Menu Close Menu
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program
    • Mini Apps Partner Program
    • News Partner Program
    • Video Partner Program
    • Security Bounty Program
    • Security Research Device Program
    Open Menu Close Menu
    • Meet with Apple
    • Apple Developer Centers
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Academies
    • WWDC
    Read the latest news.
    Get the Apple Developer app.
    Copyright © 2026 Apple Inc. All rights reserved.
    Terms of Use Privacy Policy Agreements and Guidelines