This skill analyzes HTML structure of any webpage, identifies interactive elements, and generates Selenium automation control code.
Dependencies Required: Install selenium package and matching WebDriver before running
bash
pip install selenium
WebDriver (Edge/Chrome/Firefox) must match your browser version
Sensitive Data Risk:
Authorized Pages Only:
bash
python scripts/fetch_page.py <URL> -o <output_file> -w <wait_seconds>
Send the downloaded HTML to LLM for element identification and analysis.
Write Selenium automation script based on analysis results.
LLM analysis should include:
这个Skill用于分析任意网页的HTML结构,识别可交互元素,并生成Selenium自动化控制代码。
依赖要求:运行前需安装 selenium 包和对应浏览器的 WebDriver
bash
pip install selenium
WebDriver(Edge/Chrome/Firefox)需与浏览器版本匹配
敏感数据风险:
仅用于授权页面:
bash
python scripts/fetch_page.py <URL> -o <输出文件> -w <等待秒数>
将下载的HTML源码发送给大模型进行元素识别和分析。
根据分析结果编写Selenium自动化脚本。
大模型分析后应输出: