如何告诉webdriver-io使用firefox开发者版? [英] How can I tell webdriver-io to use firefox developer edition?
本文介绍了如何告诉webdriver-io使用firefox开发者版?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何告诉webdriver-io使用firefox开发者版而不是普通的firefox?我需要使用普通firefox不支持的CSS4选择器。我阅读了文档但我找不到该选项。
How can I tell webdriver-io to use firefox developer edition instead of normal firefox? I need to use CSS4 selectors which normal firefox does not support. I read the documentation but I can not find the option.
推荐答案
您需要通过设置设置重新定义Firefox的位置 binary
功能:
You need to redefine the location of Firefox by either setting set the binary
capability:
var webdriverio = require('webdriverio');
var options = {
desiredCapabilities: {
browserName: 'firefox',
firefox_binary: 'C:\\...\\firefox.exe'
}
};
或者通过使用新的二进制路径启动独立服务器:
Or by starting the standalone server with a new binary path:
java -jar "selenium-server-standalone-x.x.x.jar" -Dwebdriver.firefox.bin="C:\...\firefox.exe"
这篇关于如何告诉webdriver-io使用firefox开发者版?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文