NoSmoke
NoSmoke copied to clipboard
macaca是否支持appium类似的chromedriverExecutable指定driver路径
@xudafeng @SamuelZhaoY

Nosmok 默认的chromedriver是macaca路径下的
use default chromedriver version! chromedriver bin path: /opt/nodejs/lib/node_modules/macaca-chrome/node_modules/macaca-chromedriver/exec/chromedriver2.20 Starting ChromeDriver 2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b) on port 9515 Only local connections are allowed.
chromedriver starting success.
该driver 并不能打开我目前的chrome版本 63.0
但是我用py 的appium1.7.1 指定该driver是可以打开本地chrome浏览器的。
于是我在nosmoke的 desiredCapabilities:
Web Configuration
platformName: 'Desktop' chromedriverExecutable: '/home/cmd/Selenium/driver/chromedriver' browserName: 'Chrome'
发现还是用的默认的 找了下macaca的 并未说明是否支持该类似参数。。。
我用py selenium 是可以打开本地的chrome的 driver是配置的PATH
#Browserdriver Path
export PATH=$PATH:/home/cmd/Selenium/driver
我刚用笨方法 把这个2.33版本chromedriver 替换掉默认路径 /opt/nodejs/lib/node_modules/macaca-chrome/node_modules/macaca-chromedriver/exec/chromedriver2.20 下的替换并重命名为 chromedriver2.20
在执行nosmoke 就可以调起本地pc chrome了
https://github.com/appium/appium/blob/71fac8d2759b18bb2a506a5c8359bfdf41a6443b/docs/cn/writing-running-appium/caps.md 但我又看了下appium官方 这个参数chromedriverExecutable 是放在android下的 官方也没说pc web上的事
@Archer456 现在支持的比较好的是 electron ,chrome 之前有问题 @xudafeng
https://github.com/macacajs/macaca-chromedriver#custom-version
@xudafeng 我不是想安装时指定。 我是想 脚步参数内指定,这样更灵活。 最好支持这个,可以在那个chromedriver安装目录 安装多个chromedriver版本,然后可以脚本内参数指定使用哪个driver。 这样对测 浏览器兼容性 有帮助。 或者支持配置 和 提示 PC浏览器与当前驱动的关系。