Documentation
¶
Overview ¶
Package firefoxview: Firefox automation with webpage output Provides command-line automation to open URLs in Firefox Supports multiple window and tab opening modes with flexible URL handling Enables programmatic web content presentation using Firefox
firefoxview: 用于网页显示的 Firefox 浏览器自动化 为在 Firefox 浏览器中打开 URL 提供命令行自动化 支持多种窗口和标签打开模式,具有灵活的 URL 处理 为 Web 内容展示启用程序化浏览器控制
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
Open executes Firefox command with specified URLs and opening mode Constructs command arguments and executes Firefox with provided URLs Supports various Firefox command-line options with configurable webpage handling
Open 使用指定的 URL 和打开模式执行 Firefox 命令 构建命令参数并使用提供的 URL 执行 Firefox 支持各种 Firefox 命令行选项以实现灵活的浏览器控制
func OpenInNewTabs ¶
OpenInNewTabs opens multiple URLs in new Firefox tabs Creates tabs within existing; creates new Firefox window Uses Firefox --new-tab option to organize tabs
OpenInNewTabs 在新的 Firefox 标签中打开多个 URL 在现有或新的 Firefox 窗口中创建浏览器标签 使用 Firefox --new-tab 选项实现基于标签的组织
func OpenInNewWindows ¶
OpenInNewWindows opens multiple URLs in separate Firefox windows Creates separate windows via Firefox using each provided URL Uses Firefox --new-window option to separate windows
OpenInNewWindows 在单独的 Firefox 窗口中打开多个 URL 为每个提供的 URL 创建单独的浏览器窗口 使用 Firefox --new-window 选项实现窗口分离
Types ¶
type Pane ¶
type Pane struct {
// contains filtered or unexported fields
}
Pane manages Firefox automation with webpage output Provides coordinated webpage generation and Firefox opening with timing Handles temp HTTP and Firefox window management
Pane 管理 Firefox 自动化与网页输出 提供协调的网页生成和 Firefox 打开及时间控制 处理临时 HTTP 和 Firefox 窗口管理
func NewPane ¶
func NewPane() *Pane
NewPane creates Firefox automation with default configuration Initializes automation using default HTTP test PageSite and debug command setup Returns Firefox automation instance configured with best development settings
NewPane 使用默认配置创建 Firefox 自动化 使用默认 HTTP 测试 PageSite 和调试命令设置初始化自动化 返回具有最佳开发设置的 Firefox 自动化实例
func NewPaneWith ¶
NewPaneWith creates Firefox automation instance with custom PageSite and execConfig Initializes automation using provided HTTP PageSite and OS command configuration Returns configured Firefox automation instance with coordinated operations
NewPaneWith 使用自定义 PageSite 和执行配置创建 Firefox 自动化实例 使用提供的 HTTP PageSite 和操作系统命令配置初始化自动化 返回配置的 Firefox 自动化实例以实现协调操作
func (*Pane) Close ¶
Close terminates Firefox automation when specified wait time elapses Waits based on when pages were shown and closes HTTP PageSite Uses sync.Once to ensure cleanup happens just once
Close 在指定等待时间结束后终止 Firefox 自动化 根据页面显示时间等待并关闭 HTTP PageSite 使用 sync.Once 确保清理操作仅执行一次
func (*Pane) Open ¶
Open displays HTML pages in Firefox using specified opening mode Delegates to Show method handling page processing and Firefox launching Provides convenient alias with consistent interface
Open 使用指定的打开模式在 Firefox 中显示 HTML 页面 委托给 Show 方法处理页面和 Firefox 启动 提供具有一致接口的便捷别名
func (*Pane) Show ¶
Show processes HTML pages and opens them in Firefox with specified mode Creates temp URLs and launches Firefox Records open time to coordinate Close timing
Show 处理 HTML 页面并使用指定模式在 Firefox 中打开它们 创建临时 URL 并启动 Firefox 记录打开时间以协调 Close 时间
func (*Pane) ShowInNewTabs ¶
ShowInNewTabs displays HTML pages in new Firefox tabs Opens each page in a new tab within existing Firefox window Creates temp URLs and launches Firefox with --new-tab option
ShowInNewTabs 在新的 Firefox 标签中显示 HTML 页面 在现有 Firefox 窗口的新标签中打开每个页面 创建临时 URL 并使用 --new-tab 选项启动 Firefox
func (*Pane) ShowInNewWindows ¶
ShowInNewWindows displays HTML pages in separate Firefox windows Opens each page in its own Firefox window Creates temp URLs and launches Firefox with --new-window option
ShowInNewWindows 在单独的 Firefox 窗口中显示 HTML 页面 在独立的 Firefox 窗口中打开每个页面 创建临时 URL 并使用 --new-window 选项启动 Firefox