# axure-automic-driver **Repository Path**: PasseRR/axure-automic-driver ## Basic Information - **Project Name**: axure-automic-driver - **Description**: java结合WindowsAppDriver实现将axure rp文件转为html,配合命令行实现ci/cd - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 2 - **Created**: 2022-09-20 - **Last Updated**: 2025-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # axure-automic-driver 基于[WindowsApplicationDriver](https://github.com/microsoft/WinAppDriver)及Axure 9开发, 其他Axure版本请参考调整代码 1. 开启windows开发者模式 2. 安装WindowsApplicationDriver,并在安装目录启动驱动 ```shell # 仅指定端口 .\WinAppDriver.exe 4727 # 指定端口及ip 默认是localhost 远程服务需要以管理员身份运行 .\WinAppDriver.exe 192.168.5.2 4723 ``` 3. 使用java命令执行文件转换 命令参数介绍 | 参数名 | 描述 | 默认值 | |:-----------|:-----------------|:----------------------------------------------------------------| | version | axure版本号 | 9 | | axure | axure应用地址 | 默认按照C:\Program Files (x86)\Axure\\Axure RP 9/10\AxureRP9/10.exe | | browser | 默认浏览器应用地址 | C:\Program Files\Google\Chrome\Application\chrome.exe | | driverUrl | winAppDriver驱动地址 | http://localhost:4723 | | workspace | axure工作空间 | 无,必须在程序执行时指定 | | rpFileName | rp文件名 | 无,必须在程序执行时指定 | **浏览器建议使用Chrome,否则需要修改浏览器关闭方式** 使用方式 ```shell # 根据情况指定参数 java "-Dfile.encoding=utf8" "-Dversion=10" "-Dworkspace=${pwd}" "-DrpFileName=${AXURE_FILE_NAME}" -jar C:\axure-automation.jar ``` 61fc6a67b014457d81854b3df84ed549